Solved

DHTML Menu & link to parent and Active link

Posted on 2010-08-23
3
282 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Why I can't see my List in the View? 3 98
Disable, then Enable Clear URL's 4 354
eCommerce for drupal 3 166
Adding a condition to a SQL statement in PHP 14 177
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 …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

839 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