[advanced search]
Results from the most recent live auction are here.
20 members in the live chat room. Join Chat!
Register Rules & FAQ NP$ Store Active Threads Mark Forums Read
Go Back   NamePros.Com > Design and Development > Programming
User Name
Password

Old 05-30-2006, 06:04 PM   · #1
ApocComputing
NamePros Regular
 
ApocComputing's Avatar
 
Trader Rating: (12)
Join Date: Jul 2005
Posts: 557
NP$: 77.26 (Donate)
ApocComputing is a jewel in the roughApocComputing is a jewel in the roughApocComputing is a jewel in the rough
collapseable tables

How can you make tables collapse with the click of a button? like on vB, how you can minimize/collapse sections. thanks.


Please register or log-in into NamePros to hide ads
__________________
WiiBrowser
www.wiibrowser.com
UploadView
www.uploadview.com
ApocComputing is offline   Reply With Quote
Old 05-30-2006, 06:25 PM   · #2
hairyfreak
NamePros Regular
 
hairyfreak's Avatar
 
Name: Harry Truman
Location: Derbyshire, UK
Trader Rating: (13)
Join Date: Dec 2005
Posts: 887
NP$: 26.45 (Donate)
hairyfreak is just really nicehairyfreak is just really nicehairyfreak is just really nicehairyfreak is just really nice
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.
hairyfreak is offline   Reply With Quote
Old 05-30-2006, 07:59 PM   · #3
iNod
Eating Pie
 
iNod's Avatar
 
Name: Steve
Location: Canada
Trader Rating: (66)
Join Date: Nov 2004
Posts: 2,284
NP$: 91.30 (Donate)
iNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud of
Special Olympics AIDS/HIV Cystic Fibrosis Save The Children Baby Health Cystic Fibrosis
Well VB actualy uses a DHTML dropdown menu. That is abit more complex than what harry did but it will work.

- Steve
__________________
RegisterDub.com - 200th Customer Milestone
ZuneParts.net - International Zune Parts and Accessories
FeaturedFont.com - One Top Free Font a Day!
iNod is offline   Reply With Quote
Old 07-09-2006, 09:39 PM   · #4
IAmAllanShore
NamePros Emeritus
 
IAmAllanShore's Avatar
 
Name: RegisterBetter.com
Location: Esse quam videri
Trader Rating: (85)
Join Date: Nov 2004
Posts: 8,211
NP$: 54.81 (Donate)
IAmAllanShore has a reputation beyond reputeIAmAllanShore has a reputation beyond reputeIAmAllanShore has a reputation beyond reputeIAmAllanShore has a reputation beyond reputeIAmAllanShore has a reputation beyond reputeIAmAllanShore has a reputation beyond reputeIAmAllanShore has a reputation beyond reputeIAmAllanShore has a reputation beyond reputeIAmAllanShore has a reputation beyond reputeIAmAllanShore has a reputation beyond reputeIAmAllanShore has a reputation beyond repute
Member of the Month
January 2005Member of the Month
February 2007 Ethan Allen Fund Child Abuse Child Abuse Child Abuse Child Abuse Save The Children Save The Children Child Abuse Child Abuse Child Abuse Child Abuse VA Tech Memorial Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse
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.
RegisterBetter.com - in BetaMode
Something Witty This Way Comes...
IAmAllanShore is offline  
  Reply With Quote
Old 07-10-2006, 08:20 AM   · #5
Hitch
Adrian
 
Hitch's Avatar
 
Name: Adrian
Location: Uk, South Yorkshire
Trader Rating: (10)
Join Date: Aug 2005
Posts: 1,227
NP$: 16.00 (Donate)
Hitch is a splendid one to beholdHitch is a splendid one to beholdHitch is a splendid one to beholdHitch is a splendid one to beholdHitch is a splendid one to beholdHitch is a splendid one to beholdHitch is a splendid one to behold
Winner
PHP Programming - May 2007 Animal Rescue Third World Education Find Marrow Donors!
Hi,

I did some searching, and i found this tutorial, http://www.dustindiaz.com/dhtml-exp...lapse-div-menu/

I think it's what you wanted. You can see it in action here, http://www.dustindiaz.com/basement/block-toggle.html

Hope this helps.

Adrian
__________________
NamePros
Hitch is offline   Reply With Quote
Old 07-10-2006, 09:16 AM   · #6
IAmAllanShore
NamePros Emeritus
 
IAmAllanShore's Avatar
 
Name: RegisterBetter.com
Location: Esse quam videri
Trader Rating: (85)
Join Date: Nov 2004
Posts: 8,211
NP$: 54.81 (Donate)
IAmAllanShore has a reputation beyond reputeIAmAllanShore has a reputation beyond reputeIAmAllanShore has a reputation beyond reputeIAmAllanShore has a reputation beyond reputeIAmAllanShore has a reputation beyond reputeIAmAllanShore has a reputation beyond reputeIAmAllanShore has a reputation beyond reputeIAmAllanShore has a reputation beyond reputeIAmAllanShore has a reputation beyond reputeIAmAllanShore has a reputation beyond reputeIAmAllanShore has a reputation beyond repute
Member of the Month
January 2005Member of the Month
February 2007 Ethan Allen Fund Child Abuse Child Abuse Child Abuse Child Abuse Save The Children Save The Children Child Abuse Child Abuse Child Abuse Child Abuse VA Tech Memorial Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse
Thanks, Adrian
Works well now!
-Allan
__________________
I resolve to try to be more noob-friendly.
RegisterBetter.com - in BetaMode
Something Witty This Way Comes...
IAmAllanShore is offline  
  Reply With Quote
Closed Thread

NamePros is a revenue sharing forum.

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Site Sponsors
EscrowDNS RealTechNetwork Buy Flash Arcade Game Script
Advertise your business at NamePros
All times are GMT -7. The time now is 09:23 AM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0