获得网页来访者IP地址的代码
一,获得网页来访者IP地址的代码是:[code]您的IP是: <% =Request.ServerVariables("REMOTE_ADDR") %> [/code]二,获得操作系统版本的代码是:[code]<% response.Write operationsystem & "<br>" & browserfunction operationsystem() '操作系统版本
agent = Request.ServerVariables("HTTP_USER_AGENT") cRR:` HK1]
if Instr(agent,"NT 5.2")>0 then
SystemVer="Windows Server 2003" nX I8jn2n
elseif Instr(agent,"NT 5.1")>0 then oMo \;N5y
SystemVer="Windows XP"
elseif Instr(agent,"NT 5")>0 then H%nN8R7B-|E!^
SystemVer="Windows 2000"
elseif Instr(agent,"NT 4")>0 then
SystemVer="Windows NT4"
elseif Instr(agent,"4.9")>0 then Vyg:EzB&c
SystemVer="Windows ME" :F7D:^*z;M,{ i6Q#@&q
elseif Instr(agent,"98")>0 then l3BzQp
SystemVer="Windows 98"