首页
学习
活动
专区
圈层
工具
发布
社区首页 >专栏 >alook浏览器怎么开启flash_检测浏览器是否支持有Flash2.0以上或有Flash插件[通俗易懂]

alook浏览器怎么开启flash_检测浏览器是否支持有Flash2.0以上或有Flash插件[通俗易懂]

作者头像
全栈程序员站长
发布2022-08-01 15:00:50
发布2022-08-01 15:00:50
1.3K0
举报

大家好,又见面了,我是你们的朋友全栈君。

Set obJS = Server.CreateObject(“MSWC.BrowserType”)

If obJS.javascript = TRUE Then

‘Look for a version of Internet Explorer that supports ActiveX (i.e., one that’s

‘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:

%>

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’;}

// –>

obJS.Close

Set obJS = Nothing

End If

%>

See the Flashed Site

requires: Flash Player

See the unFlashed Site

发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/125961.html原文链接:https://javaforall.cn

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2022年4月1,如有侵权请联系 cloudcommunity@tencent.com 删除
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档