A jQuery plugin that sets a
div or span to show a countdown to a given time.
Usage
- Include the jQuery library in the head section of your page.
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script> - Download and include the jQuery Countdown CSS and JavaScript in the head section of your page.
Alternately, you can use the packed version<style type="text/css">@import "jquery.countdown.css";</style> <script type="text/javascript" src="jquery.countdown.js"></script>jquery.countdown.pack.js(10.0K vs 30.1K), or the minified versionjquery.countdown.min.js(12.6K, 4.3K when zipped). - Connect the countdown functionality to your divs.
You can include custom settings as part of this process.$(selector).countdown({until: liftoffTime});$(selector).countdown({until: liftoffTime, format: 'dHM'});
No comments:
Post a Comment