28,390
社区成员
发帖
与我相关
我的任务
分享
<%
dim mm : mm=request.cookies("screen")
if mm="" then
response.write("<script language='javascript'>document.cookie = 'screen=' + window.screen.availWidth;")
response.write("self.location.reload();</script>")
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB2312" />
<title>ASP获取JS变量</title>
</head>
<body>
屏幕宽度: <% = mm %> 像素.
</body>
</html>