# Is this 3rd party JS file a workaround /wrapper for ActiveX control?

**URL:** https://forum.kirupa.com/t/is-this-3rd-party-js-file-a-workaround-wrapper-for-activex-control/232138
**Category:** web dev
**Created:** [July 11, 2007, 2:12pm UTC](https://forum.kirupa.com/t/is-this-3rd-party-js-file-a-workaround-wrapper-for-activex-control/232138 "2007-07-11T14:12:36Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![somnamblst](https://avatars.discourse-cdn.com/v4/letter/s/a4c791/32.png) [@somnamblst](https://forum.kirupa.com/u/somnamblst)
#### Post date: [July 11, 2007, 2:12pm UTC](https://forum.kirupa.com/t/is-this-3rd-party-js-file-a-workaround-wrapper-for-activex-control/232138/1 "2007-07-11T14:12:36Z")

</div>

I can’t get any answers from the tech support staff at this 3rd party so I am just guessing here.

```auto
if (TFSMFlash_IMAGEALTERNATE){
 var MM_contentVersion = TFSMFlash_VERSION;
 var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
 if ( plugin ) {
  var words = navigator.plugins["Shockwave Flash"].description.split(" ");
      for (var i = 0; i < words.length; ++i)
      {
   if (isNaN(parseInt(words*)))
   continue;
   var MM_PluginVersion = words*; 
      }
  var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
 }
 else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && (navigator.appVersion.indexOf("Win") != -1)) {
  document.write('<SCR' + 'IPT LANGUAGE=VBScript\> 
');
  document.write('on error resume next 
');
  document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))
');
  document.write('</SCR' + 'IPT\> 
');
 }
}
if ( MM_FlashCanPlay || ! TFSMFlash_IMAGEALTERNATE ){
document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="'+TFSMFlash_OASPROTOCOL+'download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+TFSMFlash_VERSION+',0,0,0" ID="'+TFSMFlash_OASADID+'" '+TFSMFlash_OASDIM+' ALIGN="">');
document.write('<PARAM NAME=movie VALUE="'+TFSMFlash_SWFFILE+'"><PARAM NAME=quality VALUE=high><PARAM NAME="wmode" VALUE="'+TFSMFlash_WMODE+'">'); 
document.write('<EMBED src="'+TFSMFlash_SWFFILE+'" quality=high wmode='+TFSMFlash_WMODE+' swLiveConnect=FALSE '+TFSMFlash_OASDIM+' NAME="'+TFSMFlash_OASADID+'" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="'+TFSMFlash_OASPROTOCOL+'www.macromedia.com/go/getflashplayer">');
document.write('</EMBED></OBJECT>');
} else {
document.write('<a href="'+TFSMFlash_OASCLICK+'" target="'+TFSMFlash_OASTARGET+'"><IMG SRC="'+TFSMFlash_IMAGEALTERNATE+'" '+TFSMFlash_OASDIM+' BORDER=0 alt="'+TFSMFlash_OASALTTEXT+'"></a>');

```
