PDA

View Full Version : Switch Content Script II - changing intial state



danbeall
02-07-2007, 09:00 PM
Switch Content Script II
http://www.dynamicdrive.com/dynamicindex17/switchcontent2.htm

This is a great script, but I have one small problem...

When it loads all the content is expanded by default. I would like it all to be collapsed by default. I have tried to find a setting in the script, but I haven't found anything that works for me.

There is a function to expand all and collapse all (sweeptoggle). Can I tell the browser to select collapse all when the page loads?

Any other ideas?

Thanks in advance!
Dan

danbeall
02-07-2007, 09:14 PM
Nevermind... I did a search and found the solution (should have done that before!)

For anybody who maybe looking for the same, it is here:
http://www.dynamicdrive.com/forums/showthread.php?p=31994