Posted By

Memphys on 10/09/06


Tagged

show javascript menu hide


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

vali29
jfherring
Xek


show/hide menu


 / Published in: JavaScript
 

Works in IE6, Opera, Firefox. elemID is the id-attribute of or smt like that.

  1. function hide(elemID){
  2. var elem = document.getElementById(elemID);
  3. elem.style.visibility = "hidden";
  4.  
  5. }
  6. function show(elemID){
  7. var elem = document.getElementById(elemID);
  8. elem.style.visibility = "visible";
  9. }

Report this snippet  

You need to login to post a comment.