实现Active 控件的自动激活

// JScript 文件
//实现Active 控件的自动激活
if(typeof(dclk_isDartRichMediaLoaded) == "undefined") {
      dclk_isDartRichMediaLoaded = true;
      function dclkWrite(str){
          if(dclk_shouldOverride) {
              dclk_original_documentWrite(str);
          }
          else{
              document.write(str);
          }
      }
      function dclkWriteln(str){
          if(dclk_shouldOverride) {
              dclk_original_documentWriteLn(str);
          }
          else{
              document.writeln(str);
          }
      }
      function dclk_isInternetExplorer() {
          return (navigator.appVersion.indexOf("MSIE") != -1 && navigator.userAgent.indexOf("Opera") < 0);
      }
      dclk_shouldOverride = dclk_isInternetExplorer();
      if(dclk_shouldOverride) {
          dclk_original_documentWrite = document.write;
          dclk_original_documentWriteLn = document.writeln;
          document.write = dclkWrite;
          document.writeln = dclkWriteln;
      }
}

 

posted @ 2010-11-10 20:22  你妹的sb  阅读(377)  评论(0编辑  收藏  举报
百度一下