Файл: InstantSocial/uploud/components/userpages/js/count/index.html
Строк: 95
<?php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title>Date Countdown jQuery Plugin</title>
<script src="script/jquery-1.6.1.js" type="text/javascript"></script>
<script src="script/jquery.jcountdown1.3.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="css/style.css" />
<script type="text/javascript">
$(document).ready(function() {
/*
Tips:
event.target is DOM Element
this is DOM element
$(this) is jQuery Element
timer is interval for countdown
If a countdown should end early you could do:
clearInterval( timer );
$(this).trigger('complete');
*/
$("#time").countdown({
date: "june 1, 2011", //Counting TO a date
//htmlTemplate: "%{h} <span class="cd-time">hours</span> %{m} <span class="cd-time">mins</span> %{s} <span class="cd-time">sec</span>",
//date: "july 1, 2011 19:24", //Counting TO a date
onChange: function( event, timer ){
},
onComplete: function( event ){
$(this).html("Completed");
},
leadingZero: true,
direction: "up"
});
//$("#time").countdown();
$("#time2").countdown({
date: "july 31, 2011",
//htmlTemplate: "%{h} <span class="cd-time">hours</span> %{m} <span class="cd-time">mins</span> %{s} <span class="cd-time">sec</span>",
offset: 1,
onChange: function( event, timer ){
},
onComplete: function( event ){
$(this).html("Completed");
},
onPause: function( event, timer ){
$(this).html("Pause");
},
onResume: function( event ){
$(this).html("Resumed");
},
leadingZero: true
});
//$("#time2").countdown('pause');
//$("#time2").countdown('resume');
/*
$("#time2").countdown({
date: "may 1, 2011",
direction: 'up', //Counting FROM a date
leadingZero: true
});
*/
});
</script>
</head>
<body>
<div id="container">
<h1>Date Countdown jQuery Plugin</h1><br />
<p id="time" class="time"></p>
<p id="time2" class="time"></p>
</div>
</body>
</html>
?>