Page 1 of 1

Simple DIV Layer Expand/Collapse

Posted: Thu Dec 11, 2008 12:28 pm
by SheDesigns
I'm looking for a SIMPLE script to expand a collapse a div with a (See More) link. The data is pulled from a database, and displays inside a table cell.
A little bit of information about the product...
[+] Click here to see more!
I just need something simple. Everything I'm finding when I search is super complicated and has too many bells and whistles with accordian effects & backgrounds.

Re: Simple DIV Layer Expand/Collapse

Posted: Thu Dec 11, 2008 1:07 pm
by Eran
A quick google search for 'toggle div javascript' comes up with:
http://www.netlobo.com/div_hiding.html
http://www.harrymaugans.com/2007/03/05/ ... t-and-css/
http://www.dustindiaz.com/seven-togglers/

And those are just the top 3 results

Re: Simple DIV Layer Expand/Collapse

Posted: Thu Dec 11, 2008 2:11 pm
by pickle
If you don't need animation, just toggle the "display" style from "none" to "block" and back.