08-05-2011, 01:10
Czego nie rozumiesz z tego tekstu?
Cytat: 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.
<style type="text/css">@import "jquery.countdown.css";</style>
<script type="text/javascript" src="jquery.countdown.js"></script>
Alternately, you can use the packed version jquery.countdown.pack.js (9.7K vs 29.4K), or the minified version jquery.countdown.min.js (12.3K, 4.2K when zipped).
Connect the countdown functionality to your divs.
$(selector).countdown({until: liftoffTime});
You can include custom settings as part of this process.
$(selector).countdown({until: liftoffTime, format: 'dHM'});