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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.