Page preloaders

hey everyone,

i was just wondering if anyone knew how to make a page preloader for some html pages. any ideas?

#488801

<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

#488809

nice, but how i cant hide the content when it loads?

#488816

nice, but how, i cant hide the content when it loads?

I forgot to add the bgcolor in the div layer. It's there now, that should help you out... just edit it to your needs,

#488822

Remove background-color:#fff; from

Edit: Oh didn't read last post, sorry. :)

#488824

thanks to both

#488827

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 ?

#488860

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.

#488861

i think "davidsword" + everyone has contributed well.. and the problem must've been solved now..

#493067

^ And your point was? I mean, you bumped this month old thread just to say that?

#493070

^ I say its because of the new thing were noobs cant post links and images. trying to raise post counts thanks to that jackass 'bigbag'

#493079