 |
Results from the most recent live auction are here.
20 members in the live chat room. Join Chat!
| |
05-30-2006, 06:04 PM
|
· #1 | | NamePros Regular Join Date: Jul 2005
Posts: 557
NP$: 77.26 ( Donate)
| collapseable tables How can you make tables collapse with the click of a button? like on vB, how you can minimize/collapse sections. thanks. |
| |
05-30-2006, 06:25 PM
|
· #2 | | NamePros Regular Name: Harry Truman Location: Derbyshire, UK Join Date: Dec 2005
Posts: 887
NP$: 26.45 ( Donate)
| In the table you could put the following: Code: <table>
<tr>
<td onclick="document.this.style.height=0">Shrinking content</td>
</tr>
</table>
A simple little bit of JavaScript, although it requires the client to have JavaScript enabled on their browser. If it is not, nothing will happen when the table cell is clicked. The onclick event can be used in any part of the table as well, not just a single cell.
Hope this helps. |
| |
05-30-2006, 07:59 PM
|
· #3 | | Eating Pie Name: Steve Location: Canada Join Date: Nov 2004
Posts: 2,284
NP$: 91.30 ( Donate)
| Well VB actualy uses a DHTML dropdown menu. That is abit more complex than what harry did but it will work.
- Steve |
| |
07-09-2006, 09:39 PM
|
· #4 | | NamePros Emeritus Name: RegisterBetter.com Location: Esse quam videri Join Date: Nov 2004
Posts: 8,211
NP$: 54.81 ( Donate)
| Must admit I'm looking for this, but I pasted the above and nothing happened....
Any help?
Need to click and have some content drop down...
-Allan 
__________________ I resolve to try to be more noob-friendly. |
| |
07-10-2006, 08:20 AM
|
· #5 | | Adrian Name: Adrian Location: Uk, South Yorkshire Join Date: Aug 2005
Posts: 1,227
NP$: 16.00 ( Donate)
|
__________________  NamePros  |
| |
07-10-2006, 09:16 AM
|
· #6 | | NamePros Emeritus Name: RegisterBetter.com Location: Esse quam videri Join Date: Nov 2004
Posts: 8,211
NP$: 54.81 ( Donate)
| Thanks, Adrian 
Works well now!
-Allan 
__________________ I resolve to try to be more noob-friendly. |
| |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | |