Does this image caching code work?
Code:
<!-- Preload rollovers -->
<script language="javascript">
<!--
function preloadImages()
{
imageCacher = new Array(5);
imageSources = new Array("text/passprog.gif", "text/tinyclock.gif", "text/vbtips.gif",
"text/theater.gif", "text/forums.gif");
for (i = 0; i < imageSources.length; i++)
{
imageCacher[i] = new Image();
imageCacher.src = imageSources[i];
}
}
preloadImages();
// -->
</script>
I can't tell if it does because first it does nothing appearance-wise, and second the images are small and load very quickly as it is, especially because I'm testing the page on my own computer.