本文实例讲述了JavaScript页面倒计时功能。分享给大家供大家参考,具体如下:
效果图:
源码:
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>www.jb51.net JS倒计时</title>
<style>
h3{text-align:center;line-height:50px;height:50px;margin-top:100px;}
#timer{text-align:center;}
</style>
</head>
<body>
<h3>倒计