カウントダウン(jQuery Countdown)

時間のカウントダウンについて(jsプラグイン)

JSでの時間の取得はこちら

デモ




資材について

プラグイン「jQuery Countdown」をダウンロードします。
http://keith-wood.name/countdown.html

実装方法

js、cssを読み込む
jQuery本体(1.4+)の読み込みは完了しているという前提で進めます。
ダウンロードしたjsを読み込ませます。(必要あればcssも。)

<script src="配置したjsのパス/jquery.plugin.js"></script>
<script src="配置したjsのパス/jquery.countdown.js"></script>
<script>
jQuery(
  function($){$('#countDown').countdown({ until: liftoffTime, compact: true, format: 'HHMMSS', description: ''});
});
</script>

<div id="countDown"></div>