View Full Version : Trouble with Contractible Headers Script

10-05-2004, 11:18 PM
Script: Contractible Headers Script (http://www.dynamicdrive.com/dynamicindex1/navigate2.htm)

When the page first loads I tried to make the first section be visible from the start. I used the CSS

"display" property to accomplish this: <div id="sc1" class="switchcontent" style="display:block"></div>.

I'm having trouble with opening the first section. Look at this pls - http://www.switchit.com/clientstaging/ansto/navs2/navs2.htm. I have no idea how to solve this problem. Anyone have a suggestion?

10-06-2004, 07:03 PM
The current Contractible Header script contains a bug in this regard which I believe is what you're experiencing. Simply use Switch Content script instead: http://dynamicdrive.com/dynamicindex17/switchcontent.htm (identical script, except with bug fixed).

Note: When viewing your page, I noticed the credit notice within script was removed due to the script being in an external js file. Please note that it still needs to be present to not violate our usage terms. See bottom of: http://www.dynamicdrive.com/notice.htm

10-28-2004, 01:16 PM
Hello I am attempting to make the switch content script state persisten on several pages. I am using it as a container for sublinks and I have used it in an include file on several pages
We can click on a title and open a block.
Inside this block we have links.
I need to keep this block open when we click on any of the sublinks and open a new page (which also contains the same include file where the SCS is resident)
I will try to put a version online soon.
I hope I made any sense

11-04-2004, 08:57 PM
Borealis, see the attached zip file I made in this thread: http://www.dynamicdrive.com/forums/showthread.php?t=398