Log in

View Full Version : Vertical "accordion style" menu



Claes
06-09-2009, 08:50 AM
Hi!
I've been searching for a vertical, 2-level list navigation for quite a while. I've found lots but nothing perfect yet. Today I use a javascript tree-view menu that does all I want, i.e. preserves state, has functions I invoke to open parent levels and so on.

Basically, this is want I need:

http://www.hammarogk.se/temp/vert_menu.gif

Clicking the plus sign shows the submenu links and changes the plus to a minus sign. Clicking the "Area x" text just loads another page and does not influence the "submenu" status (opened or closed).

No need for sliding or other fancy effects but some kind of "class='active'" on the active main- or sub item is necessary.

All help is very much appreciated!

Claes

X96 Web Design
06-09-2009, 07:14 PM
Maybe the DD Accordion Menu (http://www.dynamicdrive.com/dynamicindex17/ddaccordionmenu.htm) is what you're looking for.

// X \\

Claes
06-10-2009, 04:40 PM
Yepp,
thanks X, I just realized that this one will do (most) of what I want.
I just need to figure out how I can set a class name on the submenu item that is clicked to show that this item is "active".

Any ideas?
/Claes