开发者

Output the countdown has ended when countdown is zero JS

http://keith-wood.name/countdown.html

I am using this jQuery plugin.

$('#noDays').countdown({
开发者_高级运维    until: enddate_final, format: 'HMS', compact: true, description: '', timeSeparator: ' : '});

Is what I have and works fine. I wish to output "The countdown has ended" if/when the countdown is 00:00:00.

How can i do this?


See docs on page you posted,

Tab: Callbacks Example no.3

using configuration property expiryText

$('#expireMessage').countdown({
    until: shortly.setSeconds(shortly.getSeconds() + 5.5), 
    expiryText: '<div class="over">It\'s all over</div>'
}); 
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜