如何实现csdn登陆时在一个页面停留几秒后跳到另一个页面?

naitnij2000 2004-12-03 12:04:37
如何实现csdn登陆时在一个页面停留几秒后跳到另一个页面?
...全文
252 16 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
16 条回复
切换为时间正序
请发表友善的回复…
发表回复
yeyu710 2004-12-27
  • 打赏
  • 举报
回复
如果用
<script>
setTimeout("location='http://www.csdn.net'",2000)
</script>
的话,上面的那个LOCATION 值我想通过一个变量传递过来,我该怎么做啊,各位大虾???
surferc 2004-12-03
  • 打赏
  • 举报
回复
这不是骑马找马嘛?看看csdn的不就知道了。 ^^
888228 2004-12-03
  • 打赏
  • 举报
回复
<meta http-equiv="refresh" content="10;URL=http://www.renao.net">
lienzhu 2004-12-03
  • 打赏
  • 举报
回复
<script>
setTimeout("location='http://www.csdn.net'",2000)
</script>
jigezi 2004-12-03
  • 打赏
  • 举报
回复
我也想知道
lhl2002 2004-12-03
  • 打赏
  • 举报
回复
不用这么麻烦吧!html语言就提供了一种方法就是前面的sys9933说的
<meta http-equiv="refresh" content="10;URL=http:// xxxx">
其中content后面的就是延时的秒数!
kingapex1 2004-12-03
  • 打赏
  • 举报
回复
login.asp:

<%
'读取username and password
%>
<IFRAME name=hiddenframe src="dologin.asp?UserName=<%=UserName%>&Password=<%=Password%>" width=0 height=0></IFRAME>
<table width="53%" height="237" border="0" align="center" cellpadding="1" cellspacing="1">
<tr>
<td height="133"> </td>
</tr>
<tr>
<td align="center"><img src="../images/login.gif"></td>
</tr>
<tr>
<td height="34" align="center" style="font-size:12px">正在验证身份,请稍后....</td>
</tr>
</table>

dologin.asp:

if loginUser(username,password) then
response.write "<script>parent.location.replace('../Manager/main1.asp');</script>" '成功更新login.asp的location
else
response.write "<script>parent.location.replace('../Msg.asp?MsgStr=002');</script>"'跳到失败页
end if
syjeffdyg 2004-12-03
  • 打赏
  • 举报
回复
晕,看源码啊!
zzsdream 2004-12-03
  • 打赏
  • 举报
回复
页面自动跳转

<script language="JavaScript">
<!--
var temp; //设置一个全局变量
var n = 6 * 20; //时间设置
temp = setTimeout("window.location.href='aa.asp'", n);
function autoJump()
{
clearTimeout(temp);
temp = setTimeout("window.location.href='aa.asp'", n);
}

document.attachEvent("onmousemove", autoJump);
document.attachEvent("onkeydown", autoJump);
//-->
</script>
lover_rong 2004-12-03
  • 打赏
  • 举报
回复
<script LANGUAGE="JavaScript">
<!--
setTimeout("location='aa.asp';", 5000);
// -->
</script>
呵呵,抱歉,抄袭楼上的了。其中aa.asp就是你要转入的页面
wen1818 2004-12-03
  • 打赏
  • 举报
回复
<script LANGUAGE="JavaScript">
<!--
setTimeout("location='aa.asp';", 5000);
// -->
</script>
dzyy30 2004-12-03
  • 打赏
  • 举报
回复
1.取值,连接数据库,验证,符合条件到下一步
2.<%
response.write"<p><font size=2>登录成功,即将进入...</font>"
response.write"<meta http-equiv=refresh content='2;url=http://www.****.com'>"
%>
何鲁青 2004-12-03
  • 打赏
  • 举报
回复
同意李强大虾的方法
但是
<script>
setTimeout("location='http://www.csdn.net'",2000)
</script>
里的location要换成别的url,要求是跳到别的页面阿。
sys9933 2004-12-03
  • 打赏
  • 举报
回复
<meta http-equiv="refresh" content="10;URL=http://www.***">
I2K 2004-12-03
  • 打赏
  • 举报
回复
<script language="javascript">
setTimeout("location='http://www.csdn.net'",3000)
</script>
lijun355 2004-12-03
  • 打赏
  • 举报
回复
帮顶,加学习!

28,409

社区成员

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

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