Windows Media PlayerのバージョンをJavascriptで行う

 
function getWindowsMediaPlayerVersion ()
{ if (/*@cc_on!@*/false)
{ /* @if((@_jscript_version >= 3) && (@_win32 || @_win64)) document.open(); document.write('<scr'+'ipt language="VBScript"\>\nOn Error Resume Next\nDim version\nversion="0.0"\n'); document.write('Set wmp=CreateObject("WMPlayer.OCX")\nIf IsObject(wmp) Then\n'); document.write('version=wmp.versionInfo\nEnd If\n<\/scr'+'ipt\>\n'); document.close(); return version;
@else@*/
      /*@end @*/
    }
else
{
return false;
}
}