i was just wondering if anyone knew how to make a page preloader for some html pages. any ideas?
Page 1 of 1
Page preloaders
#2
Posted 23 January 2008 - 06:42 AM
<head>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function loadImages() {
if (document.getElementById) { // DOM3 = IE5, NS6
document.getElementById('hidepage').style.visibility = 'hidden';
}
else {
if (document.layers) { // Netscape 4
document.hidepage.visibility = 'hidden';
}
else { // IE 4
document.all.hidepage.style.visibility = 'hidden';
}
}
}
// End -->
</script>
</head>
<body OnLoad="loadImages()">
<div id="hidepage" style="position: absolute; background-color:#fff; left:5px; top:5px; height: 100%; width: 100%;">
<p>loading image/text or wtv</p></div>
<!-- page contents here-->
</body>this one works decent
#7
Posted 23 January 2008 - 10:59 PM
odd, when i tried this i ended up with a white screen and then the content loaded.
is there a way to have load a rotating preloader first (i have made a rotating .gif file), while everthing else is being loaded, then take off the preloader once everything is done ?
is there a way to have load a rotating preloader first (i have made a rotating .gif file), while everthing else is being loaded, then take off the preloader once everything is done ?
#8
Posted 23 January 2008 - 11:13 PM
thats exactly what it does... the div layer shows only when the page is loading, once the page is loaded the div layer goes away.
you have to replace the text with what you need (image etc) and edit the div to fit your page (its currently set up so its just white with text).. if you dont know how than google.
you have to replace the text with what you need (image etc) and edit the div to fit your page (its currently set up so its just white with text).. if you dont know how than google.
Page 1 of 1








Sign In »
Register Now!
Help

MultiQuote