Results 1 to 2 of 2

Thread: Pausing up-down message scroller

  1. #1
    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 Pausing up-down message scroller

    Pausing up-down message scroller All has a minor bug on pages with this doctype:
    Code:
    <?xml version="1.0" encoding="iso-8859-1"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    I can't be sure but, I imagine any transitional or strict doctype would produce the error. It occurs only under Mozilla (FF and NS7.2 tested) and can be fixed by changing these two lines to include +"px" at the end:
    Code:
    tdiv.style.top=parseInt(scrollerheight)
    and
    Code:
    tdiv2.style.top=parseInt(scrollerheight)
    They should have +"px" at the end anyway, as px was stripped from their values by the parseInt method. Come to think of it, they don't need the paresInt method applied to them in the first place. They are style and the preferred method is to include the units for non-zero values.
    - John
    ________________________

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

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Issue confirmed and fixed.

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
  •