Image Swap and Preload | JavaScriptSource

Image Swap and Preload

Dan Christensen Apr 12, 2002
This script is an array of image URLs that uses a for..next loop to preload images, and a simple object structure to change another image's SouRCe (src) property. Images used in the example are (C) Copyright 2002 INT Media Group. Works in MSIE and Netscape.



  Click to enlarge.

   
 
Images (C) Copyright Internet.Com and JavaScript.Internet.Com

The JavaScript Source: Miscellaneous: Image Swap and Preload

Simply click inside the window below, use your cursor to highlight the script, and copy (type Control-c or Apple-c) the script into a new file in your text editor (such as Note Pad or Simple Text) and save (Control-s or Command-s). The script is yours!!!

    

Did you use this script?  Do you like this site?  Please link to us!

Leave a Response

(
0 comments)