programming-examples/asp/Miscellaneous/Detects if user has Flash.asp

30 lines
645 B
Plaintext
Raw Normal View History

2019-11-18 14:25:58 +01:00
<HTML>
<HEAD>
<TITLE>Document</TITLE>
</HEAD>
<BODY BGCOLOR=#000000 Text=FFFFFF LINK=FFFFFF>
<SCRIPT LANGUAGE="JavaScript">
<!--
var useFlash = navigator.mimeTypes &&
navigator.mimeTypes["application/x-shockwave-flash"] &&
navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin;
//-->
</SCRIPT>
<SCRIPT LANGUAGE="VBScript">
<!--
On Error Resume Next
useFlash = Not IsNull(CreateObject("ShockwaveFlash.ShockwaveFlash"))
-->
</SCRIPT>
<SCRIPT LANGUAGE="JavaScript">
<!--
If ( useFlash ) {
window.location = "pagewithflash.htm";
} Else {
window.location = "otherpage.htm";
}
//-->
</SCRIPT>
</BODY>
</HTML>