简洁倒计时脚本程序

chenyajun  2020-01-29 15:15:38  阅读 2415 次 评论 0 条
<script>
i=100
function aa()
{if(i>0)
i--
a.innerText=i}
</script>
<button onclick=setInterval("aa()",100) style="border:0px; background:#FF9900; height:25px; font-weight:bold; color:#c00; float:left; cursor:pointer;">开始倒计时</button>
<div id="a" style="color:#FF0000; font-weight:bold; float:left; height:30px;">100</div>


本文地址:https://www.chenyajun.net/index.php/post/18.html
版权声明:本文为原创文章,版权归 chenyajun 所有,欢迎分享本文,转载请保留出处!

评论已关闭!