|
Project Information
Links
|
NB! Library depends on jQuery version 1.3 or higher TimerSimple jQuery based timer. Simple usage: jQuery.fjTimer(properties); Parameters:- interval - ticker interval in milliseconds. Default 10;
- repeat - number of repeat times or boolean if reapeat forever or in case false not repeat at all. Default false;
- tick - ticker function itself with parameter of counter and timerId paramerer if you want to clear interval yourself;
- onComplete - function executed when timer finishes his job.
Example:jQuery.fjTimer({
interval: 1000,
repeat: 5,
tick: function(counter, timerId) {
alert("tick:" + counter);
}
});Simple jQuery timer based array parserSimple usage: jQuery.fjTimerEach({
interval: 1000,
tick: function(counter, object) {
alert("tick:" + counter + " - " + object);
},
array: ["me", "myself", "I"]
});Parameters:- interval - ticker interval in milliseconds. Default 10;
- tick - function itself with parameter of counter and object in array.
- step - if you want to walk through array with bigger steps than 1;
- array - this is simple array element;
- onComplete - executed when timer finishes his job.
jQuery timer based function queue Main idea is that we have alot of functions going on. Sometimes browsers(mostly IE) hangs if alot of dom is changed or something is going on. So I wrote simple queue. Simple usage, just add function to queue: jQuery.fjFunctionQueue(function() {alert("a")});}}}
==Configuration==
{{{jQuery.fjFunctionQueue({
interval: 1,
onStart: function(){ alert("start")},
onComplete: function(){alert("complete!"},
autoStart: false,
tick: function(index, func) {func();},
});Parameters:- interval - ticker interval in milliseconds. Default 1;
- onStart - function executed when queue starts;.
- onComplete - function executed when queue is complete (including added functions);
- autoStart - property, if queue should started automatically. Default true;
- tick - function is executed before each queue item execution. Parameters are index and executed function itself. When exteding it func method must be called manually.
|