PDA

View Full Version : Chrome CSS Drop Down Menu (v2.5) (selected class problem)



newyorker2
03-31-2009, 06:57 PM
1) Script Title: Chrome CSS Drop Down Menu (v2.5)

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

3) Describe problem:

to explain the issue easier please see the code here:
http://72.44.80.146/~wat/test1/demo.htm

Resources tab is selected by default.
when you move your mouse on resources tab, the resources tab loses it's .selected class.

I want to make sure resources tab is always selected unless user hits a link.

thank you

ddadmin
04-01-2009, 04:51 AM
For the selected menu item, instead of giving it a CSS class of "selected", which is reserved by the script, try giving it a different CSS class that still styles it the way you want it to, such as:


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

newyorker2
04-01-2009, 01:22 PM
For the selected menu item, instead of giving it a CSS class of "selected", which is reserved by the script, try giving it a different CSS class that still styles it the way you want it to, such as:


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

I feel so dumb right now, why didn't I do that in the first place? :)

thank you.
have a great day