Title
<! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" "Http://www.w3.org/TR/html4/loose.dtd" ><html><head><meta http-equiv="Content-type" Content="text/html; Charset=utf-8 "><title>Time-limited Snapping countdown</title><style type="Text/css"> body{ text-align: center; }#first{ color:#ff7300; font-size:px; margin-left:tenpx; } </style><script type="Text/javascript">Window.onload= function(){SetInterval (Changtime, -); function changtime(){document.getElementById ("Time"). Innerhtml=gettime (); Changestyle ();} function gR(){ return Math. Floor (Math. Random () * -);} function changestyle(){varEle=document.getelementbyid ("Time");varSize=Math. Random () * +; Ele.style.fontsize= (size+Ten)+"px");varMc=New Array("0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"); ele.style.color="#"+MC[GR ()]+mc[gr ()]+mc[gr ()]+mc[gr ()]+mc[gr ()]+mc[gr ()];} function getTime(){ varnow=New Date(). GetTime ();varEnd=New Date("2015/2/13"). GetTime ();varTemp=end-now;if(temp<=0) {document.getElementById ("First"). innerhtml="National Day has ended!!!!! ";return ""; }Else{varTemp2=New Date(); Temp2.settime (temp);varSec=Math. Floor (temp)/ +% -);varmin=Math. Floor (temp/( -* +)% -);varhou=Math. Floor (temp/( -* -* +)% -);varday=Math. Floor (temp/( -* -* -* +));returnday+"Day"+hou+"Hours"+min+"Minutes"+sec+"Seconds"; }}};</script></head><body> <br/><br/><br/><br/><br/> <span id="First">Short-time snapping and </span> <span id="Time"></span></body></html>
JavaScript-time-limited snapping instance