日期:2014-05-16 浏览次数:21114 次
<%
Dim Agent,Browser,version,tmpstr
Agent=Request.ServerVariables("HTTP_USER_AGENT")
Agent=Split(Agent,";")
If InStr(Agent(1),"MSIE")>0 Then
Browser="MS Internet Explorer "
version=Trim(Left(Replace(Agent(1),"MSIE",""),6))
ElseIf InStr(Agent(4),"Netscape")>0 Then
Browser="Netscape "
tmpstr=Split(Agent(4),"/")
version=tmpstr(UBound(tmpstr))
ElseIf InStr(Agent(4),"rv:")>0 Then
Browser="Mozilla "
tmpstr=Split(Agent(4),":")
version=tmpstr(UBound(tmpstr))
If InStr(version,")") > 0 Then
tmpstr=Split(version,")")
version=tmpstr(0)
End If
End If
%>
<%
Dim Agent,Browser,version,tmpstr
Agent=Request.ServerVariables("HTTP_USER_AGENT")
If InStr(Agent ,"MSIE")>0 Then
Browser="MS Internet Explorer "
version=Trim(Left(Replace(Agent(1),"MSIE",""),6))
ElseIf InStr(Agent ,"Netscape")>0 Then
Browser="Netscape "
tmpstr=Split(Agent ,"/")
version=tmpstr(UBound(tmpstr))
ElseIf InStr(Agent ,"Chrome")>0 Then
Browser="Chrome "
tmpstr=Split(Agent ,"/")
version=tmpstr(UBound(tmpstr))
ElseIf InStr(Agent ,"Firefox ")>0 Then
Browser="Firefox "
tmpstr=Split(Agent ,"/")
version=tmpstr(UBound(tmpstr))
ElseIf InStr(Agent ,"Safari ")>0 Then
Browser="Safari "
tmpstr=Split(Agent ,"/")
version=tmpstr(UBound(tmpstr))
ElseIf InStr(Agent ,"rv:")>0 Then