PDA

View Full Version : Switch Content Script II Start Collapsed?



Jez
09-25-2007, 10:03 AM
1) Script Title: Switch Content Script II (icon based)

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

3) Describe problem: I am using Demo 1 of the above script but want all the sections to be closed upon first arriving on the page.

It happens on Demo 2 but i am using Demo 1 but cannot find out which section to change so all the sections start closed. I'm sure its there in the instructions below but i cannot find the appropriate section in the javascript.

I love the script just want it to start all collapsed.

Many thanks for anyhelp :)

ddadmin
09-25-2007, 08:02 PM
Just remove the line:


faq.defaultExpanded(0) //Set 1st content to be expanded by default

from the first demo, which causes no content to be expanded by default (aka: all is closed).