pcwr4it
11-16-2003, 04:37 PM
Any reason why Netscape7.1 interprets my OnLoad code differently from Netscape Communicator 4.75?
It works on IE5&6 and NC4.75 but not N7.1 Sorry don't have any other browsers to test it on.
Code is as follows:
<script LANGUAGE="JavaScript">
<!-- Begin
function loadImages() {
if (document.layers) {
document.hidepage.visibility = 'hidden';
}
else {
document.all.hidepage.style.visibility = 'hidden';
}
}
// End -->
</script>
</head>
<body OnLoad="loadImages()" leftMargin="0" text="#000000" topMargin="0" marginheight="0"
marginwidth="0" BGColor="#FFFFFF">
<div id="hidepage"
style="position: absolute; left:5px; top:5px; background-color: #cccc99; layer-background-color: #cccc99; height: 100%; width: 100%;">
<table width="100%">
<tr>
<td>Page loading ... Please wait.</td>
</tr>
</table>
</div>
It works on IE5&6 and NC4.75 but not N7.1 Sorry don't have any other browsers to test it on.
Code is as follows:
<script LANGUAGE="JavaScript">
<!-- Begin
function loadImages() {
if (document.layers) {
document.hidepage.visibility = 'hidden';
}
else {
document.all.hidepage.style.visibility = 'hidden';
}
}
// End -->
</script>
</head>
<body OnLoad="loadImages()" leftMargin="0" text="#000000" topMargin="0" marginheight="0"
marginwidth="0" BGColor="#FFFFFF">
<div id="hidepage"
style="position: absolute; left:5px; top:5px; background-color: #cccc99; layer-background-color: #cccc99; height: 100%; width: 100%;">
<table width="100%">
<tr>
<td>Page loading ... Please wait.</td>
</tr>
</table>
</div>