Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

definitive

macrumors 68020
Original poster
Aug 4, 2008
2,089
1,021
anyone know the name of a script which expands to reveal a block of text?

ex: i have 4 buttons, and whenever you press on one of them, it slides open to reveal text under it. when you press on it again, it closes up. when you press on the button below the top button, it closes the top one, and opens the one that's clicked, etc.
 
Search for an accordion javascript. If you use jQuery/MooTools already, there are hundreds of small ones. If you don't use those, check out ones on dynamicdrive.com.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.