Hay, i'm using this script
function preloader(images){
var i = 0;
imageObj = new Image();
// start preloading
for(i=0; i<=images.length; i++){
imageObj.src=images[i];
imageObj.onLoad = check(i, images.length / 2);
};
}
and passing a bunch of images into it to preload.
the check() function is this
check = function(e,i){
if( e == i ){
run_fading_gallery(imgcode);
$(".loading").hide();
};
}
But it doesnt seem to be working.
Any ideas? Or is there anything i can use online already?