欢迎光临
我们一直在努力

检测浏览器是否支持有Flash2.0以上或有Flash插件

建站超值云服务器,限时71元/月

<html>

<head>

<%

set objs = server.createobject("mswc.browsertype")

if objs.javascript = true then

look for a version of internet explorer that supports activex (i.e., one thats

running on a platform other than mac or windows 3.1) or a browser that supports

the plugin property of the navigator object and that has flash player 2.0

installed:

%>

<script language="javascript">

<!–

if ((navigator.appname == "microsoft internet explorer" &&

navigator.appversion.indexof("mac") == -1 &&

navigator.appversion.indexof("3.1") == -1) ||

(navigator.plugins && navigator.plugins["shockwave flash"])

|| navigator.plugins["shockwave flash 2.0"]) {

window.location=flashed.htm;}

else {

window.location=nonflashed.htm;}

// –>

</script>

<%

objs.close

set objs = nothing

end if

%>

</head>

<body>

<a href="flashed.htm">see the flashed site</a><br>

requires: <a href="http://www.macromedia.com/shockwave/download/index.cgi?

p1_prod_version=shockwaveflash">flash player</a>

<br>

<a href="nonflashed.htm">see the unflashed site</a>

</body>

</html>

赞(0)
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com 特别注意:本站所有转载文章言论不代表本站观点! 本站所提供的图片等素材,版权归原作者所有,如需使用,请与原作者联系。未经允许不得转载:IDC资讯中心 » 检测浏览器是否支持有Flash2.0以上或有Flash插件
分享到: 更多 (0)