Results 1 to 3 of 3

Thread: About Switch Menu II

  1. #1
    Join Date
    Jul 2005
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default About Switch Menu II

    Hello,
    I have a problem in the use of Switch Menu II script. Here is the link :http://www.dynamicdrive.com/dynamici...witchmenu2.htm.

    When I use this
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    as XHTML doc, all menus don't close in Mozilla/ Firefox. But it's ok in IE.

    Thank you for help.

  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

    Try changing this:

    Code:
            OBJ_SLIDE.style.height = NEW_PIX_VAL;
    to:

    Code:
            OBJ_SLIDE.style.height = NEW_PIX_VAL+'px';
    and this:

    Code:
            if(NEW_PIX_VAL > 0)OBJ_SLIDE.style.height = NEW_PIX_VAL;
    to:

    Code:
            if(NEW_PIX_VAL > 0)OBJ_SLIDE.style.height = NEW_PIX_VAL+'px';
    and this:

    Code:
                OBJ_SLIDE.style.height = NEW_PIX_VAL
    (looks like the first one but, no semicolon at the end) to:

    Code:
                OBJ_SLIDE.style.height = NEW_PIX_VAL+'px'
    Keep a backup, this is untested but, follows a pattern usually involved in these cases.
    - John
    ________________________

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

  3. #3
    Join Date
    Jul 2005
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank, your are a right professor.

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
  •