28,391
社区成员
发帖
与我相关
我的任务
分享
<%
Dim ip,ipx,url
ip=Request.ServerVariables("HTTP_X_FORWARDED_FOR")
If ip="" Then ip=Request.ServerVariables("REMOTE_ADDR")
ipx=Left(ip,7)
If ipx="172.20." Or ipx="172.21." Then
Response.write "<a href='http://172.20.1.8' target='_blank'>"
Else
Response.write "<a href='building.asp' onclick=""alert('电子图书系统只能内网开放,请绕行!')"" target='_blank'>"
End If
Response.write "<img src='Images/dzts.gif' alt='电子图书系统' border='0'/></a>"
%>
Dim ip,ipx,url
ip=Request.ServerVariables("HTTP_X_FORWARDED_FOR")
If ip="" Then ip=Request.ServerVariables("REMOTE_ADDR")
ipx=Left(ip,7)
If ipx="172.20." Or ipx="172.21." Then
url="http://172.20.1.8"
Else
url="javascript:alert('电子图书系统只能内网开放,请绕行!');location='building.asp'"
End If
Response.write "<a href='"&url&"' target='_blank'><img src='Images/dzts.gif' alt='电子图书系统' border='0'/></a>"
<%
Dim ip,ipx,url
ip=Request.ServerVariables("HTTP_X_FORWARDED_FOR")
If ip="" Then ip=Request.ServerVariables("REMOTE_ADDR")
ipx=Left(ip,7)
If ipx="172.20." Or ipx="172.21." Then
url="http://172.20.1.8"
Else
Response.write "<script>alert('电子图书系统只能内网开放,请绕行!')</script>"
url="building.asp"
End If
Response.write "<a href='"&url&"' target='_blank'><img src='Images/dzts.gif' alt='电子图书系统' border='0'/></a>"
%>
<%
Dim ip,ipx,url
ip=Request.ServerVariables("HTTP_X_FORWARDED_FOR")
If ip="" Then ip=Request.ServerVariables("REMOTE_ADDR")
ipx=Left(ip,7)
If ipx="172.20." Or ipx="172.21." Then
url="http://172.20.1.8"
Else
url="building.asp"
End If
Response.write "<a href='"&url&"' target='_blank'><img src='Images/dzts.gif' alt='电子图书系统' border='0'/></a>"
%>