Results 1 to 2 of 2

Thread: Switch Content II - alternating states

  1. #1
    Join Date
    Jan 2005
    Posts
    32
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Switch Content II - alternating states

    SWITCH CONTENT II

    A very easy question. I honestly read about 6 pages of the forum on this script, but couldn't see it (... not saying it wasn't there!).

    Is it possible to have one header expand as another (i.e., previous) one collapses? Or vice versa? For example, header 1 closes when header 2 is opened...

    I'd like to avoid having to hit each one to expand/collapse, but instead, have it happen when any given header is activated. I swear I've seen it done somewhere!

    Many thanks to this site...

  2. #2
    Join Date
    Jan 2005
    Posts
    32
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Got it!

    SWITCH CONTENT II

    Sorry, found it...

    Code:
    var collapseprevious=1 //Set to 1 to collapse previous, 0 for previously opened items to remain open.
    I was wondering though if it's possible to display the first 'header' as expanded, (while the others are still collapsed)? I'd love to see all these modifications people have requested updated to the scripts' page... keep 'em in all in one place!

    Thanks,

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
  •