Results 1 to 3 of 3

Thread: Java script errors reported in AnyLink Drop Down Menu

  1. #1
    Join Date
    Feb 2006
    Location
    Aylesbury UK
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Java script errors reported in AnyLink Drop Down Menu

    I get the following Javascript errors reported by Firefox 1.5 on Linux when viewing the drop-down menu demo...

    Code:
    Error in parsing value for property 'top'.  Declaration dropped.
    Error in parsing value for property 'left'.  Declaration dropped.
    The error is in function showhide. Changing
    Code:
        if (ie4||ns6)
        dropmenuobj.style.left=dropmenuobj.style.top=-500
    to
    Code:
        if (ie4||ns6)
        dropmenuobj.style.left=dropmenuobj.style.top="-500px"
    fixes the problem.

    I don't really understand why this statement is there, because immediately on the return from the only call of this function the script seems to set the top and left coordinates back onscreen relative to the menu heading.

  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

    It's just meant to hide it while things are initializing and it should have the pixel units specified, a genuine bug and fix, imho, congratulations!
    - John
    ________________________

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

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

    Default

    LoL yes it's nice to see a real bug report. Problem 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
  •