js改成vbs
哪位大侠,帮我把这段代码改成js的..
<%
Dim username
username=session("lxadmin")
if username="" then
username=request.Cookies("lxadmin")
End if
If username<> "ljdb" and username<> "lxnews" then
Response.Redirect("http://lxnews.zjol.com.cn/ggl/index.htm")
End If
%>
[解决办法]
<%@language="JScript"%><% var username = Session("lxadmin"); if(username=="") username = Request.Cookies("lxadmin");if(username != "ljdb" && username != "lxnews") Response.Redirect("http://lxnews.zjol.com.cn/ggl/index.htm");%>