expand and collapse script help

Discussion in 'Web Design and Development' started by definitive, Apr 5, 2011.

  1. definitive macrumors 68000

    definitive

    Joined:
    Aug 4, 2008
    #1
    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.
     
  2. snebes macrumors 6502a

    Joined:
    Apr 20, 2008
    #2
    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.
     
  3. harpster macrumors regular

    Joined:
    Jan 26, 2010
    #3
  4. tschoftner macrumors member

    tschoftner

    Joined:
    Apr 14, 2007
    Location:
    Austria
    #4

Share This Page