这个DEMO的时分秒背景是用css3写的。放在手机上浏览是个很不错的倒计时效果。
倒计时js代码<div> <br>
<div></div> <br>
<p></p> <br>
</div>
<br>
$(function() { <br>
var note = $('#note'); <br>
var ts = (new Date("2016-02-08")).getTime(); <br>
$('#countdown').countdown({ <br>
timestamp: ts, <br>
callback: function(days, hours, minutes, seconds) { <br>
<br>
var message = "距离2016新年还有"; <br>
<br>
message += days + "天" + (days == 1 ? '' : '') + ""; <br>
message += hours + "小时" + (hours == 1 ? '' : '') + ""; <br>
message += minutes + "分" + (minutes == 1 ? '' : '') + ""; <br>
message += seconds + "秒" + (seconds == 1 ? '' : '') + ""; <br>
message += "..."; <br>
note.html(message); <br>
} <br>
}); <br>
});
jQuery倒计时演示效果:http://www.sucaihuo.com/js/518.html
支持手机浏览的倒计时插件.zip
( 72.06 KB 下载:76 次 )
AD:真正免费,域名+虚机+企业邮箱=0元

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

Dreamweaver Mac version
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

WebStorm Mac version
Useful JavaScript development tools