View Full Version : Contractible Headers Script Problem
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.
azoomer
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)
I tried that and it still opens the page with all the headers open.
azoomer
08-06-2011, 09:43 AM
maybe we can see what the problem is if you post a link to your page.
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.
azoomer
08-06-2011, 10:44 PM
you need to add the class="switchcontent" to the expandable div's.
example:
<div id="sc1" class="switchcontent style4">
OK great! Thanks for the help.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.