PortalParts.com Site

 Forum Index > Community > General Chat New Topic Post Reply
 Cross Browser Javascript help
 |  Printable Version
 July 17 2007 17:04 PM (Read 1986 times)  
Forum Big Cheese
Big Cheese

Status: offline

Registered: 08/17/03
Posts: 191

Hey all

I currently have a staticpage as a centreblock on homepage displaying four static images, trying to get them to scroll continuosly across page.

Tried marquee on its on but didnt want to wait till it ended for it to start again so got this looks grt in IE but doesn't show in Firefox any help?

PHP Formatted Code

<script type="text/javascript">

// Specify the marquee contents
var marqueecontents=('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.scootexshowroom.co.uk" target="_blank"><img src="http://jinlun-owners.co.uk/THELOGO.gif" alt="" border="0"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.liaimports.co.uk" target="_blank"><img src="http://jinlun-owners.co.uk/lia2.jpg" alt="" border="0"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.sjbikes.co.uk" target="_blank"><img src="http://jinlun-owners.co.uk/images/sjbanner.gif" alt="" border="0"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.citybiker.co.uk" target="_blank"><img src="http://jinlun-owners.co.uk/images/citybikerbanner.gif" alt="" border="0"></a>');

str = marqueecontents;
str = str+str+str+str+str
str = str+str+str+str+str

if (document.all){
document.write('<marquee onmouseover="this.stop()" onmouseout="this.start()" direction="left" scrollamount="5"  style="Filter:Alpha(Opacity=100, FinishOpacity=5, Style=1, StartX=45, StartY=0, FinishX=0, FinishY=0);  font-weight: bold;" scrolldelay="0">'+str+'</marquee>');


Tried removing filter tag but didnt help

Dazzy test
Profile Email Website PM
Content generated in: 0.17 seconds
New Topic Post Reply

 All times are CST. The time is now 09:28 PM.
Normal Topic Normal Topic
Locked Topic Locked Topic
Sticky Topic Sticky Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
Filtered HTML Allowed 
Censored Content