My goal is to preload these images for an image swap on the page. It runs on body load but I'm not quite sure why it doesn't work...
function preload() {
imageObj = new Image();
images = new Array();
images[0] = "images/globe2.jpg";
images[1] = "images/stickme2.jpg";
images[2] = "images/monitor2.jpg";
images[3] = "images/mail2.jpg";
images[4] = "images/hyperlink2.jpg";
for(i = 0; i < 5; i++) {
imageObj.src = images[i];
}
}