Hide Show collapses, how to like this site ?

Discussion in 'JavaScript' started by mlotfi, Mar 2, 2007.

  1. #1
    Hi


    where I work they have a software
    when someone want to download the specific version or its patches for example
    Version4.0
    4.0patch1
    4.0patch1

    Version4.1
    4.1patch0
    4.1patch2
    4.1patch3

    Version4.2
    ...
    ..

    and so on

    I want to do the same like this site :

    http://developers.sun.com/downloads/index.jsp



    I downloaded the js and css files try it locally, but the hide and show collapses don't work.

    could you please help me
     
    mlotfi, Mar 2, 2007 IP
  2. Aragorn

    Aragorn Peon

    Messages:
    1,491
    Likes Received:
    72
    Best Answers:
    1
    Trophy Points:
    0
    #2
    Aragorn, Mar 2, 2007 IP
  3. Louis11

    Louis11 Active Member

    Messages:
    783
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    70
    #3
    I've done this before. I just used DOM scripting and re-wrote the id (in this case a specific div) with the altered information. The button to 'expand' the information was changed to a 'collapse' button (again using dom, just changing the number passed) and so when a user clicked it a collapse function was called that again replaced the div with no content, and the 'collapse' with an 'expand'.

    If that makes any sense, I feel like I rambled :)
     
    Louis11, Mar 3, 2007 IP
  4. rays

    rays Active Member

    Messages:
    563
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    58
    #4
    rays, Mar 5, 2007 IP