MyBB Community Forums

Full Version: Make new table collapse
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Searched for this and everything I found didn't work Toungue I have something like this:

<table width="100%">
<thead>
<tr>
<td>
<div class="expcolimage"><img src="{$theme['imgdir']}/collapse{$collapsedimg['newsbars']}.gif" id="newsbars_img" class="expander" alt="[-]" title="[-]" /></div>
</td>
</tr>
</thead>
<tbody style="{$collapsed['newsbars_e']}" id="newsbars_e">
//code for newsbars
</tbody>
</table>

The +/- image chanegs when I click it but it doesn't expand or collapse, I assume I have to give the table a name but I can't seem to get it to work.

Help?? <3
Hellooo??
Your code works for me fine but try this..

<table width="100%">
 <tbody>
			<tr>
				<td class="thead" colspan="2">
<div class="expcolimage"><img src="{$theme['imgdir']}/collapse{$collapsedimg['newsbars']}.gif" id="newsbars_img" class="expander" alt="[-]" title="[-]" /></div>
			  <strong>Table Name</strong>
				</td>
			</tr>
		</tbody>
		<tbody style="{$collapsed['newsbars_e']}" id="newsbars_e">  
			<tr>
				<td class="trow1">// Content Here //</td>
			</tr>
		</tbody>
	</table> 
Did it?? Weird, that's what I got from other people's threads and it worked for them but didn't for me, however your code does, so thanks!! Smile
WoW so Doobie should become a support team member Toungue
(2009-04-13, 06:53 PM)ghazal Wrote: [ -> ]WoW so Doobie should become a support team member Toungue
For answering one question? .......
Yes Why Not Smile
Ghazal you don't ever help anyone, you just come in threads and say random things, why don't you stop it, Matt i been trying to figure this out to.