Image doesn't load on Opera 10

Image doesn't load on Opera 10

Hello everyone,

I try to get an image size like this :
  1. $("a").click(function(){
  2.     var img = '<img id=\"i\" src=\"'+ $(this).attr("href") +'\" alt=\"'+ $(this).attr("title") +'\" />';
  3.     $("body").append(img);
  4.     $("#i").load(function() {
  5.         $("#is").text("image size : " + $("#i").width() +" x "+ $("#i").height());
  6.     });
  7.     return false;
  8. });
Opera shows nothing.

If I don't use the .load() function Firefox 3.6 shows first the size of the alternative text. Then if I click a second time it shows the image size.

Does anyone knows how to do without using an exception?

Regards,