PDA

View Full Version : Collapse Submenu in "Bullet List Accordion Menu with nested levels"



FeKuLa
09-08-2008, 10:44 AM
1) Script Title:
Bullet List Accordion Menu with nested levels

2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex17/ddaccordionmenu-bullet.htm
(at the bottom, the second example)

3) Describe problem:
I want to collapse the sublevel:

Menu Gallery
.....Blue Color
.....Green Color
.....Orange Color
.....Red Color
.....Brown Color

When I press a main category:

CSS LIBRARY, CSS DRIVE...

If I put:

onopenclose:function(header, index, state, isuseractivated){
if (state=="block" && isuseractivated==true){
ddaccordion.collapseall('subexpandable') {
}
}

It works! But in my case, i don't want the animation for hide submenu, only hide. Any idea for this?

EDIT:

Solved with:

onopenclose:function(header, index, state, isuseractivated){
ddaccordion.collapseall('subexpandable');
}

;)