var nowCount = 0;
$("img").load(function(){
imgCount++;
if (nowCount == imgsCount)
do something ...
});
imgsCount :: the number of images that i want to load
1- is this code compatible with all browsers ?
2- how can i know if an image failed to load ?