jQuery Skinnable Countdown Plugin is a countdown plugin that creates a countdown to zero, showing days (if needed), hours, minutes and seconds, but it lets you do some other things:
You can find detailed instructions inside the plugin.
Usage (simple - default timer):
// Language string. Change this to your own language
dayString = {
single : 'day',
plural : 'days'
}
// "target" is the place where you want to put the timer
$(target).countdown(true, deadline, [now, callback]);Usage (advanced) - the plugin will not print a countdown. Instead, the plugin will give you an object containing days, hours, minutes and seconds for you to format it your style.
$('').bind('countdownClick', function(e, timerObj) {
--- put your own code here ---
--- parameter 'e' is the event info ---
--- parameter 'timerObj' is the timer object ---
} )
.countdown(false, 10, 0, function() {
$(this).css('color', 'red');
});
Returns: nothing. But it fires an event named "countdownClick" that returns an object containing the timer. Check "Usage (advanced)" for details.
this.days this.hours this.minutes this.seconds
| Attachment | Size |
|---|---|
| jquery.countdown.js | 4.43 KB |
I could find this plugin finally :) Thanks for sharing...
Great post. Thanks for link.
Post new comment