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