PDA

View Full Version : animatedcollapse.js more than one div per page



BBKVale
12-12-2007, 08:09 PM
Hi,

firstly, thanks to DD. for the code..

the animatedcollapse.js is working great..

Can anyone tell me how I can get more than one div on a page to work using collapse2.slideit

I tried putting one in a div=cat and another in div=cat2 but hitting either link only affects the first (cat) div..

thanks

ddadmin
12-12-2007, 09:58 PM
Warning: Please include a link to the DD script in question in your post. See this thread (http://www.dynamicdrive.com/forums/showthread.php?t=6) for the proper posting format when asking a question.

Do you mean multiple collapsible DIVs that operate independently of one another, or dependently (ie: collapse one to reveal the other at the same time)? If the former, this is certainly possible. In fact the demo HTML you cut and paste already includes two instances of the script running. If the former, this isn't supported yet. Before we add such a functionality, you may want to look at Switch Content script instead: http://www.dynamicdrive.com/dynamicindex17/switchcontent.htm