PDA

View Full Version : Trying to click links from a dropdown menu



reden
09-04-2006, 07:54 PM
Hello,

I don't know if this is the place to ask this, but I'll give it a shot. I downloaded

http://www.dynamicdrive.com/dynamicindex1/chrome/index.htm

And it worked great, but I'm wondering if there's a way for when you click the menu items themselves that activate the dropdowns to launch pages. You can clearly see when you try to click on them in Dynamic Drive's example page, sites are not launched, only from the Home link. Please help.

ddadmin
09-05-2006, 12:25 AM
You can make each main menu item act like links by finidng the line:


disablemenuclick: true, //when user clicks on a menu item with a drop down menu, disable menu item's link?

inside the .js file, and disabling it:


disablemenuclick: false, //when user clicks on a menu item with a drop down menu, disable menu item's link?

blm126
09-05-2006, 02:22 AM
I don't think that is what he means. Take the demo for example. I think he want the link "Resources" to open a new page when clicked. To the OP. If that is what you want change


<li><a href="#" rel="dropmenu1">Resources</a></li>

to


<li><a href="resources.html" rel="dropmenu1">Resources</a></li>

ddadmin
09-05-2006, 02:53 AM
Actually blm126, that's what my solution does. :) Specifying a URL inside the menu item alone won't do (ie: resources.htm)- you need to disable that variable I mentioned as well.