欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

js計(jì)數(shù)器代碼

 更新時(shí)間:2006年11月04日 00:00:00   作者:  
復(fù)制代碼 代碼如下:
<script Language="javascript">
 var seconds = 10;//記數(shù)時(shí)間
 var handle;//事件柄

 //開(kāi)始記數(shù)器
 function startTimer() {
  handle = setInterval("timer()",1000);
 }

 //結(jié)束記數(shù)器
 function stopTimer() {
  clearInterval(handle);
  seconds = 10;
  document.all.redhacker.innerHTML = "10秒鐘倒計(jì)時(shí)完成";
 }

 //計(jì)數(shù)器
 function timer() {
  seconds -= 1;
  document.all.redhacker.innerHTML = "您還有 <font color='red'>" + seconds + "</font> 秒";
  if (seconds == 0) {
   stopTimer();
   document.reTranForm.submit();
  } 
 }

 //1秒后顯示計(jì)數(shù)器
 setTimeout("startTimer()",1000);  
</script>
<div id="redhacker"></div>

相關(guān)文章

最新評(píng)論