<div class= "Timer" > <span id= "Years" >00</SPAN>: <span id= "months" >00</SPAN>: <span id= "Days" >00</SPAN>: <span id= "Hours" >00</SPAN>: <span id= "Minutes" >00</SPAN>: <span id= "Seconds" >00</span> </div>
<script type= "Text/javascript" > Get the current time of the machine var mydate = new Date (); Console.log (Mydate.getfullyear (), parseint (Mydate.getmonth ()) +1, Mydate.getdate (), mydate.gethours (), Mydate.getminutes (), mydate.getseconds ());
var futuredate = eval (DATE.UTC (2014, 10, 30, 12, 0, 0)); var nowdate = eval (DATE.UTC (2013, 11, 15, 16, 36, 52)); var nowdate = eval (DATE.UTC (Mydate.getfullyear (), parseint (Mydate.getmonth ()) +1, Mydate.getdate (), mydate.gethours () , Mydate.getminutes (), mydate.getseconds ()); var obj = { Sec:document.getElementById ("Seconds"), Mini:document.getElementById ("Minutes"), Hour:document.getElementById ("hours"), Day:document.getElementById ("Days"), Day:document.getElementById ("months"), Day:document.getElementById ("Years") } Fntimecountdown (futuredate, obj, nowdate, function () { Console.log (' Time is up! '); }); </script> |