View Full Version : Animated Collapsible DIV

01-25-2008, 04:09 PM
1) Script Title: Animated Collapsible DIV

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/animatedcollapse.htm

3) Describe problem: No problem, just a question.

I'd like to be able to do the following when the slideit() function is activated:

1) Slide the content div up/down (already part of the script)
2) Change the background CSS of the element I clicked on (h1).

I'm using this script for a kind of menu (though not exactly). There is a <h1> element which serves as the link. When I click it, I'd like this to stand out and become a more prominent header.

Basically go from:

<h1 style='background:#eee url(plus.gif) no-repeat right'>Heading</h1>


<h1 style='background:#ccc url(minus.gif) no-repeat right'>Heading</h1>

Is this possible?

Thanks for the help in advance!

01-25-2008, 04:15 PM
It sounds like this: http://www.dynamicdrive.com/dynamicindex17/ddaccordion.htm might suit your needs better than the collapsible div script.

01-29-2008, 04:06 PM
Thank you! Thank you! Thank you! That's exactly what I needed!!!