i=0; while(++i<6){ documet.write('<img src="image/'+i+'.png">') var d=new Date()+3e3; while(new Date()<d); }