Results 1 to 7 of 7

Thread: Contractible Headers Script Problem

  1. #1
    Join Date
    Aug 2011
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default 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.

  2. #2
    Join Date
    Oct 2009
    Posts
    845
    Thanks
    14
    Thanked 189 Times in 188 Posts

    Default

    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)

  3. #3
    Join Date
    Aug 2011
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    I tried that and it still opens the page with all the headers open.

  4. #4
    Join Date
    Oct 2009
    Posts
    845
    Thanks
    14
    Thanked 189 Times in 188 Posts

    Default

    maybe we can see what the problem is if you post a link to your page.

  5. #5
    Join Date
    Aug 2011
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    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.

  6. #6
    Join Date
    Oct 2009
    Posts
    845
    Thanks
    14
    Thanked 189 Times in 188 Posts

    Default

    you need to add the class="switchcontent" to the expandable div's.

    example:

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

  7. The Following User Says Thank You to azoomer For This Useful Post:

    TKOP (08-06-2011)

  8. #7
    Join Date
    Aug 2011
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    OK great! Thanks for the help.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •