Hitung mundur halaman HTML JS yang bagus bisa akurat untuk detik, yang sederhana, tetapi praktis
<!doctype html> <html> <head> <meta charset="utf-8"> </head> <body> <DIV id="CountMsg"> <span id="t_d">00 days</span> <span id="t_h">00 hours</span> <span id="t_m">00 minutes</span> <span id="t_s">00 seconds</span> </div> <script type = "text/javascript"> function getRtime () {var endtime = new Date ('2014/10/23 10:00:00'); // tenggat waktu var sekarang = tanggal baru (); var t = endtime.getTime () - nowtime.getTime (); /*var d = math.floor (t/1000/60/60/24); t- = d*(1000*60*60*24); var h = math.floor (t/1000/60/60); t- = H*60*60*1000; var m = math.floor (t/1000/60/60); t- = m*60*1000; var s = math.floor (t/1000);*/var d = math.floor (t/1000/60/60/24); var h = math.floor (t/1000/60/60%24); var m = math.floor (t/1000/60%60); var s = math.floor (t/1000%60); document.geteLementById ("t_d"). innerHtml = d + "day"; document.geteLementById ("t_h"). innerHtml = h + "waktu"; document.geteLementById ("t_m"). innerHtml = m + "menit"; document.geteLementById ("t_s"). innerHtml = s + "detik"; } setInterval (getRtime, 1000); </script> </body> </html>