html网站倒计时,怎么设置到期的日期

$(document).ready(function(){
/* ---- Countdown timer ---- */

$('#counter').countdown({
timestamp : (new Date()).getTime() + 50*30*60*60*1000
});

/* ---- Animations ---- */
$('#links a').hover(
function(){ $(this).animate({ left: 3 }, 'fast'); },
function(){ $(this).animate({ left: 0 }, 'fast'); }
);
$('footer a').hover(
function(){ $(this).animate({ top: 3 }, 'fast'); },
function(){ $(this).animate({ top: 0 }, 'fast'); }
);
/* ---- Using Modernizr to check if the "required" and "placeholder" attributes are supported ---- */
if (!Modernizr.input.placeholder) {
$('.email').val('Input your e-mail address here...');
$('.email').focus(function() {
if($(this).val() == 'Input your e-mail address here...') {
$(this).val('');
}
});

到计时代码都是先设计到期时间,然后代码自动计算出的倒计时间。
温馨提示:答案为网友推荐,仅供参考
相似回答