请教各位高手

ruanjin 2006-08-09 02:57:51
我现在有一asp页面a.asp,里面重定向到另一页面b.asp,但我不想一访问a.asp就马上重定向到b.asp,而是要在a.asp页面上停留2-3秒钟,再自动重定向到b.asp,请教一下有什么好的方法?
...全文
172 8 打赏 收藏 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
ziyulin0311 2006-08-09
  • 打赏
  • 举报
回复
<meta http-equiv="Refresh" contect=延时时间;url=链接的网页地址>
btbtd 2006-08-09
  • 打赏
  • 举报
回复
private function fPmt(promptWord,second,url)
response.write "<div class=""absltMid""><meta http-equiv=""refresh"" content="""
response.write second
response.write ";URL="
response.write url
response.write """>"
response.write promptWord
response.write "</div>"
end function
call fPmt("3秒后返回主页",3,"/")
jinjuduo 2006-08-09
  • 打赏
  • 举报
回复
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta http-equiv="refresh" content="2;URL=b.asp">
</head>
<body>
<div align="center">2秒钟后自动跳转到<a href="b.asp">bbbbbbbb</a></div>
</body>
yusiti 2006-08-09
  • 打赏
  • 举报
回复
<script language="JavaScript">
setTimeout("location.href('b.asp')",2000);
</script>
简单点,2秒
future914 2006-08-09
  • 打赏
  • 举报
回复
学习中……
我试了一下两种方法,可是不能转向,请问是为什么?
lhzyn 2006-08-09
  • 打赏
  • 举报
回复
<meta http-equiv="Refresh" contect="n;url=http://yourlink">
n可以设置为你要延时的秒数
yusiti 2006-08-09
  • 打赏
  • 举报
回复
<script>
function n_open
{
window.open('b.asp');
}
setTimeout("n_open()",20);
</script>
20是延时的时间
煊烨 2006-08-09
  • 打赏
  • 举报
回复
用html的reflash 就可以设置延时

28,402

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧