MooTools Asset.image

<div id=box></div>
<script>
window.addEvent(domready, function() {
var image = 1.jpg;
var loader = new Asset.images(image, {
onProgress: function() {
alert('load image');
},
onComplete: function() {
var load_img = new Element(img,{src:image}).inject($(box));
alert(load_img.getSize().x+' x '+load_img.getSize().y);
}
});
});
</script>

Related Posts

MooTools image, MooTools getPosition, getCoordinates