Copy Code code as follows:
<! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" "HTTP://WWW.W3.ORG/TR/HTML4/LOOSE.DTD" >
<meta http-equiv= "Content-type" content= "text/html; CHARSET=GBK ">
<title>404 not found</title>
<body>
<span id= "Totalsecond" automatically returns after >3</span> seconds
</body>
<script language= "javascript" type= "Text/javascript" >
<!--
var second = document.getElementById (' Totalsecond '). textcontent;
if (Navigator.appName.indexOf ("explorer") >-1)//Determine whether IE browser or Firefox browser, take the appropriate measures to get the number of seconds
{
Second = document.getElementById (' Totalsecond '). innertext;
} else
{
Second = document.getElementById (' Totalsecond '). textcontent;
}
SetInterval ("redirect ()", 1000); Call the redirect () method once every 1 seconds
function redirect ()
{
if (second < 0)
{
Location.href = ' http://to jump to the website ';
} else
{
if (Navigator.appName.indexOf ("explorer") >-1)
{
document.getElementById (' Totalsecond '). innertext = second--;
} else
{
document.getElementById (' Totalsecond '). textcontent = second--;
}
}
}
-->
</script>
</tr>
</table>