Results 1 to 4 of 4

Thread: looking for script

  1. #1

    Thread Starter
    Hyperactive Member Sacofjoea's Avatar
    Join Date
    May 2000
    Location
    Never Never Land
    Posts
    472

    looking for script

    hey
    I have a items in a table as show below, what I want to do is make it kind of like a folder tree where, when you click on the last one for example, it rolls out all of the sound icons which then allows you to download by clicking on each sound icon. and I can store the sound icons with a small description next to it and then whenever you click on the parent text, it rolls it out..

    know what im saying?

  2. #2

    Thread Starter
    Hyperactive Member Sacofjoea's Avatar
    Join Date
    May 2000
    Location
    Never Never Land
    Posts
    472
    ok.. well ive found some javascript that hides the portion i want to..

    Code:
    <script name="startmenu"> 
    var h = "hidden"; 
    var v = "visible"; 
    function showMenu(_v) { window.document.all.StartMenu.style.visibility = _v?v:h; }
    </script> 
    
    ...
    
    <table width="50%" border="0" id="StartMenu">
    
    ...
    
    <a href="javascript:showMenu(true)">open</a>
    <a href="javascript:showMenu(false)">close</a>
    only thing is that once you hide it, the stuff is still there, just not visible.. so is there any way to get the table to resize itself once you click the hide button? that way there wotn be a little spot of empty space..

  3. #3

    Thread Starter
    Hyperactive Member Sacofjoea's Avatar
    Join Date
    May 2000
    Location
    Never Never Land
    Posts
    472
    also, how can I modify that code to allow me to have multiple items?

    cause as of now, I can only do it to one table, or one line of text, or whatever..

  4. #4
    Lively Member
    Join Date
    Jul 2001
    Location
    USA
    Posts
    95
    style.display = 'none' and style.display = 'block' would work

    <html>
    <head>

    <script language="JavaScript">
    <!--
    var layers = document.all['span1'];
    function doit(){
    if (span1.style.display == "none")
    span1.style.display = "block"
    else
    span1.style.display = "none"
    }
    //-->
    </script>
    </head>
    <body>
    <div style="cursor:hand" onclick="doit()">Click Here</div>
    <SPAN id="span1" style="display: none">
    Hello
    </SPAN>
    xxxxxxxxxxx
    </body>
    </html>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width