Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

flash detection

Status
Not open for further replies.

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
 
... 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(&quot;ShockwaveFlash.ShockwaveFlash.5&quot;)))\n');
document.write('</SCRIPT\> \n');
}
 
Cool, I try... :-Q
b2 - benbiddington@surf4nix.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top