Ein sehr nützlicher JS -Countdown! Der Webseiten -Countdown in Echtzeit, genau auf zweites Level, genau wie der Countdown der Anzahl der Tage. JS Countdown wird im Allgemeinen für den Gruppenkauf der Mall -Website verwendet, Sonderverkauf, viele Orte können verwendet werden! Ich hoffe, allen zu helfen!
Der Effekt ist wie folgt:
Kopieren Sie den Code -Code wie folgt:
<!
<html>
<kopf>
<meta http-äquiv = "content-type" content = "text /html; charset = utf-8" /> />
<Style type = "text/css">
.Leave_time_font {margin-heft: 35%;}
#Fo {margin-links: 32%;}
</style>
<title> woyaoni.cn- Countdown </title>
</head>
<body>
<h1> woyaoni.cn </h1>
<script src = "./ jquery.js"> </ script>
<script type = "text/javaScript">
$ (docume) .ready (Funktion (e) {
var _countseconds = 0;
function_countdown () {
_Countseconds ++;
$ ('input.surplustime').
var $ this = $ (this);
var _totaltime = number ($ this.val ()) -_countseconds;
var _day = parseInt (_totalTime/86400);
var _hours = parseInt (_totalTime%86400/3600);
var _minutes = parseInt (_totaltime%86400%3600/60);
var _Seconds = parseInt (_totalTime%86400%3600%60);
var _strlite = '<span>'+_ tag+'</span> tian <span>'+_ Stunden+'</span> Stunden <span>'+_ Minuten+'</span >> zweit';
var _str = 'Countdown:'+_ strlite;
if ($ this.next ('p.daojishi'). Länge> 0) {
$ this.Next ('P.Daojishi').
} else if ($ this.next ('P.Leave_time_font'). Länge> 0) {
$ this.Next ('P.Leave_time_font').
}
});
}
SetInterval (_countdown, 1000);
})
</script>
</head>
<body>
<?
ini_set ('Date.TimeZone', 'Asien/SafeHai');
$ Currentime = time ();
$ a = strtotime ('2014-2-14 00:00');
$ B = $ A- $ Currentime;
? >>
<div id = "djs">
<div id = "fo"> Die kleinen Freunde werden vom Valentinstag zurückgelassen: </div>
<Eingabe type = "Hidden" name = "Überschuss" value = "<? Php echo $ b;?>" />
<p> <span> 0 </span> tian <span> 0
</div>
</body>
</html>