PDA

View Full Version : All Levels Menu onclick and mouseover



asdfasdf
08-07-2008, 06:43 PM
1) Script Title:
multilevel menu
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex1/ddlevelsmenu/index.htm


3) Describe problem:
This menu only uses onmouseover
But I would like to be able to click on the parent menu option and that
this would "pin" the submenu until clicked

Is there another menu script that will allow clicking the parent menu option
and this would prevent time-out

asdfasdf
08-07-2008, 06:53 PM
To clarify

I want a combination onmouseover and onclick menu

when I mouseover a menu it expands and mouseout will collapse

but for people who are not very proficient with mouse I want the option
of being able to click on the menu and it will remain open indefinitely
or for a long time until the mouse is clicked again.

ddadmin
08-08-2008, 06:32 AM
I think if you actually implemented what you're asking, a lot of subtle issues will become apparent. One thing you can do quickly that may help is to disable the top menu items from navigating to a page when clicked on, ensuring the user stays and sees the drop down menu on the current page if they clicked on an item. To do this, inside the .js file, find the below line:


ddlevelsmenu.hidemenu(ddlevelsmenu.subuls[this._master][parseInt(this._pos)])

and replace that with:


if (e.preventDefault)
e.preventDefault()
else
return false