<%
function browser(info)
if Instr(info,"MSIE 5.5")>0 then
browser="Internet Explorer 5.5"
elseif Instr(info,"MSIE 6.0")>0 then
browser="Internet Explorer 6.0"
elseif Instr(info,"MSIE 5.01")>0 then
browser="Internet Explorer 5.01"
elseif Instr(info,"MSIE 5.0")>0 then
browser="Internet Explorer 5.00"
elseif Instr(info,"MSIE 4.0")>0 then
browser="Internet Explorer 4.01"
else
browser="未知"
end if
end function
function system(info)
if Instr(info,"NT 5.1")>0 then
system=system+"Microsoft Windows XP"
elseif Instr(info,"NT 5")>0 then
system=system+"Microsoft Windows 2000"
elseif Instr(info,"NT 4")>0 then
system=system+"Microsoft Windows NT4"
elseif Instr(info,"98")>0 then
system=system+"Microsoft Windows 98"
elseif Instr(info,"95")>0 then
system=system+"Microsoft Windows 95"
else
system=system+"未知"
end if
end function
Response.write "您的操作系统是:"&system(Request.ServerVariables("HTTP_USER_AGENT"))&"<br/>"
Response.write "您的浏览器版本是:"&browser(Request.ServerVariables("HTTP_USER_AGENT"))
%>
</html>