countdownBasic.html 1.3 KB

12345678910111213141516171819202122232425262728293031
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
  5. <title>jQuery Countdown</title>
  6. <link rel="stylesheet" href="jquery.countdown.css">
  7. <style type="text/css">
  8. #defaultCountdown { width: 240px; height: 45px; }
  9. </style>
  10. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
  11. <script type="text/javascript" src="jquery.countdown.js"></script>
  12. <script type="text/javascript">
  13. $(function () {
  14. var austDay = new Date();
  15. austDay = new Date(austDay.getFullYear() + 1, 1 - 1, 26);
  16. $('#defaultCountdown').countdown({until: austDay});
  17. $('#year').text(austDay.getFullYear());
  18. });
  19. </script>
  20. </head>
  21. <body>
  22. <h1>jQuery Countdown Basics</h1>
  23. <p>This page demonstrates the very basics of the
  24. <a href="http://keith-wood.name/countdown.html">jQuery Countdown plugin</a>.
  25. It contains the minimum requirements for using the plugin and
  26. can be used as the basis for your own experimentation.</p>
  27. <p>For more detail see the <a href="http://keith-wood.name/countdownRef.html">documentation reference</a> page.</p>
  28. <p>Counting down to 26 January <span id="year">2010</span>.</p>
  29. <div id="defaultCountdown"></div>
  30. </body>
  31. </html>