<!DOCTYPE HTML Public "-//W3C//DTD XHTML 1.0 transitional//en" "http://www.w3.org/TR/xhtml1/DTD/ Xhtml1-transitional.dtd "><HTMLxmlns= "http://www.w3.org/1999/xhtml"><Head><Metahttp-equiv= "Content-type"content= "text/html; charset=utf-8" /><title>Countdown</title><Linkrel= "stylesheet"type= "Text/css"href= "Countdown. css" /><Scripttype= "Text/javascript"> functionDaojishi () {varNowday=NewDate ();//now varEndday;//Due Date varEndy=parseint (document.getElementById ("T1"). Value); varENDMO=parseint (document.getElementById ("T2"). Value); varendd=parseint (document.getElementById ("T3"). Value); varEndh=parseint (document.getElementById ("T4"). Value); varENDM=parseint (document.getElementById ("T5"). Value); varends=parseint (document.getElementById ("T6"). Value); //month minus 1Endday=NewDate (ENDY,ENDMO-1, Endd,endh,endm,ends); //endday=new Date (2014,11,8,17,55,0); //total number of seconds TS //document.getElementById ("main"). Innerhtml=endday-nowday; varTS=Math.Round ((Endday-nowday)/); //Total Days varTD=parseint (TS/3600/ -); //0 Hours varEH=parseint ((TS%(3600* -))/3600); //0 minutes varem=parseint ((TS%3600)/); //0 seconds vares=TS% -; document.getElementById ("Box"). InnerHTML="still left ."+TD+"days"+EH+"when"+em+"points"+es+"seconds"; if(TS<0) {alert ("Countdown End"); return; } window.settimeout ("Daojishi ()", +); } </Script></Head><Body> <H1Align= "Center">Please enter the date and month of the deadline, and seconds</H1> <DivID= "Main"> <inputtype= "text"ID= "T1"/>years<inputtype= "text"ID= "T2"/>Month<inputtype= "text"ID= "T3"/>Day<inputtype= "text"ID= "T4"/>when<inputtype= "text"ID= "T5"/>points<inputtype= "text"ID= "T6"/>seconds</Div> <ButtonID= "B"onclick= "Daojishi ()">Start the countdown.</Button> <DivID= "box"> </Div></Body></HTML>
HTML Countdown to Practice (plagiarism)