Netscape considers the contents of each DIV/LAYER as a completely new document; thus, to access 'div1' you need to assign your outer div an ID (say 'wrapper') and then use document.wrapper.document.div1.
Here's an example:
Code:
<html>
<head>
<title> type_Document_Title_here </title>
</head>
<body>
<div id="wrapper" style="position:relative">
<div id="div1" style="position:absolute;top:100;left:100;width:50;height:50">
<table bgcolor="red" border=0 width=50 height=50>
<tr>
<td valign=middle align=center>
<font color="white">Hi!</font>
</td>
</tr>
</table>
</div>
</div>
<script language="JavaScript">
<!--
function blink(setVisibility) {
if (document.layers) { // NS4
document.wrapper.document.div1.visibility = (setVisibility ? "visible" : "hidden");
} else if (document.all) { // MSIE
document.all.div1.style.visibility = (setVisibility ? "visible" : "hidden");
}
setTimeout("blink("+!setVisibility+")",1000);
}
setTimeout("blink(false)",1000);
//-->
</script>
</body>
</html>
Bookmarks