I have a script that will preload an html page without using an additional page or redirecting script. With the help of Kuckus I was able to get this script to hide flash elements until the html images were completely loaded in IE browsers. This does not work properly in NS 6 however. In NS6 you will see the loading text while the html loads but the flash navigation remains hidden when the html images are done. I am not sure if this is a syntax problem or incorrect formatting of the DOM structure. Any help would be greatly appreciated.
Here's the script originated by Gilbert Davis and modified to hide the flash by Kuckus.
Wedge
<html>
<head>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function loadImages() {
if (document.getElementById) { // DOM3 = IE5, NS6
document.getElementById("hidepage").style.visibility="hidden";
document.getElementById("hideflash").style.visibility="visible";
}
else {
if(document.layers){ //netscape 4
document.hidepage.visibility="hidden";
document.hideflash.visibility="visible";
}
else { // IE 4
document.all.hidepage.style.visibility = "hidden";
document.all.hideflash.style.visibility = "visible";
}
}
}
</script>
</head>
<body onload="loadImages()">
<div id="hidepage" style="position:absolute; top:0px; left:0px; height:100%; width:100%;">
<table width="100%" height="100%" border="0"><tr><td align="center" valign="center"><font face="verdana" color="#ffffff" ><B>Loading...</b></font></td></tr></table></div>
html content here
<div id="hideflash" style="visibility:hidden;">
flash navigation here
</div>
</body>
</html>