<html>
<head>
</head>
<body>
<div id="images"></div>
<script>
mkPair=function(preImgAddr, imgAddr){
var preImg=new Image
var img=new Image
preImg.src=preImgAddr
img.src=imgAddr
images.appendChild(preImg)
img.onload=function(){images.replaceChild(img, preImg)}
}
preImgAddr="http://javascript.ru/forum/images/smilies/smile.gif"
imgAddr="http://1000pix.ru/upload/photo/bB3938ifztAZZH2eYFkkBskSS66zF7KTTA4SYZS4h_NenHRBH2iF4n5SQAE752G91414860134.jpg"
i=10
while(i--) mkPair(preImgAddr, imgAddr)
</script>
</body>
</html>