不知简书访问量有什么用,反正刷刷试试,然并卵。
上代码
<html>
<head>
<meta charset="utf-8" />
<title>test</title>
</head>
<body>
<iframe style="z-index: 1;visibility:inherit;overflow:auto;width:1000px;height:500px;border:0;position:absolute;top:0px;" name="mainframe" id="mainframe1" src="https://www.jianshu.com/p/f0dcfc9cc620" frameborder=0>
</iframe>
<iframe style="z-index: 1;visibility:inherit;overflow:auto;width:1000px;height:500px;border:0;position:absolute;top:250px;" name="mainframe" id="mainframe2" src="https://www.jianshu.com/p/f0dcfc9cc620" frameborder=0>
</iframe>
<iframe style="z-index: 1;visibility:inherit;overflow:auto;width:1000px;height:500px;border:0;position:absolute;top:500px;" name="mainframe" id="mainframe3" src="https://www.jianshu.com/p/f0dcfc9cc620" frameborder=0>
</iframe>
<iframe style="z-index: 1;visibility:inherit;overflow:auto;width:1000px;height:500px;border:0;position:absolute;top:750px;" name="mainframe" id="mainframe4" src="https://www.jianshu.com/p/f0dcfc9cc620" frameborder=0>
</iframe>
<iframe style="z-index: 1;visibility:inherit;overflow:auto;width:1000px;height:500px;border:0;position:absolute;top:1250px;" name="mainframe" id="mainframe5" src="https://www.jianshu.com/p/f0dcfc9cc620" frameborder=0>
</iframe>
<iframe style="z-index: 1;visibility:inherit;overflow:auto;width:1000px;height:500px;border:0;position:absolute;top:1500px;" name="mainframe" id="mainframe6" src="https://www.jianshu.com/p/f0dcfc9cc620" frameborder=0>
</iframe>
<iframe style="z-index: 1;visibility:inherit;overflow:auto;width:1000px;height:500px;border:0;position:absolute;top:1750px;" name="mainframe" id="mainframe7" src="https://www.jianshu.com/p/f0dcfc9cc620" frameborder=0>
</iframe>
<script>
function shua()
{
document.getElementById("mainframe1").setAttribute('src','https://www.jianshu.com/p/f0dcfc9cc620');//重置src
document.getElementById("mainframe2").setAttribute('src','https://www.jianshu.com/p/f0dcfc9cc620');//重置src
document.getElementById("mainframe3").setAttribute('src','https://www.jianshu.com/p/f0dcfc9cc620');//重置src
document.getElementById("mainframe4").setAttribute('src','https://www.jianshu.com/p/f0dcfc9cc620');//重置src
document.getElementById("mainframe5").setAttribute('src','https://www.jianshu.com/p/f0dcfc9cc620');//重置src
document.getElementById("mainframe6").setAttribute('src','https://www.jianshu.com/p/f0dcfc9cc620');//重置src
document.getElementById("mainframe7").setAttribute('src','https://www.jianshu.com/p/f0dcfc9cc620');//重置src
}
//重复执行某个方法
var t1 = window.setInterval("shua()",10000); //后面数值取决于你的cpu和网络
</script>
</body>
</html>
注:本篇被刷了