Hide/Show Magic

Now you know what CSS and DHTML is. With these things we can hide or show object very easily. This hide and show functions are supported by both IE 4 and NC 4.

The first, here is the style tag.

divName.style.visibility = "visible"
div.style.visibility = "hidden"

Visible is showing, and hidden is hiding.

If you do not want to repeat this statment, use JavaScript.

function show(sho) {
   sho.visibility = "visible"
}
fuction hide(hid) {
   sho.visibility = "hidden"
}

If you want to use this script. Just write;

  show(divId)  hide(divId)  

click here to see example.

Back to home.