These two assignments, placed in the document <HEAD> are all that is necessary for preloading an image:
imButDown = new Image(); // call the Image constructor and
imButDown.src = "imButdown.gif"; // set src property by referencing a
// location, causing image to load
Adding an array of many images
arImageSrc = new Array (
"imButdown.gif",
"imButup.gif",
"imButthis.jpg",
.
.
.
"../images/imButthat.jpg"
)
arImageList = new Array ();
for (counter in arImageSrc) {
arImageList[counter] = new Image();
arImageList[counter].src = arImageSrc[counter];
}