Detect if the browser supports Flash2.0 or Flash plugins

Source: Internet
Author: User
Browser <%
Set Objs = Server.CreateObject ("MSWC. BrowserType ")
If Objs.javascript = TRUE Then
' Look for a version of Internet Explorer-supports ActiveX (i.e., one that ' s
' Running on a platform the 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
%>
<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>



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.