This should help you detect the flash version.
For head tag:
- Code: Select all
<script language="Javascript">
<!--
var flashinstalled = 0;
var flashversion = 0;
MSDetect = "false";
if (navigator.plugins && navigator.plugins.length)
{
x = navigator.plugins["Shockwave Flash"];
if (x)
{
flashinstalled = 2;
if (x.description)
{
y = x.description;
flashversion = y.charAt(y.indexOf('.')-1);
}
}
else
flashinstalled = 1;
if (navigator.plugins["Shockwave Flash 2.0"])
{
flashinstalled = 2;
flashversion = 2;
}
}
else if (navigator.mimeTypes && navigator.mimeTypes.length)
{
x = navigator.mimeTypes['application/x-shockwave-flash'];
if (x && x.enabledPlugin)
flashinstalled = 2;
else
flashinstalled = 1;
}
else
MSDetect = "true";
// -->
</Script>
For somewhere in your body (IE detection)
- Code: Select all
<script language="javascript">if (flashinstalled==2) {document.write('√ Flash Player Version ' +flashversion +' Detected. Now I can send you some fun animations. <p>In case you did not know, Its good to stay current with the leading web application software (for now). If you get a Flash Icon on the bottom of your screen in the "Task bar" or an Adobe updater icon, its time you got the latest version. EGT makes it a point to utilize the newest technology, so stay ontop of it. The latest version is always downloadable from <a href="http://macromedia.com/download/getflash">this site.</a> Admin privileges required.</p>');} else {document.write('× Test Failed. You may not proceed. <p>You need the latest version of the Adobe Flash Player. It will be just a few moments of your time. EGT makes it a point to utilize the newest technology, so stay ontop of it. The latest version is always downloadable from <a href="http://macromedia.com/download/getflash">this site.</a> Admin privileges required.</p>');}</script>
It says EGT stuff in it, so remember to make the messages unique. Or put the flash in the first message and the message or an image on the other.
Note: redirectUri=''; was not needed, forgot to get rid of it.