I am using a bunch of images and creating a slideshow.
$(function(){
$("#big-image img:eq(0)").nextAll().hide();
$(".small-images img").click(function(e){
var index = $(this).index();
$("#big-image img").eq(index).show().siblings().hide();
});
});
How can I :
Preload the images if there are going to be say 20 of them and how to show a preload icon during this process? I have seen some preloading examples on SO but nothing seems to fit.
A fiddle - http://jsfiddle.net/BkwrZ/