Closed Thread Icon

Topic awaiting preservation: HTML Page Preloader NS6 Problem (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=8312" title="Pages that link to Topic awaiting preservation: HTML Page Preloader NS6 Problem (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: HTML Page Preloader NS6 Problem <span class="small">(Page 1 of 1)</span>\

 
wedge
Nervous Wreck (II) Inmate

From:
Insane since: Aug 2002

posted posted 09-16-2002 22:33

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>

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 09-16-2002 23:15

Offhand it looks fine.

It might not help, but can we see the actual page to view the behavior ourselves?

« BackwardsOnwards »

Show Forum Drop Down Menu