PDA

View Full Version : collapse/expand tables/cells...


eL'Bandito
11-07-2004, 02:57 PM
Not so much a hack request... just a request for a hand with this feature really.

Is there way to force tables to be collasped 1st.... untill the expand link/button clicked???

Instead of being the other way round...

I'm using the feature in some front & other site pages along with my forums stylesheets etc.

<a style="float:right" href="#top" onclick="return toggle_collapse('##tablename##')"><img src="imglocation" alt="" width="17" height="17" border="0" id="collapseimg_##tablename##" />

---------------------------------------------------

<tbody id="collapseobj_##tablename##" style="">
</tbody>hope that makes sense.... any help would be greatly appreciated :)

HiDeo
11-07-2004, 04:12 PM
I think it's:

<tbody id="collapseobj_##tablename##" style="display:none;">

eL'Bandito
11-07-2004, 04:42 PM
thankyou.. thats done the trick :D

another question... is there a way to make a 'randem' table be expanded & all the rest collasped....

The reason for this is I'm using the expand & collapse feature for multiple articles on a reviews section of my site... & it would be really cool if each time u refreshed or visited the page it opened a different article each time....