View Full Version : Switch Content II - alternating states

03-31-2006, 10:24 PM
SWITCH CONTENT II (http://www.dynamicdrive.com/dynamicindex17/switchcontent2.htm)

A very easy question. I honestly read about 6 pages of the forum on this script, but couldn't see it (... not saying it wasn't there!).

Is it possible to have one header expand as another (i.e., previous) one collapses? Or vice versa? For example, header 1 closes when header 2 is opened...

I'd like to avoid having to hit each one to expand/collapse, but instead, have it happen when any given header is activated. I swear I've seen it done somewhere!

Many thanks to this site...

04-03-2006, 06:36 PM
SWITCH CONTENT II (http://www.dynamicdrive.com/dynamicindex17/switchcontent2.htm)

Sorry, found it...

var collapseprevious=1 //Set to 1 to collapse previous, 0 for previously opened items to remain open.

I was wondering though if it's possible to display the first 'header' as expanded, (while the others are still collapsed)? I'd love to see all these modifications people have requested updated to the scripts' page... keep 'em in all in one place!