1个回答
展开全部
function browser() '浏览器版本
agent = Request.ServerVariables("HTTP_USER_AGENT")
if Instr(agent,"MSIE 6.0")>0 then
browserVer="Internet Explorer 6.0"
elseif Instr(agent,"MSIE 7.0")>0 then
browserVer="Internet Explorer 7.0"
elseif Instr(agent,"MSIE 8.0")>0 then
browserVer="Internet Explorer 8.0"
elseif Instr(agent,"MSIE 9.0")>0 then
browserVer="Internet Explorer 9.0"
elseif Instr(agent,"MSIE 10.0")>0 then
browserVer="Internet Explorer 10.0"
else
browserVer="未知"
end if
browser="您的浏览器版本: " & browserVer
if Instr(agent,"TencentTraveler")>0 then '检查是否正在使用腾讯TT
browser=browser&" |目前正使用TencentTraveler"
end if
end function
agent = Request.ServerVariables("HTTP_USER_AGENT")
if Instr(agent,"MSIE 6.0")>0 then
browserVer="Internet Explorer 6.0"
elseif Instr(agent,"MSIE 7.0")>0 then
browserVer="Internet Explorer 7.0"
elseif Instr(agent,"MSIE 8.0")>0 then
browserVer="Internet Explorer 8.0"
elseif Instr(agent,"MSIE 9.0")>0 then
browserVer="Internet Explorer 9.0"
elseif Instr(agent,"MSIE 10.0")>0 then
browserVer="Internet Explorer 10.0"
else
browserVer="未知"
end if
browser="您的浏览器版本: " & browserVer
if Instr(agent,"TencentTraveler")>0 then '检查是否正在使用腾讯TT
browser=browser&" |目前正使用TencentTraveler"
end if
end function
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询