Results 1 to 2 of 2

Thread: Accordian Content Script

  1. #1
    Join Date
    Mar 2008
    Posts
    19
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Accordian Content Script

    1) Script Title: Accordion Content script (v1.7)

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...daccordion.htm

    I would like to use BOTH collapseprev: true AND have an expand all link. However, when collapseprev is set to true, the expand all link (as per the demo example) doesn't work properly. When collapseprev is false, it works fine, so there must be a conflict between the two settings - what can I do to get then both to work properly? It is nice and tudy to collapse the previous div when yo open a new one, but it is also good to be able to open all divs at once should someone want to do so (I am using htis on an FAQ page)

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    This is by design actually- the collapseprev setting when turned on basically says "only one content can be expanded at any time." There is no easy way to make an exception when expandall() is called at the moment unfortunately, since this behavior is embedded pretty deep inside the script.
    DD Admin

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
  •