Solved

DHTML Menu & link to parent and Active link

Posted on 2010-08-23
3
276 Views
Last Modified: 2012-05-10


I want to use DHTML Menu, but its got some major issues with regards to usability. I imagine there are ways yo fix them, I just cant seem to find them.

Sample nav:

Parent 1
----Child 1
----Child 2
----Child 3

Parent 2
----Child 1
----Child 2
----Child 3

So, with that setup, I cannot seem to get the "Parent" to be clickable at the same time it still expands/contracts.

Also, Im trying to get the "active" page to be highlighted within the leftnav. Meaning, if Im on Child2 page, i want that menu item to be a different color, indicating active location.

Any help would be great.

thanks, Mac
0
Comment
Question by:a204801
  • 2
3 Comments
 
LVL 17

Accepted Solution

by:
Thomas4019 earned 500 total points
ID: 33507011
The "active" menu item should have a special class like "active" on it, then you can theme it with CSS.

yeah, I agree DHTML menu has problems with usability. You can design your site around it, or you could try Nice Menus, http://drupal.org/project/nice_menus.
0
 

Author Comment

by:a204801
ID: 33507026
I love Nice Menu's, but our SEO guru thinks its not good for SEO. I disagree, I don't think its of any consequence, but Im exhausting all other options before i get back to him on my recommendation.  

For whatver reason, the .active class isn't working.  Maybe its getting overrident by something else.
0
 
LVL 17

Expert Comment

by:Thomas4019
ID: 33507044
Thanks, try using the CSS !important property.

http://webdesign.about.com/od/css/f/blcssfaqimportn.htm

It has solved many on my conflicts.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is for those that are having major problems with users upload files such as pictures to their profile. The solution is simple and has to do with correcting the directory paths. With some experimenting and testing i got it fixed. Note…
RTL (right to left) web applications aiming for audiences speaking languages like Hebrew or Arabic, are generally more complicated than the same applications aiming for audiences speaking Latin based languages. The main difference lies of course …
A short film showing how OnPage and Connectwise integration works.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

929 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now