Here to provide you with a useful JS to write the countdown page, like some sites on the post-submission of the Countdown page appears similar.
The page code is simple, the direct copy can run, the page can beautify itself.
1 <!--This defines the countdown start value -2 3 <spanID= "Totalsecond">5</span>4 5 <!--define JS variables and methods -6 7 <Scriptlanguage= "JavaScript"type= "Text/javascript">8 varSecond=document.getElementById ('Totalsecond'). textcontent;9 Ten if(Navigator.appName.indexOf ("Explorer") > -1) One { A Second=document.getElementById ('Totalsecond'). InnerText; - } Else - { the Second=document.getElementById ('Totalsecond'). textcontent; - } - - + SetInterval ("Redirect ()", +); - functionRedirect () + { A if(Second< 0) at { - - <!--define jump page after Countdown - - Location.href= 'Default.aspx'; - } Else - { in if(Navigator.appName.indexOf ("Explorer") > -1) - { to document.getElementById ('Totalsecond'). InnerText=Second--; + } Else - { the document.getElementById ('Totalsecond'). Textcontent=Second--; * } $ }Panax Notoginseng } - </Script>
JS Countdown Jump Page