<!doctype html>
<meta charset= "UTF-8" >
<title>time</title>
<script src= "Jquery.js" type= "Text/javascript" ></script>
<body>
<span id= "loan_time" >0 days 0 hours 0 minutes 0 seconds </span>
<input id= "hid" type= "hidden" value= "75255"/>
<script>
$ (function () {
Setlefttime ();
});
function Showseconds () {
var day1 = Math.floor (Seconds/(60 * 60 * 24));
var hour = Math.floor ((seconds-day1 * 24 * 60 * 60)/3600);
var minute = Math.floor ((seconds-day1 * * * 60-hour * 3600)/60);
var second = Math.floor (seconds-day1 * * * 60-hour * 3600-minute * 60);
if (Day1 < 0) {
Clearinterval (timer);
$ ("#loan_time"). HTML ("It's over!") ");
} else {
$ ("#loan_time"). HTML (day1 + "days" + Hour + "hours" + Minute + "minutes" + second + "seconds");
}
seconds--;
}
function Setlefttime () {
seconds = parseint ($ ("#hid"). Val (), 10);
Timer = setinterval (showseconds,1000);
}
</script>
</body>
Js_ Simple Countdown _ instance _ Format: 0 Days 20 hours 48 minutes 54 seconds