dadli,
Ни наю - уменя работает:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru" lang="ru" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
<title>Общие вопросы от новичков (40)</title>
<script type="text/javascript" src="http://yandex.st/jquery/1.4.4/jquery.min.js"></script>
</head>
<body>
<div id="img_place"></div>
<script type="text/javascript">
var images = new Array("http://s1.uploads.ru/i/AzDL4.jpg", "http://s1.uploads.ru/i/5Xyis.jpg", "http://s1.uploads.ru/i/JHdsf.jpg");
var loadedImgsCount=0;
function CntLoad() {
loadedImgsCount++;
}
loadedImgsCount
for (var i = 0; i < images.length; i = i + 1) {
$("#img_place").append('<img src="' + images[i] + '" onload="CntLoad()">');
}
var imgTotalWidth = 0;
interv = setInterval(function() {
if (loadedImgsCount == 2*images.length) {
$("#img_place > img").each(function() {
imgTotalWidth+=$(this).width();
});
alert(loadedImgsCount);
alert(imgTotalWidth );
clearInterval(interv);
}
}, 120);
</script>
</body>
</html>