Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Menu reappears upon returning to the initial page.

  1. #1
    Join Date
    Jan 2007
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Menu reappears upon returning to the initial page.

    1) Script Title: Anylink Vertical Menu

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...pmenuindex.htm

    3) Describe problem: If, after following one of the links in the drop-down menu, I hit the back button in the browser, the item that was originally clicked on in the drop-down menu reappears and remains visible until the mouse is moved into the web page window ... is there any way to force the menu not to reappear?

    Thanks in advance.

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

    Default

    What browser are you using, and does the problem occur in the DD demo for you as well?

  3. #3
    Join Date
    Jan 2007
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    The problem appears in Firefox 2.0.0.1; everything seems to be OK in IE7.
    Also, even in Firefox, there is no problem with the demo. Thanks.

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

    Default

    Please post a link to the page on your site that contains the problematic script so we can check it out.

  5. #5
    Join Date
    Jan 2007
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

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

    Default

    Hmmm I can confirm the problem in Firefox 2.x, though not sure immediately what the problem is. Try locating the below line inside the .js file:

    Code:
    document.write('<div id="dropmenudiv" style="visibility:hidden;width: 160px" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)" onClick="hidemenu(event)" ></div>')
    The code in red is new.

  7. #7
    Join Date
    Jan 2007
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks for the suggestion. I inserted the new code into menu.js but the problem is still there.

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

    Default

    Are you sure? I issue seems to have been fixed for me in FF 2.x on your page now...

  9. #9
    Join Date
    Jan 2007
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Yes and no - yes if you click on one of the links in the drop-down menu itself but no if you click on a link which causes a drop-down menu to appear.

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

    Default

    Ok try finding the lines:

    Code:
    if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
    obj.visibility=visible
    and change that to:

    Code:
    if (e.type=="mouseover")
    obj.visibility=visible
    That should do it. I'm still not sure why you would have this issue to begin with, as it doesn't occur in the DD demo. Probably something specific to your page's layout triggering it.

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
  •