http://jsfiddle.net/shadsaleem/XSceK/6/
残り 5 秒になったときにメッセージを通知したい。
私の主な目的は、ユーザーの時間の終了前に、あと 5 秒あるというメッセージをユーザーに表示することです。誰でも私を助けることができますか?
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<script type="text/javascript" src="http://keith-wood.name/js/jquery.countdown.js"></script>
<script type="text/javascript">
$(function () {
var austDay = new Date();
$('#defaultCountdown').countdown({until:+10});
});
</script>
<div id="defaultCountdown" align="center"></div>