Results 1 to 2 of 2

Thread: Cross Browser marquee BUG

  1. #1
    Join Date
    Mar 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Lightbulb Cross Browser marquee BUG

    Hi,
    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,


    Chris.
    Internet Development

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    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

    </div>

    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.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •