WP jQuery Countdown is a fork of jQuery Countdown which allows the plugin to be used as a WP shortcode.
Use [wp_jquery_countdown start_time="15:00"] to count down from 15 minutes.
Full list of shortcode attributes:
format: string with the time format; defaults to "hh:mm:ss"start_time: string with the starting time for the timer to count down from; example: "5:00"end_time: string with the ending time; example: "16:30:00"digit_width: integer width of the image file (if you use a custom image)digit_height: integer height of the image file (if you use a custom image)image: absolute URL to a custom image file; defaults to img/digits.png in this plugin’s folder
jQuery Countdown is a countdown library with an amazing animation. Take a look at the demonstration.
Download the PSD file here.
#jQuery Plugin Documentation
$('#counter').countdown({startTime: "01:12:32:55"}); $('#counter').countdown({
stepTime: 60,
format: 'hh:mm:ss',
startTime: "12:32:55",
digitImages: 6,
digitWidth: 53,
digitHeight: 77,
timerEnd: function() { alert('end!!'); },
image: "digits.png"
}); $('#counter').countdown({
format: 'sss',
startTime: "120",
continuous: true,
timerEnd: function() { alert('end!!'); },
image: "digits.png"
});Relative to current hour:
$('#counter').countdown({
image: "digits.png",
format: "mm:ss",
endTime: '50:00'
});An absolute date:
$('#counter').countdown({
image: "digits.png",
format: "mm:ss",
endTime: new Date('07/16/13 05:00:00')
});Did I mention that js code weighs just 2.8 KB?
- Martín Conte Mac Donell - Reflejo@gmail.com - @fz
- Matt Neary - neary.matt@gmail.com
Look at the demo.