Results 1 to 5 of 5

Thread: Animated Collapsible DIV Alteration

  1. #1
    Join Date
    Apr 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Animated Collapsible DIV Alteration

    1) Script Title: Animated Collapsible DIV

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

    3) Describe problem: Thanks for this great site! I was wondering if someone could help me with an alteration to this script. I have four collapsable sections on my page, and I would like to change the code so that only one section can be open at a time. In other words, if you have one open, and open another, it closes the first one.
    Thanks!!!

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

    Default

    Dependency isn't supported in this script right now unfortunately. In the next version, it's most likely something I'll add. In the meantime, the closest thing that does support this would be Accordion Content script.

  3. #3
    Join Date
    Apr 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks anyway.

  4. #4
    Join Date
    Jul 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Have a + and - image I am using to facilitate the div open/close; however, I am unable to connect/associate the +/- behavior by clicking on the link. Translation: I am interested in having the - change to + when someone clicks on the link, and from + to - when they click on the link again.

    Here's what my code looks like now:

    <a href="javascript:animatedcollapse.toggle('001')"><img src="../template_images/minus.png" border="0" onclick="this.src=(document.getElementById('001').style.display!='none')?'../template_images/minus.png':'../template_images/plus.png';" />Link</a>

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

    Default

    Please start your own thread tauneutrino when asking a question. You should repost the above here.

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
  •