PDA

View Full Version : Animated Collapsible DIV Alteration



bevmc
04-16-2008, 08:24 PM
1) Script Title: Animated Collapsible DIV

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/animatedcollapse.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!!!

ddadmin
04-17-2008, 03:15 AM
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 (http://www.dynamicdrive.com/dynamicindex17/ddaccordion.htm).

bevmc
04-17-2008, 09:21 PM
Thanks anyway. :)

tauneutrino
07-16-2008, 02:27 AM
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>

ddadmin
07-16-2008, 03:39 AM
Please start your own thread tauneutrino when asking a question. You should repost the above here (http://www.dynamicdrive.com/forums/forumdisplay.php?f=2).