Jump to content

Annoying - Please Help


Ell20

Recommended Posts

Hi,

 

I am attempting to use the collaspsable div made by dynamic drive.

However I am using it within a while loop.

The problem with this is no matter which of the links to show/hide the div it always collaspes the last item in the while statement.

 

Code:

<a href="javascript:collapse2.slideit()">Show/Hide Biography</a>
<div id="cat" style="width: 300px;">

<!--Your DIV content as follows. Note to add CSS padding or margins, do it inside a DIV within the Collapsible DIV -->
<div>
<b>Biography</b>
<?=$biography?>
</div>

</div>

<script type="text/javascript">

//Syntax: var uniquevar=new animatedcollapse("DIV_id", animatetime_milisec, enablepersist(true/fase), [initialstate] )
var collapse2=new animatedcollapse("cat", 800, true)

</script>

 

Thanks for your help

Link to comment
https://forums.phpfreaks.com/topic/99823-annoying-please-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.