<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>
检测浏览器是否支持有Flash2.0以上或有Flash插件
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com 特别注意:本站所有转载文章言论不代表本站观点! 本站所提供的图片等素材,版权归原作者所有,如需使用,请与原作者联系。未经允许不得转载:IDC资讯中心 » 检测浏览器是否支持有Flash2.0以上或有Flash插件
相关推荐
-      ASP 简介
-      SQL注入天书 – ASP注入漏洞全接触
-      用.net 处理xmlHttp发送异步请求
-      asp.net创建文件夹的IO类的问题
-      如何实现ASP.NET网站个性化
-      关于ASP.NET调用JavaScript的实现
-      ASP利用Google实现在线翻译功能
-      Asp无组件生成缩略图
