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?
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
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks