image .load(function(){...

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
  1. var all_images=$(".wrapper_main").find("img");

  2. all_images.hide();

  3. all_images.each(function(){

  4.     $(this).load(function(){

  5.         $(this).fadeIn(500);

  6.     });

  7. });
thanks in advance