开发者

Set defaultCountdown jquery countdown to specfic time

开发者 https://www.devze.com 2023-03-27 05:42 出处:网络
I have a countdown timer set up to finish on the 1st of october. <script type=\"text/javascript\" src=\"Count/jquery.countdown.js\"></script>

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

精彩评论

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