找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 2228|回复: 1

[其它] 使用ROS与简单web服务器实现。但是有个问题

[复制链接]
发表于 2009-5-10 23:46:46 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

×
<head>
<title></title><META HTTP-EQUIV="Pragma" CONTENT="no-cache"><META http-equiv="Content-Type" content="text/html;charset=gb2312"><meta http-equiv="Refresh" content="5; url=<%=GetUrl%>">
</head>

<script language="JavaScript">function newwin(){var urlname;var win_attr;win_attr='toolbar=no,menubar=no,scrollbars=no,status=no,location=no,resizable=yes,fullscreen=no,directories=no,width=300,height=250,top=0,left=0 ';window.open('http://192.168.100.69/index.htm','ips_win0',win_attr); }</script>
<%Function GetUrl()
On Error Resume Next
Dim strTemp
If LCase(Request.ServerVariables("HTTPS"))="off" Then
strTemp = "http://"
Else
strTemp = "http://"
End If
strTemp = strTemp & Request.ServerVariables("HTTP_HOST")
If Request.ServerVariables("SERVER_PORT") <> 80 Then strTemp = strTemp & ":" & Request.ServerVariables("SERVER_PORT")
strTemp = strTemp & Request.ServerVariables("URL")
If Trim(Request.QueryString) <> "" Then strTemp = strTemp & "?" & Trim(Request.QueryString)
GetUrl = strTemp
End Function %>

<body text="#FFFFFF" bgcolor="#000000"><b><font size="5">尊敬的涉外花园用户: </body>
</font></b>
<p><b><font size="5">
<body text="#FFFFFF" bgcolor="#000000">您好! </body></font></b></p>
<p><b><font size="5">
<body text="#FFFFFF" bgcolor="#000000">卖盒饭啦,电话1234567。 </body>
</font></b></p>
<p><b><font size="5">
<body text="#FFFFFF" bgcolor="#000000">不要使用电驴、BT等工具下载。谢谢!浏览器将在5秒后跳转到您要访问的页面。
</font></b> </p>

</body></html>
这是代码比如打开bbs.routerclub.com 广告出来正常。但是5秒后跳转时显示无法显示网页
IE地址显示bbs.routerclub.com<GetUrl>请帮忙看看是代码那里出问题了
routeros
发表于 2009-5-11 00:08:42 | 显示全部楼层
什么平台的啊?ASP  
ASP 不用像你 搞得那么复杂吧 简单的很
routeros
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|小黑屋|软路由 ( 渝ICP备15001194号-1|渝公网安备 50011602500124号 )

GMT+8, 2024-9-30 13:21 , Processed in 0.109878 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表