繁体中文
设为首页
加入收藏
当前位置:ASP技术首页 >> ASP基础 >> 介绍一个判断plug-ins/ActiveX 是否存在的例子

介绍一个判断plug-ins/ActiveX 是否存在的例子

2006-06-15 08:00:00  作者:  来源:互联网  浏览次数:0  文字大小:【】【】【
简介:这里就以在IE3.02和Netscape3+的浏览器为例,介绍关于Flash(以Flash2为例)插件是否安装. 0 then if instr(a,"98")>0 or instr(a,"95")>0 or instr(a,"nt")>0 then ie32="true" ' IE 3 or greater on 32-bit end ...

这里就以在IE3.02和Netscape3+的浏览器为例,介绍关于Flash(以Flash2为例)插件是否安装.

<%

a = lcase(request.servervariables("http_user_agent"))

if instr(a,"msie")>0 then

if instr(a,"98")>0 or instr(a,"95")>0 or instr(a,"nt")>0 then

ie32="true"

' IE 3 or greater on 32-bit

end if

elseif instr(a,"mozilla/3")>0 or instr(a,"mozilla/4")>0 then

if instr(a,"opera")<=0 then

nn="true"

' Netscape 3 or greater

end if

end if

if ie32 then

%>

<%

elseif nn then

%>

<%

end if

%>

责任编辑:admin
相关文章