View Full Version : Cross Browser marquee BUG

03-29-2006, 10:49 PM
A bug in the cross browser marquee:

If the data to show is too long, the horizontal scrollbar grows a lot too.

Look it: http://www.travelex.it/

I could fix this increasing the negative number of left property:

var copyspeed=marqueespeed
var pausespeed=(pauseit==0)? copyspeed: 0
var iedom=document.all||document.getElementById

if (iedom)
document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100;left:-1000000">'+marqueecontent+'</span>');

var actualwidth=''
var cross_marquee, ns_marquee

Look it fixed: http://tvx3.nexolink.com/it/

But this works only in IExplorer, Firefox but not in Opera L.
Can you help me with this?

Many thanks in advance, :)

Internet Development

03-30-2006, 05:31 AM
What's Opera L? Anyways, the way to fix unwanted scrollbars in Opera is generally to wrap another:

<div style="overflow:hidden;">

script's body code goes here


around the offending content. In rare cases, this may not be enough so a small bit of Opera specific code can be added to scroll one full segment of the content to its end position onload and then back again using a 20 millisecond timeout for the back part. This last bit is to be avoided unless the extra wrap doesn't do it.