يمكن أن يكون العد التنازلي الخاص بصفحة JS HTML دقيقًا دقيقًا ، وهو أمر بسيط ، لكنه عملي
<! 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 ساعات </span> <span = "t_m" Seconds </span> </viv> <script type = "text/javaScript"> function getRtime () {var endtime = new Date ('2014/10/23 10:00:00') ؛ // الموعد النهائي var nowtime = new date () ؛ var t = Endtime.getTime () - nowtime.getTime () ؛ /*var d = math.floor (t/1000/60/20/22) ؛ T- = D*(1000*60*60*24) ؛ var h = math.floor (t/1000/60/00) ؛ T- = H*60*60*1000 ؛ var m = math.floor (t/1000/60/00) ؛ T- = M*60*1000 ؛ var s = math.floor (t/1000) ؛*/var d = math.floor (t/1000/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 + "time" ؛ document.getElementById ("t_m"). innerhtml = m + "mother" ؛ document.getElementById ("t_s"). innerhtml = s + "seconds" ؛ } setInterval (getRtime ، 1000) ؛ </script> </body> </html>