Forum Moderators: open
However the div is showing, regardless. Here is my js.
<SCRIPT TYPE="text/javascript">
<!--
// This script is intended for use with a minimum of Netscape 4 or IE 4.
var ns4 = (document.layers);
var ie4 = (document.all &&!document.getElementById);
var ie5 = (document.all && document.getElementById);
var ns6 = (!document.all && document.getElementById);function show(id){
// Netscape 4
if(ns4){
document.layers[id].visibility = "show";
}
// Explorer 4
else if(ie4){
document.all[id].style.visibility = "visible";
}
// W3C - Explorer 5+ and Netscape 6+
else if(ie5 ¦¦ ns6){
document.getElementById(id).style.visibility = "visible";
}
}
function hide(id){
// Netscape 4
if(ns4){
document.layers[id].visibility = "hide";
}
// Explorer 4
else if(ie4){
document.all[id].style.visibility = "hidden";
}
// W3C - Explorer 5+ and Netscape 6+
else if(ie5 ¦¦ ns6){
document.getElementById(id).style.visibility = "hidden";
}
}
//-->
</SCRIPT>
Now my table row
<div id="loading">
<tr>
<td colspan="3" align="center" style="background-color:red; color:black;">Loading... Please wait...</td>
</tr>
</div>
Now i have tried a body onload calling the function hide('loading'); and that doesn't work. Neither does adding a script block at the end of the page calling the function.
Any ideas?
display property instead, since making something invisible will still take up space on the page.
<added>
Ok I have discovered z-index... now it works for about half of the page down. I guess a little more experimenting is in order!
</added>