README.md

December 4, 2022 ยท View on GitHub

Detects if user has Flash

Description

This code will detect is the user has the flash plug in. And then redirect to a page with flash or one without. NICE!! please vote :)

More Info

If users have / dont have flash

noone I think :)

Submitted On
ByPreben
LevelBeginner
User Rating4.6 (41 globes from 9 users)
CompatibilityASP (Active Server Pages), HTML, VbScript (browser/client side)

Category |Miscellaneous World |ASP / VbScript Archive File |

API Declarations

Use and abuse :)

Source Code

<HTML>
<HEAD>
<TITLE>www.PrebenMusic.com</TITLE>
<meta name="GENERATOR" content="PrebenMusic scripts">
</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>