开发者

Set defaultCountdown jquery countdown to specfic time

I have a countdown timer set up to finish on the 1st of october.

    <script type="text/javascript" src="Count/jquery.countdown.js"></script> 
    <script type="text/javascript"> 
    $(function () {
        var austDay = new Date();
        austDay = new Date(2011, 10-1, 01)
        $('#defaultCountdown').countdown({until: austDay});
        $('#year').text(austDay.getFullYear());
    });
    </script> 
开发者_如何学Go

However, how do i set it to finish not at midnight but at 9am on 1st October 2011?

Thanks


new Date(year, month, day, hours, minutes, seconds, milliseconds)

Just set all those.

Also, why are you doing 10-1? That is september, not october.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜