PDA

View Full Version : simple javascript help.. expand/contract switch content script II



john6767
08-04-2006, 01:07 AM
1) Switch Content Script II
2) http://www.dynamicdrive.com/dynamicindex17/switchcontent2.htm

3) Hi, I am using this script which allows a table to expand or contract when an image is clicked, it works fine except i would like the tables to be contracted on load, not expanded..

how would i go about doing this? I was thinking there has to be a value that i can change in the script but i am new to javascript and cannot find out how?

cheers

jscheuer1
08-04-2006, 05:01 AM
http://home.comcast.net/~jscheuer1/side/switch_II_closed_persist.htm

john6767
08-04-2006, 05:04 AM
cheers, thanks for that, i'll have a look through the code and work out the difference..

john6767
08-04-2006, 05:05 AM
ok, cool its documented! thanks

floppy
08-31-2006, 01:48 AM
what is the answer to this question the link above told me nothing.

floppy
08-31-2006, 01:56 AM
dumb question #1 for these forums. Found it sorry.