帮我看下这个js代码是什么作用
<%ifrequest("moneytype")<>""thensession("moneytype")=request("moneytype")response.Wri...
<%if request("moneytype")<>"" then
session("moneytype")=request("moneytype")
response.Write "<script>parent.location=parent.location</script>"
end if
set rs=server.createobject("adodb.recordset")
sql="select top 1 * from system"
rs.open sql,conn,1,1
Lan_see=rs("IP_limit")
if session("lan_see")<>"" then
Lan_see=false
end if
rs.close
set rs=nothing
if Lan_see=true then%>
<SCRIPT LANGUAGE="JavaScript1.2">
<!--//
if (navigator.appName == 'Netscape')
var language = navigator.language;
else
var language = navigator.browserLanguage;
if (language.indexOf('zh') > -1) parent.document.location.href = 'iplog.asp';
// End -->
</script> 展开
session("moneytype")=request("moneytype")
response.Write "<script>parent.location=parent.location</script>"
end if
set rs=server.createobject("adodb.recordset")
sql="select top 1 * from system"
rs.open sql,conn,1,1
Lan_see=rs("IP_limit")
if session("lan_see")<>"" then
Lan_see=false
end if
rs.close
set rs=nothing
if Lan_see=true then%>
<SCRIPT LANGUAGE="JavaScript1.2">
<!--//
if (navigator.appName == 'Netscape')
var language = navigator.language;
else
var language = navigator.browserLanguage;
if (language.indexOf('zh') > -1) parent.document.location.href = 'iplog.asp';
// End -->
</script> 展开
1个回答
展开全部
<SCRIPT LANGUAGE="JavaScript1.2">
<!--//
if (navigator.appName == 'Netscape')
var language = navigator.language;
else
var language = navigator.browserLanguage;
if (language.indexOf('zh') > -1) parent.document.location.href = 'iplog.asp';
// End -->
</script>
这一段代码是js脚本,目的获取浏览器语言环境,如果不是中文环境,父窗体跳转到"iplog.asp"页面
<!--//
if (navigator.appName == 'Netscape')
var language = navigator.language;
else
var language = navigator.browserLanguage;
if (language.indexOf('zh') > -1) parent.document.location.href = 'iplog.asp';
// End -->
</script>
这一段代码是js脚本,目的获取浏览器语言环境,如果不是中文环境,父窗体跳转到"iplog.asp"页面
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询