On the DD demo page, examples 4-6 should demonstrate this already. Basically, if you initialize a collection of collapsible DIVs as a group, opening one within it closes any previously open DIVs within the DIV. The way to initialize them as a group then is just to add the code in red to the initialization code:
Code:
animatedcollapse.addDiv('cat', 'fade=0,speed=400,group=pets')
animatedcollapse.addDiv('dog', 'fade=0,speed=400,group=pets,persist=1,hide=1')
animatedcollapse.addDiv('rabbit', 'fade=0,speed=400,group=pets,hide=1')
Where "pets" is an arbitrary but shared group name.
Bookmarks