日期:2014-05-16  浏览次数:20430 次

js倒计时跳转

等待<span id="daojishi">10</span>秒后你将跳转到http://blog.163.com/qianw_ok/

<script type="text/javascript">

? function daoshu(){

???? var?djs = document.getElementById("daojishi");

???? if(djs.innerHTML == 0){

????????? window.location.href='http://blog.163.com/qianw_ok/';

????????? return false;

???? }

???? djs.innerHTML = djs.innerHTML - 1;

}

? window.setInterval("daoshu()", 1000);

</script>