PDA

View Full Version : How to collapse all headers when reloading site?



bastler
03-19-2009, 03:02 PM
1) Script Title: accordion menu apple style

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/ddaccordionmenu.htm

3) Describe problem:

Hi, how can I collapse all headers by doing a site refresh?
Hope, someone has an idea.

Thanks!

ddadmin
03-19-2009, 07:19 PM
If you have the following two variables set as follows, reloading the page should cause all the contents to be collapsed:


defaultexpanded: [], //index of content(s) open by default [index1, index2, etc] [] denotes no content
onemustopen: true, //Specify whether at least one header should be open always (so never all headers closed)
animatedefault: false, //Should contents open by default be animated into view?
persiststate: false, //persist state of opened contents within browser session?