|
September 27, 1999 Preload Your Images Tips: September 1999
Yehuda Shiran, Ph.D.
|
|
If you're going to create an animation or a rollover, you'll probably want to preload the necessary images. We'll use the onLoad event handler to cache the images after the entire page has completely loaded. The following function accepts a list of image URLs, and preloads those images:
Now you're ready to invoke the function. The following event handler definition does the job:
People who read this tip also read these tips: Look for similar tips by subject: |