Forum Moderators: open

Message Too Old, No Replies

Flash plugin detection in Windows IE6

         

kevinj

4:05 am on Dec 28, 2003 (gmt 0)

10+ Year Member



I'm trying to set up a flash plugin detection for a page and have it 99% solved. I'm using MOOCK FPI. The only browser I can't get to work is IE on Windows. The script I'm using contains the following piece which is meant to write a VBScript detector if the user has IE on Windows. I've narrowed it down to this bit of code. When I load the page in IE Windows, it just spins and never finishes loading the page. Any thoughts on this bit of code?

<SCRIPT LANGUAGE="JavaScript1.1" type="text/javascript">
<!--

// Check the browser...we're looking for ie/win
var isIE = (navigator.appVersion.indexOf("MSIE")!= -1)? true : false; // true if we're on ie
var isWin = (navigator.appVersion.indexOf("Windows")!= -1)? true : false; // true if we're on windows

// This is a js1.1 code block, so make note that js1.1 is supported.
jsVersion = 1.1;

// Write vbscript detection on ie win. IE on Windows doesn't support regular
// JavaScript plugins array detection.
if(isIE && isWin){
document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n');
document.write('on error resume next \n');
document.write('flash2Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.2"))) \n');
document.write('flash3Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.3"))) \n');
document.write('flash4Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.4"))) \n');
document.write('flash5Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5"))) \n');
document.write('flash6Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6"))) \n');
document.write('</SCR' + 'IPT\> \n'); // break up end tag so it doesn't end our script
}
// -->
</SCRIPT>

kevinj

4:30 pm on Dec 28, 2003 (gmt 0)

10+ Year Member



I figured this out. The code was fine. It was something I had to correct in the embedded flash file.

RonPK

10:10 pm on Dec 28, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Keep in mind that version 7 of the player is out there...