PDA

View Full Version : Using the Animated Collapsible Div on Query results



brooksking70
07-14-2007, 09:50 PM
1) Script Title: Animated Collapsible DIV

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

3) Describe problem: I would like to use this script on multiple query results but it will only apply the collapsible effect on one of the listings. I am assuming this is because this script works around a css div and my understanding is that you can only have one instance of a particular div id on a page.

Is there away to apply this script to multiple query results on the same page?

ddadmin
07-14-2007, 11:08 PM
Why can't you simply modify your query output so each DIV contains a unique ID? In CSS this is required anyway.

brooksking70
07-18-2007, 03:52 AM
Thanks. With a little more "think", I did just that. Since I'm new to the PHP and Mysql, it took me a little time to modify the script. I ended up learning a great deal just chasing down my answer.