[CODE]Dim browserver, browser As String
If InStr(Request.ServerVariables("HTTP_USER_AGENT"), "MSIE 7.0") > 0 Then
browserver = "Internet Explorer 7.0"
ElseIf InStr(Request.ServerVariables("HTTP_USER_AGENT"), "MSIE 6.0") > 0 Then
browserver = "Internet Explorer 6.0"
ElseIf InStr(Request.ServerVariables("HTTP_USER_AGENT"), "MSIE 5.5") > 0 Then
browserver = "Internet Explorer 5.5"
ElseIf InStr(Request.ServerVariables("HTTP_USER_AGENT"), "MSIE 5.01") > 0 Then
browserver = "Internet Explorer 5.01"
ElseIf InStr(Request.ServerVariables("HTTP_USER_AGENT"), "MSIE 5.0") > 0 Then
browserver = "Internet Explorer 5.00"
ElseIf InStr(Request.ServerVariables("HTTP_USER_AGENT"), "MSIE 4.0") > 0 Then
browserver = "Internet Explorer 4.0"
Else
browserver = "未知"
End If
If InStr(Request.ServerVariables("HTTP_USER_AGENT"), "TencentTraveler") > 0 Then '检查是否正在使用腾讯TT
browserver = "TencentTraveler"
End If
Label7.Text = browserver[/CODE]
这个浏览器版本可以!!!!!!