Re: Preloading images

by "Peter-Paul Koch" <gassinaumasis(at)hotmail.com>

 Date:  Mon, 10 Jul 2000 09:34:22 GMT
 To:  webmaster(at)aurorawebdesign.com,
hwg-techniques(at)hwg.org
  todo: View Thread, Original
>I was under the impression that you pre-loaded images with a
>JavaScript. But I just read somewhere that a <img src=image.gif
>border=0 height=1 width=1> tag at the bottom of a previous page
>would do it. Is this correct? Is there more than one way to do it
>and will this work?

Yes, yes and yes.

The JavaScript method is mainly for use with mouseovers: to prevent the user 
from having to wait between the mousing over and the changing of the image. 
If you use the HTML method, this won't work correctly since the images will 
be merely in the cache, not in the JavaScript in the page.

So for mouseovers use JavaScript, for anything else you can use the HTML 
method.

ppk
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA