倒计时十秒后跳转到其它页面源代码
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>倒计时</title>
<style type="text/css">
input{
font-size:50px;
color:#cc0000;
border-style:none;
}
</style>
</head>
<body onload="ha()">
系统将在<input id="mytime" value="10" size="1">秒后跳转
<script language="javascript">
function ha(){
var old=document.getElementById("mytime").value;
document.getElementById("mytime").value = parseInt(old) - 1;
if(parseInt(old)>=0){
window.location = "www.baidu.com";
}
settime = setTimeout("ha()",1000);
}
</script>
</body>
</html>