日期:2014-05-16 浏览次数:20385 次
<script language= "javascript"> for(i=1;i<=14;i++) { myiframe[i].src=myurl[i]; if(myiframe[i].attachEvent){ myiframe[i].attachEvent("onload", function(){ }); continue; }else{myiframe[i].onload = function(){ }; continue; } } </script>
var myurl[1] = 'http://www.xxx.com'; var myurl[2] = 'http://www.xxx.com'; var myurl[14] = 'http://www.xxx.com'; function loadiframe(index) { if (index > 14) return; if(myiframe[index].attachEvent){ myiframe[index].attachEvent("onload", function(){ loadiframe(index + 1); }); }else{myiframe[index].onload = function(){ loadiframe(index + 1); }; } myiframe[index].src = myurl[index]; }