<Script type = "text/javascript"> // JavaScript Documentfunction ShowTimes () {var AfterTime = new Date ("00:00:00 "); // activity deadline LeaveTime = AfterTime-new Date (); LeaveDays = Math. floor (LeaveTime/(1000*60*60*24); // day LeaveHours = Math. floor (LeaveTime/(1000*60*60) % 24); // LeaveMinutes = Math. floor (LeaveTime/(1000*60) % 60); // score LeaveSeconds = Math. floor (LeaveTime/1000% 60); // second var c = new Date (); var q = c. getMilliseconds (); if (q <10) // because only one character is occupied by one digit in milliseconds, the location of {q = "00" + c. getMilliseconds ();} if (q >=10 & q <100) // when the millisecond value is two digits, change the location in milliseconds {q = "0" + c. getMilliseconds ();} hxtime. innerHTML = "no more than the end of the activity: "+ LeaveDays +" day "+ LeaveHours +" Hour "+ LeaveMinutes +" Minute "+ LeaveSeconds +" second "+ q +" millisecond ";} setInterval (ShowTimes, 10 ); </script>
<H3> <span class = "f30" id = "hxtime"> there are only: -90 days-23 hours-33 minutes-60 seconds 523 milliseconds </span>