<script language="javascript"> for(var i = 0; i <10; i++){ e = document.getElementById("fr").cloneNode(true); e.id = "fr"+i; e.name=e.id; document.body.appendChild(e); document.body.appendChild(document.createElement("
")); } var n=0; function refreshPage(){ document.getElementById("fr"+n%10).src=document.getElementById("fr"+n%10).src+ "?".concat(Math.random()); n++; } setInterval(refreshPage,1000); </script>