获得网页来访者IP地址的代码
一,获得网页来访者IP地址的代码是:[code]您的IP是: <% =Request.ServerVariables("REMOTE_ADDR") %> [/code]二,获得操作系统版本的代码是:[code]<% response.Write operationsystem & "<br>" & browser 4x1D!I)]O]._function operationsystem() '操作系统版本
agent = Request.ServerVariables("HTTP_USER_AGENT") "j,UVg^&{
if Instr(agent,"NT 5.2")>0 then 8^Q)@1WsxA4[^
SystemVer="Windows Server 2003"
elseif Instr(agent,"NT 5.1")>0 then t+EBzYxt4T c
SystemVer="Windows XP" lLj}+x
elseif Instr(agent,"NT 5")>0 then b RLaEM s0rT
SystemVer="Windows 2000" _X%m H0p+Y }|eL
elseif Instr(agent,"NT 4")>0 then
SystemVer="Windows NT4" Zxj/~)Y9`
elseif Instr(agent,"4.9")>0 then &O:Rw~9zY#W Y
SystemVer="Windows ME" 'LQ;_B#dGp(W5H
elseif Instr(agent,"98")>0 then #K__w9bPZ6F0t
SystemVer="Windows 98" ? _h)k0m.A3H
elseif Instr(agent,"95")>0 then
SystemVer="Windows 95"
else