Code modification...
by "Eastwind Design" <ewdg(at)ewdg.com>
|
Date: |
Mon, 12 Jul 1999 16:23:52 -0700 |
To: |
<hwg-critique(at)hwg.org> |
References: |
pangaealink anneke |
|
todo: View
Thread,
Original
|
|
I'm reposting the JavaScript code, as I left a couple lines out:
> Another method would be to use JavaScript to preload images that do not
> display on the page using this code:
>
> Within the document head:
<script language="JavaScript">
<!--
function PreloadImages() {
if (document.images) {
var imgFiles = PreloadImages.arguments;
var preloadArray = new Array();
for (var i=0; i<imgFiles.length; i++) {
preloadArray[i] = new Image;
preloadArray[i].src = imgFiles[i];
}
}
}
-->
</script>
> Outside the head, preferable immediately after the <body> tag put:
<script language='JavaScript'>
<!--
PreloadImages('filename.jpg');
PreloadImages('filename2.jpg');
PreloadImages('filename3.jpg');
PreloadImages('filename4.jpg');
-->
</script>
HTML: hwg-critique mailing list archives,
maintained by Webmaster @ IWA