:: All Levels Navigational Menu - Add onclick event to main menu bar
1) Script Title: All Levels Navigational Menu (v2.2)
2) Script URL (on DD):http://www.dynamicdrive.com/dynamicindex1/ddlevelsmenu/
3) Describe problem:
I am using v2.2 of the All Levels Navigational Menu on a website, but I have this issue that when users "click" on the main menu bar the drop-down menu closes. This behaviour upsets the users as they would expect either a page to open (which I do not offer as they are all set href="#"), or the drop-down menu to at least stay open.
I have looked at the code in ddlevelsmenu.js but it is quite complex and would like some expert advice on what to change. I would like the drop-down to appear "onclick" in addition to "mouseover" for the main menu (top bar) items. When the mouse moves away, then the drop-down should close, unless the user moves the mouse down over the drop-down menu.