View Full Version : Contractible Headers Script Problem

08-06-2011, 12:50 AM
1) Script Title: Contractible Headers Script

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/navigate2.htm

3) Describe problem: After creating a webpage with contractible headers, I display it in my browser and all of the headers are open instead of being hidden like they are supposed to be with this script.

08-06-2011, 01:33 AM
It seems like there is a cookie remembering the state (open or contracted) when reloading the page. If you want it contracted on every new page load, maybe changing this to "off" could help

var enablepersist="on" //Enable saving state of content structure using session cookies? (on/off)

08-06-2011, 03:09 AM
I tried that and it still opens the page with all the headers open.

08-06-2011, 09:43 AM
maybe we can see what the problem is if you post a link to your page.

08-06-2011, 07:09 PM
OK, I will upload the page to http://besttechcomputing.com/AAFP-FAQ.html. You'll be able to see that the page open with all the answers to the questions open. I want them to be closed so a person can click on each question to get the answer.

The page is not complete so it is only a rough draft, therefore it is a temporary link that I will remove after you tell me you have looked at it. Thanks a lot for the help.

08-06-2011, 10:44 PM
you need to add the class="switchcontent" to the expandable div's.


<div id="sc1" class="switchcontent style4">

08-06-2011, 10:48 PM
OK great! Thanks for the help.