반응형
jQuery Timer
jQuery Timer adds the class $.timer().
$.timer()
$.timer( [ action ] , [ time ], [ autostart ] )
action A Function to be called by the timer.
time A Number determining how long between actions in milliseconds.
autostart A Boolean indicating whether to start the timer. Defaults to false.
Usage
var timer = $.timer(function() {
alert('This message was sent by a timer.');
});
timer.set({ time : 5000, autostart : true });
timer.set(options);
timer.play(reset); // Boolean. Defaults to false.
timer.pause();
timer.stop(); // Pause and resets
timer.toggle(reset); // Boolean. Defaults to false.
timer.once(time); // Number. Defaults to 0.
timer.isActive // Returns true if timer is running
timer.remaining // Remaining time when paused
Demo
http://jchavannes.com/jquery-timer/demo
Download
http://code.google.com/p/jquery-timer/downloads/detail?name=jquery-timer.zip
View Source
http://code.google.com/p/jquery-timer/source/browse/
반응형
'Story > Jquery' 카테고리의 다른 글
jquery json 사용시 공백문제 (0) | 2014.10.06 |
---|---|
Jquery fancybox 사용시 iframe type 에서 post 로 값 넘기기 (0) | 2014.08.20 |
글쓸때 tag 입력받기 (0) | 2014.04.21 |
Top 10 JQuery Tooltip Plugins! (0) | 2014.04.02 |
jQuery Plugin For Auto Resizing iFrame - iFrame Resizer 아이프레임 리사이즈 (0) | 2014.03.05 |