<script>
function preloadimg(){
//Single Image Load
var img = new Image();
img.src = "www.YOUSITE.com/PATH/TO/IMAGE.jpg"; //Change to correct image link
}
function preloadimgs(){
//Multiple Load
var numofimgs = 5 //Change to the number of images you have
var imgarray = new Array();
for(i=0;i<numofimgs;i++){
imgarray[i] = new Image();
}
imgarray[0].src = "www.YOUSITE.com/PATH/TO/IMAGE1.jpg";
imgarray[1].src = "www.YOUSITE.com/PATH/TO/IMAGE2.jpg";
imgarray[2].src = "www.YOUSITE.com/PATH/TO/IMAGE3.jpg";
imgarray[3].src = "www.YOUSITE.com/PATH/TO/IMAGE4.jpg";
imgarray[4].src = "www.YOUSITE.com/PATH/TO/IMAGE5.jpg";
}
</script>
...
<body onload="preloadimg();">//Or preloadimgs()