Results 1 to 8 of 8

Thread: HideInterval for submenus

  1. #1
    Join Date
    Nov 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default HideInterval for submenus

    1) Script Title: All Levels Navigational Menu (v1.5)

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

    3) Describe problem: The hideinterval value seems to only work for the first submenu. Submenu's after that dissapear instantly when the mouse moves out.

    Any help would be greatly appreciated

  2. #2
    Join Date
    Nov 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Anybody have any ideas? I need this as a matter of urgency for a client.

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

    Default

    Try finding these lines inside the .js file:

    Code:
    		else if (!this._istoplevel && !ddlevelsmenu.isContained(this, e)){
    			ddlevelsmenu.hidemenu(submenu)
    		}
    and replace that with:

    Code:
    		else if (!this._istoplevel && !ddlevelsmenu.isContained(this, e)){
    			ddlevelsmenu.hidetimers[this._master][this._pos]=setTimeout(function(){
    				ddlevelsmenu.hidemenu(submenu)
    			}, ddlevelsmenu.hideinterval)
    		}
    DD Admin

  4. #4
    Join Date
    Nov 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks ddadmin,

    For the most part it works but there is a bug.

    When you hover over a 2nd level item that opens up a 3rd level menu, if you mouse out of the 2nd level item and mouse back into it, the 3rd level ul will not display any more. It does the sliding out animation and then dissapears.

  5. #5
    Join Date
    Nov 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    bit more info on that last bug - it only happens if you mousein to the 2nd level item while the hideinterval is active.

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

    Default

    Ah yes I remember that bug now that you mention it, which was why I removed the hide interval behavior on the sub menus when the script was initially released. It might be some time before I can take another crack at finding the cause of the problem, so you'll need to decide how/ whether to use this script accordingly.
    DD Admin

  7. #7
    Join Date
    May 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default To delay hiding of Submenus on mouseout

    Hi DDAdmin,

    Do we have any solution (or a fix) for the existing bug (please see thread attached) - When I mouse out from the second level submenu and then again mouse-in ( or mouseover) over this submenu it does some sliding out animation (flickering) and then disappears.

    I am in a real URGENT need as customer is waiting for this application.

    Thanks in advance

    Regards,
    Prateek

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

    Default

    By default the "hide sub menu after delay" feature is removed from the script, so this is more of a feature request than bug fix. This is a rather elusive feature if I recall when trying to implement it, and to be honest, I probably won't get the chance to take another crack at it within the next week or so. If this is an urgent issue, you may have to search for a menu with this feature already built in.
    DD Admin

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
  •