タグ

関連タグで絞り込む (1)

タグの絞り込みを解除

jQueryとTimerに関するeriko315のブックマーク (1)

  • タイマーを作る際に便利なjQueryプラグイン「jQuery Timer」:phpspot開発日誌

    jQuery Timer Demo タイマーを作る際に便利なjQueryプラグイン「jQuery Timer」。 単純に、指定エレメントの値を指定秒数で+していくタイマーの実装がjQueryのプラグイン形式で簡単にできるものです。 setIntervalとかでやっちゃえばいい話なのですが、オブジェクト指向っぽく使えて後から見たときのコードも分かりやすくできます。 var myTimer = $.timer(); myTimer.set({ action : function() { alert('This message was sent by a timer.'); }, time : 5000 }).play(); myTimer.set(options); myTimer.play(); myTimer.pause(); myTimer.toggle(); myTimer.once(

  • 1