Log in

View Full Version : Collapsing table script?


crushmax
05-17-2006, 02:38 PM
Hi there,
I'm looking for a script that would allow me to create an empty collapsing table and add it to my forum. All I need is just the empty table with nothing indside. I want to be able to add my own stuff there and give users the option to either collapse the table or leave it like it is.
Is it even possible to do?

Rich
05-17-2006, 06:55 PM
Its possible. This is what I use on my forumhome template to get the desired effect you are seeking:


<!-- Start Empty Shell -->
<table width="100%" cellpadding="0" cellspacing="0" border="0" class="tborder">
<tbody>
<tr>
<td class="thead"><a style="float:$stylevar[right]; text-decoration:none" href="#top" onclick="return toggle_collapse('forumhome_empty')"><img id="collapseimg_forumhome_empty" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_empty].gif" border="0" alt="" /></a>Your Title</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_empty" style="$vbcollapse[collapseobj_forumhome_empty]">
<tr>
<td class="alt2" nowrap>Your Content</td></tr>
</tbody>
</table>
<!-- End Empty Shell -->