Results 1 to 4 of 4

Thread: Trouble with Contractible Headers Script

  1. #1
    Join Date
    Oct 2004
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Trouble with Contractible Headers Script

    Script: Contractible Headers Script

    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/clientstagin...avs2/navs2.htm. I have no idea how to solve this problem. Anyone have a suggestion?

  2. #2
    Join Date
    Aug 2004
    Posts
    10,138
    Thanks
    3
    Thanked 1,007 Times in 992 Posts
    Blog Entries
    16

    Default

    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/dynamicindex...tchcontent.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

  3. #3
    Join Date
    Oct 2004
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Can we make the script persistent ons everal pages

    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

  4. #4
    Join Date
    Aug 2004
    Posts
    10,138
    Thanks
    3
    Thanked 1,007 Times in 992 Posts
    Blog Entries
    16

    Default

    Borealis, see the attached zip file I made in this thread: http://www.dynamicdrive.com/forums/showthread.php?t=398

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
  •