...

View Full Version : Resolved Image preloader not preloading background images...



Daniellez
01-24-2009, 09:15 PM
Can this be modified so that it preloads background images that are included in my stylesheet?


function loadPage() {
if (document.getElementById) { // DOM3 = IE5, NS6
document.getElementById('preLoad').style.visibility = 'hidden';
}
else {
if (document.layers) { // Netscape 4
document.preLoad.visibility = 'hidden';
}
else { // IE 4
document.all.preLoad.style.visibility = 'hidden';
}
}
}

<body OnLoad="loadPage()">

----------------

Update: This works just fine...

http://www.borislavdopudja.net/en/writings/css_preloading/



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum