I need to load about a dozen images into cache on the first page of a site. This first page may only be visible for a few seconds due to the user following a link from that page.
After browsing through several pages (without images), I'd like images to display instantaneously (from cache) on pages that do have images.
Is this possible?
I've tried using this type of code in the HEAD section of my page, but it results in error: Expected ';'
Any help would be much appreciated.
Thanks,
David Lord
PS: I may need to extend this to .wav files too. [sig][/sig]
After browsing through several pages (without images), I'd like images to display instantaneously (from cache) on pages that do have images.
Is this possible?
I've tried using this type of code in the HEAD section of my page, but it results in error: Expected ';'
Code:
<SCRIPT LANGUAGE="JavaScript">
<!--
image1 = new Image();
image1.src = "/graphics/image1.jpg";
image2 = new Image();
image2.src = "/graphics/image2.jpg";
// -->
</SCRIPT>
Any help would be much appreciated.
Thanks,
David Lord
PS: I may need to extend this to .wav files too. [sig][/sig]