<span id="second">0</span>
JS代码为:
<script type="text/javascript">
var secs=10;
for(var i=secs;i>=0;i--){
window.setTimeout("doUpdate("+ i + ")",(secs-i)*1000);
}
function doUpdate(num){
document.getElementById("second").innerHTML=num;
if(num==0) window.location='http://jb51.cc/';
}
</script>
图片例子:
原文链接:https://www.f2er.com/html/527548.html