一个关于浏览器的题
<%
dim nstr
response.write("您使用的浏浏览器是: " & request.serverVariables("HTTP_USER_AGENT") & "<BR>")
nstr=request.serverVariables("HTTP_USER_AGENT")
if instr(1,nstr,"MSIE 6.0",1)>0 then
response.write("您使用的是IE6.0浏览器")
elseif instr(1,nstr,"MSIE 5.0",1)>0 then
response.write("您使用的是IE5.0浏览器")
elseif instr(1,nstr,"firefox",1)>0 then
response.write("您使用的是 FIREFOX 浏览器")
else
response.write("未知浏览器类型")
end if
%>
问题:HTTP_USER_AGENT这是舍意思
MSIE 6.0 这是啥意思
instr这词啥意思
1,nstr,"firefox",1)>0这是啥意思
参考答案:这段代码的意思大概是指,网页可以识别浏览者所用的浏览器类型
MSIE 6.0 是IE6所用的引擎类型
instr 是instruction 的缩写