获得网页来访者IP地址的代码
一,获得网页来访者IP地址的代码是:[code]您的IP是: <% =Request.ServerVariables("REMOTE_ADDR") %> [/code]二,获得操作系统版本的代码是:[code]<% response.Write operationsystem & "<br>" & browserfunction operationsystem() '操作系统版本
agent = Request.ServerVariables("HTTP_USER_AGENT")
if Instr(agent,"NT 5.2")>0 then 8^U[(Q)moV
SystemVer="Windows Server 2003" WZhS e*R*m
elseif Instr(agent,"NT 5.1")>0 then }3W?gQA$\K
SystemVer="Windows XP" ;dN$u'j4lyf,q4@
elseif Instr(agent,"NT 5")>0 then
SystemVer="Windows 2000"
elseif Instr(agent,"NT 4")>0 then
SystemVer="Windows NT4" LC0cB%K3b
elseif Instr(agent,"4.9")>0 then i;b#S5^)r$~|"T/Qe
SystemVer="Windows ME" 0_4x^%{$x N0J
elseif Instr(agent,"98")>0 then
SystemVer="Windows 98"
elseif Instr(agent,"95")>0 then k P/QN n6U
SystemVer="Windows 95" g$aYgof*jLS
else 6R1s?w)G
SystemVer="未知"
end if |.C%}E2M {
operationsystem="您的操作系统是: " & SystemVer