求倒数5秒的网页特效 5秒后跳转新页面 在线等

如题 就是我想弄个倒数5秒的图片或者数字 打开之后倒数 5秒后就跳到主页的特效 求高手指教 在线等啊 急~!!~!~!~!~
补充一下 就是我做了页面 想在这个页面打开的时候弹出个倒数5秒的数字或者图片 然后5秒后这个数字或者图片消失 显示我的网页

第1个回答  2010-09-09
content="5 是你设置的时间

<html>
<head>
<meta http-equiv="Content-Language" content="zh-CN">
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
<meta http-equiv="refresh" content="5;url=http://你要跳转地址">
<title>404出错啦!!!</title>
<style type="text/css">
<!--
.STYLE10 {font-size: 16px; color: #FF0000; font-family: "微软雅黑"; }
-->
</style>
</head>
<body>
<p> </p>
<p align="center"><img src="404图片.gif" alt="404" width="512" height="312" longdesc="http://地址"> </p>
<p align="center" class="STYLE10">您所访问的页面不存在或已被作者转移,现转入首页,请稍后...</p>
<p align="center"><span class="STYLE10">若您的浏览器不支持自动跳转,<a href="http://地址" target="_self" style="color:#FF3300"><strong>请点击这里</strong></a></span></p>
</body>
</html>
第2个回答  推荐于2016-05-16
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Untitled Document</title>
</head>
<body>

<span id="totalSecond">5</span>

<script language="javascript" type="text/javascript">
var second = document.getElementById('totalSecond').textContent;

if (navigator.appName.indexOf("Explorer") > -1)
{
second = document.getElementById('totalSecond').innerText;
} else
{
second = document.getElementById('totalSecond').textContent;
}

setInterval("redirect()", 1000);
function redirect()
{
if (second < 0)
{
location.href = 'http://www.baidu.com';
} else
{
if (navigator.appName.indexOf("Explorer") > -1)
{
document.getElementById('totalSecond').innerText = second--;
} else
{
document.getElementById('totalSecond').textContent = second--;
}
}
}
</script>
</body>
</html>

上面是网页的html代码
5秒后就可以跳转到百度(http://www.baidu.com)。本回答被提问者采纳
第3个回答  2010-09-09
字体自己调DIV吧!

<html>
<head>
<title>倒计跳转页面</title>
<script language="javascript" type="text/javascript">
var i = 5;
intervalid= setInterval("fun()", 1000);
function fun() {
if (i == 0) {
window.location.href = "http://www.baidu.com";
clearInterval(intervalid);
}
document.getElementById("mes").innerHTML = i;
i--;
}
</script>
</head>
<body>
<div id="mes" align="center"></div>
</body>
</html>
第4个回答  2010-09-09
这个代码应该符合你的要求

参考资料:http://fjsky.cn/a/tishiyemian/2010/0817/33.html