Uff I'm sorry, check the " '<img'> " part... it should say: " '<img>'
"... I'm sorry..

This is fixed, and I tested it in Firefox 2.0.0.7 and IE6, both
Windows. Make sure you put a valid image url instead of xyz.jpg.

$(function(){//make sure this happens after document ready.
    $('<img>').load(function(){
        var $img = $(this);
        var width = $img.width();
        var height= $img.height();
        $img.remove();//in case you don't want it to stay in the dom
       alert(width + ' '+ height);
   }).attr( 'src', 'xyz.jpg' ).appendTo('body');
});

Ariel Flesler

On 4 oct, 09:18, BAlex <[EMAIL PROTECTED]> wrote:
> I regret, but anything from offered does not work as it is necessary
> in Firefox and Safari.

Reply via email to