Closed Thread
Results 1 to 2 of 2

Thread: Hide information

  1. #1
    Chan is offline Programming Professional
    Join Date
    Jun 2006
    Posts
    205
    Rep Power
    0

    Hide information

    What is the code to hide a bit of information and then when the user clicks on something, like a plus mark, the information will drop down below?

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Saint is offline Learning Programmer
    Join Date
    Aug 2006
    Posts
    63
    Rep Power
    0
    Add this to your header:

    HTML Code:
    <script type="text/javascript">
    <!--
    function toggle_visibility(id) {
    var e = document.getElementById(id);
    if(e.style.display == 'none')
    e.style.display = 'block';
    else
    e.style.display = 'none';
    }
    //-->
    </script>

    Add this in your code:

    HTML Code:
    <a href="#" onclick="toggle_visibility('foo');">Toggle Visibility</a><div id="foo">This is foo</div>
    Hi >> Saint

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. hide URL
    By VakhoQ in forum PHP Development
    Replies: 3
    Last Post: 03-16-2011, 04:02 AM
  2. How 2 hide a window by using C++??
    By Hassan Syed in forum C and C++
    Replies: 2
    Last Post: 02-22-2009, 02:38 AM
  3. Hide Text???
    By gszauer in forum JavaScript and CSS
    Replies: 2
    Last Post: 01-09-2008, 07:36 AM
  4. Hide web address
    By pcdctr in forum Java Help
    Replies: 4
    Last Post: 06-02-2007, 04:38 AM
  5. What's the [Hide] tag?
    By Kaabi in forum The Lounge
    Replies: 2
    Last Post: 07-30-2006, 12:09 PM

Tags for this Thread

Bookmarks

Posting Permissions

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