I am creating a jQuery plugin.
How do I get the real image width and height with Javascript in Safari?
The following works with Firefox 3, IE7 and Opera 9:>
For functions where you do not want to alter the original placement or image.
$(this).clone().removeAttr("width").attr("width"); $(this).clone().removeAttr("height").attr("height);