How to preload images without an array? Because There is a lot of images and each way to drive through the array is time consuming. Will something like this be correct?
$('.wrapper img').each(function(){ var att =$(this).attr('src'); var qwe = /(\.\w{3,4}$)/; att=att.replace(qwe,'_q.jpg'); var newI= $('<img src="'+att+'">'); $(this).click(function(){ $('.light img').attr('src',att); });
document.imagesthere access to all images. - nick_n_a