Creating a new timer
Timers are created with an easy to remember syntax.
var timer = $.timer(timeout, callback, disabled);
timeoutis the time to set the interval to run at, in milliseconds.
callbackcan be either a reference to another function, or an anonymous function.
disabledif set to true, the timer is created inactive, needs a
.reset()to trigger first. Optional.
In the chance that you need to stop or reset your timer, you can use the following two methods:
The timeout option for
reset is optional, as it'll use the default internal option