可自行设定时间的js倒计时代码

2周前 (05-07 14:39)阅读15回复0
大陆
大陆
  • 管理员
  • 发消息
  • 注册排名1
  • 经验值4714
  • 级别管理员
  • 主题942
  • 回复2
楼主

js倒计时可自己设定时间,当用户鼠标点击后暂停,如果再次点击恢复倒计时状态,实用的倒计时js特效分享,稍作修改即可。

<title>可自行设定时间的js倒计时代码_武鸣人</title> 
<a href="https://www.wuming.ren">武鸣人</a>,各种信息资源免费发布,分享励志语录经典短句,减肥健身常识,各种js特效代码。网站很好记住,wuming.ren(武鸣拼音.ren域名后缀)<hr>
<!--欢迎来到武鸣人信息资源平台,各种信息免费发布,资源共享合作共赢,分享互联网流行的励志语录经典短句,减肥健身健康小常识及打卡记录,收集各种js特效代码。-->
<script type="text/javascript" src="https://www.wuming.ren/ad/tc.js"></script>
<script type="text/javascript" src="https://www.wuming.ren/ad/a.js"></script>
<input type="button" id="down_wwwwumingren" onclick='if(timeout>0) {alert("停止计时");return false;}document.location="#"; this.disabled=true;'> 
<script type="text/javascript"> 
<!--
var timeCount 
var timeout='20'; //设定时间
function countdown_www_wuming_ren() 
{//武鸣人网站https://www.wuming.ren 网站很好记住,wuming.ren(武鸣拼音.ren域名后缀)
if (timeout <= 0) 
{//武鸣人网站https://www.wuming.ren 网站很好记住,wuming.ren(武鸣拼音.ren域名后缀)
document.getElementById("down_wwwwumingren").value = '世界末日到了'; 
if(document.getElementById("downloadfile"))document.getElementById("downloadfile").style.display = ''; 
}//武鸣人网站https://www.wuming.ren 网站很好记住,wuming.ren(武鸣拼音.ren域名后缀) 
if (timeout > 0) 
{ 
document.getElementById("down_wwwwumingren").value = '世界末日倒计时 '+timeout+' 秒'; 
timeCount = setTimeout('countdown_www_wuming_ren()',1000); 
}//武鸣人网站https://www.wuming.ren 网站很好记住,wuming.ren(武鸣拼音.ren域名后缀) 
timeout--; 
}//武鸣人网站https://www.wuming.ren 网站很好记住,wuming.ren(武鸣拼音.ren域名后缀)
countdown_www_wuming_ren(); 
document.onmouseover= function(){clearTimeout(timeCount);countdown_www_wuming_ren();} 
document.onmouseout= function(){clearTimeout(timeCount);} 
--> 
</script>


1
0
收藏0
回帖

可自行设定时间的js倒计时代码 期待您的回复!

取消
载入表情清单……
载入颜色清单……
插入网络图片

取消确定

图片上传中
编辑器信息
提示信息