PDA

View Full Version : query in collapse box


nerbert
05-31-2008, 06:39 PM
I've provided some Google Gadgets http://www.google.com/ig/directory?synd=open on my vB 3.6.8 forum in a collapse table. I've got everything working, but would like to prevent the gadgets from downloading if the table is collapsed. So far it isn't a problem since there are only two but if I add more it will slow the page down when it loads. So how do I make a query that will prevent the gadgets from downloading when the table is collapsed ?

Here's the code I'm using for the collapse table:

<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center">

<tbody>

<tr>

<td class="tcat" colspan="2"><a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('table_12')"><img id="collapseimg_table_12" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_table_12].gif" alt="" border="0" /></a>Search Links
</td>

</tr>

</tbody>
<tbody id="collapseobj_table_12" style="$vbcollapse[collapseobj_table_12]">
<tr>

<td class="alt1" width="50%"><center>############## Google Gadget 1 ##############</center></td>
<td class="alt1" width="100%"><center>############## Google Gadget 2 ##############</center>
</td>

</tr>
</tbody>
</table>