document.all.activexID.readyState="complete"

解决方案 »

  1.   

    我加啦如下代码,但没有运行,请斑竹和各位大虾指点!
    <SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>
    <!--
    var a=0;
    var b='';
    var TimeoutID = 0;function defaultHtm()
    {
      if (document.all.DWebDvrView1.readyState!="complete")
      {
         TimeoutID = window.setTimeout("defaultHtm()", 100);
      }
      else
      {
        resize();
        if (TimeoutID != 0)
       window.clearTimeout(timeoutID)
      } 
        
    }function resize(){
    var w = document.all.bd.clientWidth, h = document.all.bd.clientHeight;
    var DwebW,DwebH;
    //====================================================
    document.all.DWebDvrView1.height=h -3 -20;
    document.all.DWebDvrView1.width= document.all.DWebDvrView1.height * 352/288;
    document.all.DWebDvrView1.style.left= (w-document.all.DWebDvrView1.width)/2;
    document.all.DWebDvrView1.style.top=3;DwebW = document.all.DWebDvrView1.width;
    DwebH = document.all.DWebDvrView1.height;
    //====================================================
    document.all.TimeStamp1.style.left=(w-DwebW)/2+((DwebW/2 - 10))/2;
    document.all.TimeStamp1.style.top=h-20;
    //====================================================
    document.all.select1.style.left= (w-DwebW)/2+DwebW/2+(DwebW/2-102-50)/2;
    document.all.select1.style.top=h-20;
    document.all.select1.style.width= 102;
    document.all.select1.style.height=23;
    selectTimeStamp();
    //var timeoutID = window.setTimeout("setPassword()",2000)
    //window.clearTimeout(timeoutID)}
    function setPassword()
    {
    DWebDvrView1.Password=a;       
    }function selectTimeStamp(){
    TimeStamp1.checked = true;
    DWebDvrView1.TimeStamp = true;            
    toquery();
    DWebDvrView1.Password=a;       
    DWebDvrView1.IPAddress=b;  
    }function toquery() 
    {
     var tmpstr=unescape(self.parent.location.search); 
     var tmp=tmpstr.indexOf('?') ;
     
    tmpstr=tmpstr.substring(tmp+3,tmpstr.length); 
    a=parseInt(tmpstr);
    //var strs=tmpstr.split('&');
    //for (var i=0;i<strs.length;i++) 
    // eval(strs[i]+";"); 
    //=========================================================
     b=unescape(self.parent.location.hostname);
    //=========================================================}
    <BODY onresize="resize()"  onload="defaultHtm()" id=bd bgcolor="#808080">
      

  2.   

    加上断点调试一下,你的obj是什么?
      

  3.   

    从camera 采集的图片。能否给我一个windows script debuger的中文版
    download 连接
      

  4.   

    onload="setTimeout(defaultHtm,100)" 延迟看看?
      

  5.   

    只有延时吗,ActiveX没有产生object后的flag,或事件吗