初学Activex,下到一些源代码,但不知道怎么调用。

解决方案 »

  1.   

    <object id="AxControl"  classid="CLSID:48E74DA6-6F26-4EDC-BA48-3CAD4EED0B16" viewastext><script language="javascript" id="clientEventHandlersJS">
    <!--
    function DeleteCurrentFile(){  //删除当前结果
          AxControl.DelCurrentFile(document.all.TextKeyWord.value);
    }
    //-->
    </script>
      

  2.   

    如果是 .ocx ,那个 classid 是怎么获得的?
      

  3.   

    下面的调用错在哪里? AboutBox方法我用vc的控件测试容器试过的,是有的。<OBJECT id="VP2P" type="application/x-oleobject" classid="clsid:5D007EA1-D20F-4125-90C4-23E50E8E2136" 
     codebase="file:VP2P.ocx" width=80 height=20>
    </OBJECT><script language="javascript" id="clientEventHandlersJS">
    <!--
    function AboutBox(){  
          VP2P.AboutBox();
    }
    //-->
    </script><INPUT onClick="return AboutBox()" type="button" value="1" name="ButtonMp3">