PDA

View Full Version : Switch Content II script ... start collapsed?



Mayhem Design
12-20-2006, 10:44 AM
I'm using this script (http://www.dynamicdrive.com/dynamicindex17/switchcontent2.htm) and would like to know if there is any way to have the div's all hidden to start with and the user can choose which to expand?

Thanks,
Jon
Mayhem Design

djr33
12-20-2006, 10:47 AM
I'm guessing... <body .... onLoad="sweeptoggle('contract')">

Mayhem Design
12-20-2006, 11:54 AM
Thanks djr33 ... You're right of course. I also found this post (http://www.dynamicdrive.com/forums/showthread.php?t=11816) that shows how to change it in the scrip[t itself which works better for me.

Thanks again,
Jon

djr33
12-20-2006, 01:22 PM
Sure. I gave you the easy/lazy solution :p