Log in

View Full Version : Collapsable Objects?


Pickalo
05-22-2006, 03:07 AM
How can I set for then to start off collapsed or start off expanded? Here is a sample of what I am working with:

<table class="tborder" cellpadding="2" cellspacing="1" border="0" width="150" align="center">
<thead>
<tr>
<td class="tcat">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('store_table_$post[postid]')"><img id="collapseimg_store_table_$post[postid]" src="$stylevar[imgdir_button]/collapse_tcat{$GLOBALS['vbcollapse']['collapseimg_store_table_' . $post[postid]]}.gif" alt="" border="0" /></a>
<div class="smallfont">Store</div>
</td>
</tr>
</thead>
<tbody id="collapseobj_store_table_$post[postid]" style="display: none;">
<tr>
<td class="alt1">
<div class="smallfont">
<if condition="$vboptions['vbbux_enabled']">
$vbphrase[vbbux_points]: $post[points]<br />
$vbphrase[vbbux_bank]: $post[bank]<br />
<phrase 1="$vbphrase[vbbux_points]">$vbphrase[vbbux_total_points]</phrase>: $post[totalpoints]<br />
<a href="vbplaza.php?do=donate&amp;userid=$post[userid]">$vbphrase[vbplaza_donate]</a><br />
</if>
</div>
</td>
</tr>
</tbody>
</table>

Thanks in advance.

Logikos
05-22-2006, 03:43 AM
This post should help you out. (https://vborg.vbsupport.ru/showpost.php?p=971864&postcount=10):)

Pickalo
05-23-2006, 05:44 PM
Ahh perfect thanks :)

edit: for anyone interested, all I had to do was replace the
style="display: none;"
with
style="$collapseobj_groupid"
in
<tbody id="collapseobj_store_table_$post[postid]" style="display: none;">