OSDN Git Service

Version 0.6.165, fix Node.prototype.kill.
[pettanr/clientJs.git] / 0.6.x / js / 03_plugin / 00_XPlugin.js
index a6e6512..aa9daf9 100644 (file)
@@ -1,3 +1,24 @@
+/*
+ * VBS
+ */
+
+if( false && 5 <= X_UA[ 'IE' ] && X_UA[ 'IE' ] < 11 ){
+       (function(){
+
+                var script = document.createElement( "script" ) ;
+                script[ "type" ] = "text/vbscript" ;
+                script.text = [
+                    "Function vba_IEBinaryToArrayBytes()\n" ,
+                    "  vba_IEBinaryToArrayBytes = 1\n" ,
+                    "End Function\n"
+                    ].join( "" ) ;
+                document.getElementsByTagName("head")[ 0 ].appendChild( script ) ;
+               
+               // alert( vba_IEBinaryToArrayBytes() );
+       })();
+       
+};
+
 
 /*
  * Flash Player 10 バージョン判別チェックリスト
@@ -21,7 +42,7 @@ var X_Pulgin_FLASH_VERSION =
                        parseFloat( navigator.plugins[ 'Shockwave Flash' ].version ) :
                !X_UA[ 'IE4' ] && !X_UA[ 'IE5' ] && X_UA[ 'ActiveX' ] ? (function(){
                            var obj = eval( 'var a,e;try{a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(e){}a' ),
-                               ver = obj && obj.GetVariable( '$version' ).split( ' ' ).join( '.' );
+                               ver = obj && obj[ 'GetVariable' ]( '$version' ).split( ' ' ).join( '.' );
                                return parseFloat( ver ) || 0;
                        })() :
                        0,
@@ -38,7 +59,7 @@ var X_Pulgin_FLASH_VERSION =
        X_Pulgin_SILVER_LIGHT_VERSION = 
                !X_UA[ 'IE' ] && navigator.plugins[ 'Silverlight Plug-In' ] ?
                        parseFloat( navigator.plugins[ 'Silverlight Plug-In' ].version ) :
-               X_UA[ 'ActiveX' ] && 6 <= X_UA[ 'IE' ] && !X_UA[ 'IECompat' ] ? (function(){
+               X_UA[ 'ActiveX' ] && 6 <= X_UA[ 'IE' ] ? (function(){
                            return eval( 'var a,i=0;try{a=new ActiveXObject("AgControl.AgControl");for(i=5;i;--i)if(a.IsVersionSupported(i+".0"))break;}catch(e){i=0}i' );
                        })() :
                        0,