View Full Version : Building Collapsing Tables?
bgtking
01-05-2004, 07:53 PM
I ahve been trying to create a collapsing table for my forum by modifying some of the code already with vBulletin. The table will collapse, but it wil not stay. I know it has something to do with the names of what you want to collapse, but I do not know how to change it. Does anyone know how I could create a collapsing table to work on my forum home page?
JoergZ
01-05-2004, 08:06 PM
Here an example. Try to use it or parts of it...
Note: If you replace the xxxxx in my example, always use the same for xxxxx
J?rg
<table width="395" class="tborder" border="0" cellspacing="$stylevar[cellspacing]" cellpadding="4" align="center"><col width="25%"><col width="25%"><col width="25%"><col width="25%">
<tbody>
<tr>
<td colspan="4" class="tcat">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('xxxxx')"><img id="collapseimg_xxxxx" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_xxxxx].gif" alt="" border="0" /></a>
$vbphrase[your_text_in_table_header]
</td>
</tr>
</tbody>
<tbody id="collapseobj_xxxxx" style="$vbcollapse[collapseobj_xxxxxx]">
<tr>
.... your table content here ......
</tr>
</tbody>
NTLDR
01-05-2004, 08:35 PM
Also note that xxxxx should be unique for each collasping table.
bgtking
01-05-2004, 08:50 PM
Okay, thanks. It works.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.