Tails
03-01-2003, 07:35 PM
Preloading never seems to work for me. Even for a split second or 2, I see 'X' before the page is done loading, why? And because of the lovely thing that you can't disable known as "cache", there's no way of knowing. I can't test it offline. I tried it on a floppy even after changing to another disk and then replacing the first and the images are still in Windows cache and not loading at floppy speed. And then online, servers handle cache on any files you have loaded and remain that way until that file is modified. Is the term "preloading" just a hoaxe? I want to make my own preload bar.
<script>
A=Array("20.gif","21.gif","22.gif","23.gif")
B=Array("a","b","c","d")
for (i=0; i<A.length; i++)
{
B[i]=new Image()
B[i].src=A[i]
grow()
}
function grow()
{
document.images[0].width+=50
}
</script>
<body>
<img src="z.gif" width="0" height="16" />
</body>
Will this work?
<script>
A=Array("20.gif","21.gif","22.gif","23.gif")
B=Array("a","b","c","d")
for (i=0; i<A.length; i++)
{
B[i]=new Image()
B[i].src=A[i]
grow()
}
function grow()
{
document.images[0].width+=50
}
</script>
<body>
<img src="z.gif" width="0" height="16" />
</body>
Will this work?