Hi,

please could somebody tell me how to improve the following code:

$(document).ready(function() {
  $("img.thumb").load(function() {
   $(this).addClass("visible");
  });
});

The idea is that an image needs to be displayed only when it has fully
loaded. Prior to that the background of the <div> is displayed as the
image is set to hidden. FF and Opera are fine with this, but IE6
consistently fails to unhide some images. I guess the .load() function
is called too late for some of them, but not sure how to improve the
situation.

Thank you!

Martin

Reply via email to