PDA

View Full Version : Chrome CSS Drop Down Menu (v2.01)



mike62
11-24-2006, 02:36 PM
1) Script Title: Chrome CSS Drop Down Menu (v2.01)

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

3) Describe problem: The links on the drop down menu work fine (ie the sub-categories), but if I put a link in the main heading as well (head category), the link URL shows on the bottom toolbar, but is not active. The sub-menu links still work fine. What am I doing wrong, or is this a glitch? See below.

<div class="chromestyle" id="chromemenu">
<ul>
<li><a href="A LINK HERE DOES WORK">Home</a></li>
<li><a href="A LINK HERE DOESN'T WORK" rel="dropmenu1">Resources</a></li>
<li><a href="#" rel="dropmenu2">News</a></li>
</ul>
</div>

<!--1st drop down menu -->
<div id="dropmenu1" class="dropmenudiv">
<a href="THIS LINK WORKS">Dynamic Drive</a>
<a href="http://www.cssdrive.com">CSS Drive</a>
<a href="http://www.javascriptkit.com">JavaScript Kit</a>
</div>

ddadmin
11-24-2006, 08:49 PM
If you want the main menu items to also act as links, just configure that inside the .js file:


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

Setting it to false will do it.