Go Back   Dynamic Drive Forums > DD Scripts > Dynamic Drive scripts help
Search Dynamic Drive Forums:

Reply
 
Thread Tools Search this Thread
  #1  
Old 08-07-2008, 07:43 PM
asdfasdf asdfasdf is offline
New Comer (less than 5 posts)
 
Join Date: Aug 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default All Levels Menu onclick and mouseover

1) Script Title:
multilevel menu
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamici...menu/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
Reply With Quote
  #2  
Old 08-07-2008, 07:53 PM
asdfasdf asdfasdf is offline
New Comer (less than 5 posts)
 
Join Date: Aug 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.
Reply With Quote
  #3  
Old 08-08-2008, 07:32 AM
ddadmin's Avatar
ddadmin ddadmin is offline
Administrator
 
Join Date: Aug 2004
Posts: 7,627
Thanks: 2
Thanked 639 Times in 629 Posts
Blog Entries: 13
Default

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:

Code:
ddlevelsmenu.hidemenu(ddlevelsmenu.subuls[this._master][parseInt(this._pos)])
and replace that with:

Code:
		if (e.preventDefault)
			e.preventDefault()
		else
			return false
__________________
DD Admin
Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:32 AM.

Home - Contact Us - Archives - Link to DD - Top 

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.