image .load(function(){...
Hello, I have a bit of a problem with this standard code,
only first image in the all_images array loads and the rest stays hidden.
it works first time i load the page, but any other time it loads only one image.
i understand it might have to do with the cache.
what could be possible cause for breaking the .each() loop after first iteration?
i'm using jquery 1.3.2, png fix and php
- var all_images=$(".wrapper_main").find("img");
- all_images.hide();
- all_images.each(function(){
- $(this).load(function(){
- $(this).fadeIn(500);
- });
- });
thanks in advance