Basic Slide Show How to preload images.
image01= new Image()
image01.src="butter3.gif"

Notice that the preloading of the image takes place within in section of your webpage. Recall what you've learned-we are creating an instance of the image object (we did something similar for the date object). By using the keyword "new", we have done that. Next we need to tell it what exactly to contain in it, by using the src property and pointing that to the actual path to the image. Repeat this for every image you wish to preload.