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

      :: Flash :: 2004-8-14 13:14
<html>
<head>
<%
Set obJS = Server.CreateObject("MSWC.BrowserType")
If obJS.javascript = TRUE Then
%>
<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>
requires: <a href="http://www.macromedia.com/shockwave/download/index.cgi?
P1_Prod_Version=ShockwaveFlash">Flash Player</a>
<br>

</body>
</html>
标签集:TAGS:
回复Comments() 点击Count()

回复Comments

{commentauthor}
{commentauthor}
{commenttime}
{commentnum}
{commentcontent}
作者:
{commentrecontent}
}