Change the function checkLoad() to:
Code:
function checkLoad() {
if (currCount == preImages.length) {
var enterButton=document.all? document.all['ebut'] : document.getElementById('ebut');
enterButton.style.display='visible';
return
}
for (i = 0; i <= preImages.length; i++) {
if (loaded[i] == false && preImages[i].complete) {
loaded[i] = true
eval("document.img" + currCount + ".src=dots[1].src")
currCount++
}
}
timerID = setTimeout("checkLoad()",10)
}
And add this button wherever you like to the body of the page:
HTML Code:
<input style="visibility:hidden;" id="ebut" type="button" value="Enter" onclick="window.location.replace(locationAfterPreload);">
Bookmarks