expanding and collapsing

Discussion in 'JavaScript' started by gilgalbiblewheel, Jul 25, 2007.

  1. #1
    Is there a way to expand and collapse in JavaScript? What's the best way?
     
    gilgalbiblewheel, Jul 25, 2007 IP
  2. gibex

    gibex Active Member

    Messages:
    1,060
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    95
    #2
    gibex, Jul 25, 2007 IP
  3. NoamBarz

    NoamBarz Active Member

    Messages:
    242
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    58
    #3
    You need to use HTML elements like DIVs and use javascript to edit their size and location. Search online for examples. You'll find loads.
     
    NoamBarz, Jul 25, 2007 IP
  4. ready2work

    ready2work Guest

    Best Answers:
    0
    #4
    To achieve expanding and collapsing of content, you have to combine <div> and javascript. By using JavaScript you will be changing the <div>'s style.display property.

    Lots of examples are available on the net.
     
    ready2work, Jul 26, 2007 IP