Tip: You can modify some of the code before running
<! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" > <ptml> <pead> <title> When shopping a product countdown sales very good </title> <meta http-equiv= "Content-type" content= "text/html; charset=gb2312 "> </pead> <body> <p> Merchandise Snapping Countdown ...</p> <p> This product snapping time and <span id=" _ Lefttime "></span></p> <script language=" JavaScript > Function _fresh () {var endtime=new Date ("De cember 20, 2010 20:00:00 "); var nowtime = new Date (); var leftsecond=parseint ((Endtime.gettime ()-nowtime.gettime ())/1000); if (leftsecond<0) {leftsecond=0;} __d=parseint (LEFTSECOND/3600/24); __h=parseint ((leftsecond/3600)%24); __m=parseint ((LEFTSECOND/60)%60);//2008-3-12 correction, the original 60 was written 24 __s=parseint (leftsecond%60); document.getElementById ("_lefttime"). Innerhtml=__d+ "Days" +__h+ "hours" +__m+ "minutes" +__s+ "seconds"; } _fresh () setinterval (_fresh,1000); </SCRIPT> </body> </ptml></td> </tr> </table>