Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DIV tag

Status
Not open for further replies.

dvsmas

Programmer
Jun 20, 2001
16
0
0
US
How to show and hide DIV tag in Netscape ?
 
you can put a layer tag around it and set the visiblity property of the layer tag to show or hide
 
or alternative;y just show and hide the div itself?

try using this function

function showhide(action, divID){
switch(action){
case 'show':document.layers[divID].visibility = "show"; break;
case 'hide':document.layers[divID].visibililty = "hide"; break;
}
}

you would call the funtion like this maybe on a mouseover event??

onmouseover="showhide('hide','mydiv');

you may not want to use it in this format. i use individual generic show and hide functions which work in all major browsers based on global browser detection variables but the principle is the same.

hope this helps

rob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top