如题~

解决方案 »

  1.   

    <div align="center" id="aaaaaa">
    <object
    classid="clsid:FED8B8BF-90E4-4A42-BEA8-939F67602DEE" id="HClient1"
    width="800" height="600">
        <param name="_Version" value="65536">
        <param name="_ExtentX" value="18521">
        <param name="_ExtentY" value="15346">
        <param name="_StockProps" value="0">
    </object>
    </div>
    <script language="javaScript">
    var obj=document.getElementById("HClient1");
    <%
    String chans = (String)session.getAttribute("chans");
    String str = (String)session.getAttribute("videoview");
    %>
    obj.SetViewChans("<%=chans%>");
    obj.AutoReadLoginCfg();
    obj.SetUserPurview("<%=str%>");
    function AAAclose()
    {
        obj.CloseWindow();
    }
    function ff()
    {
    obj.CloseWindow();
    setTimeout("CollectGarbage();", 1);
     var o2=document.all("aaaaaa");
     o2.removeChild(o2.childNodes[0]);obj=null;
    }
    </script>用js控制active x提供的一些方法
      

  2.   

    active x控件是客户端运行,jsp是服务器端运行,交互使用http通信。