PDA

View Full Version : [Solved] Multiple collapsable menus on a single page


Taragon
02-27-2008, 08:58 PM
Hello,

I’m trying to create some multiple collapsable menus on one single page, but somehow all ‘after the first panels’ will open and close the first panel.

Ie. this would be my first and second panel:

First
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr>
<td class="tcat">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumbit_$flickr_photos')"><img id="collapseimg_forumbit_$flickr_photos" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_flickr_photos}.gif" alt="" border="0" /></a>
$vbphrase[flickr_photos]
</td>
</tr>
</thead>
<tbody id="collapseobj_forumbit_$flickr_photos" style="{$collapseobj_flickr_photos}">

etc.

Second
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr>
<td class="tcat">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumbit_$additional_information' )"><img id="collapseimg_forumbit_$additional_information" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_additional_information} .gif" alt="" border="0" /></a>
$vbphrase[additional_information]
</td>
</tr>
</thead>
<tbody id="collapseobj_forumbit_$additional_information" style="{$collapseobj_additional_information}">

etc.
I'm quite sure it's something I forgot, or something I didn't notice.
I really hope you could point this out for me.

Best regards,

Cor

--------------- Added 1204194540 at 1204194540 ---------------

a 'working' not working example of what I meant: http://www.letsgather.net/member.php?u=1

'Flickr Photos' and 'Additional Information' are somehow linked together.

Edit:

Solved: http://www.vbstyles.com/forum/showthread.php?p=16518