Apr 19, 2001 #1 GIGN Programmer Oct 6, 2000 1,082 NZ Does anyone out there have a good detection method for shockwave in Internet Explorer? T.I.A. b2 - benbiddington@surf4nix.com
Does anyone out there have a good detection method for shockwave in Internet Explorer? T.I.A. b2 - benbiddington@surf4nix.com
Apr 21, 2001 #2 LuckyLuke Programmer Mar 28, 2001 188 NL ... There is a flash detection system given with the distribution of flash... It's even an option u can choose in the publish, but here it is... var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0; if ( plugin ) { plugin = parseInt(plugin.description.substring(plugin.description.indexOf("."-1)) >= 5; } else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE">=0 && (navigator.userAgent.indexOf("Windows 95">=0 || navigator.userAgent.indexOf("Windows 98">=0 || navigator.userAgent.indexOf("Windows NT">=0)) { document.write('<SCRIPT LANGUAGE=VBScript\> \n'); document.write('on error resume next \n'); document.write('plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5"))\n'); document.write('</SCRIPT\> \n'); } Upvote 0 Downvote
... There is a flash detection system given with the distribution of flash... It's even an option u can choose in the publish, but here it is... var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0; if ( plugin ) { plugin = parseInt(plugin.description.substring(plugin.description.indexOf("."-1)) >= 5; } else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE">=0 && (navigator.userAgent.indexOf("Windows 95">=0 || navigator.userAgent.indexOf("Windows 98">=0 || navigator.userAgent.indexOf("Windows NT">=0)) { document.write('<SCRIPT LANGUAGE=VBScript\> \n'); document.write('on error resume next \n'); document.write('plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5"))\n'); document.write('</SCRIPT\> \n'); }
Apr 21, 2001 Thread starter #3 GIGN Programmer Oct 6, 2000 1,082 NZ Cool, I try... :-Q b2 - benbiddington@surf4nix.com Upvote 0 Downvote