<script type="text/javascript">
var images = new Array("0.jpg", "1.jpg", "2.jpg");
var loadedImgsCount=0;
var imgTotalWidth = 0;
for (var i = 0; i < images.length; i = i + 1) {
$("#img_place").append('<img src="' + images[i] + '" onload="loadCoount++;">');
}
interv = setInterval(function() {
if (images.length === loadedImgsCount) {
$("#img_place > img").each(function() {
imgTotalWidth+=$(this).width();
});
alert(imgTotalWidth );
clearInterval(interv);
}
}, 120);
</script>