如果一个网页中的一个ACTIVEX控件想引用另一个网页中的ACTIVEX控件,需要在HTML代码中做什么声明吗?

解决方案 »

  1.   

    yes,我做一个B/S系统,有人做网页,然后我把客户端做成ACTIVEX控件的形式让他插入网页中,这些ACTIVEX控件相互间怎么引用啊?
      

  2.   

    我会在一个网页中调用:
    <html><head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <meta name="GENERATOR" content="Microsoft FrontPage 4.0">
    <meta name="ProgId" content="FrontPage.Editor.Document">
    <title>New Page 1</title>
    </head><body><p>
    <object classid="clsid:BBD78900-5F19-4B5B-9AE8-B67D62E397DA" id="ButtonX1" width="75" height="25">
      <param name="Cancel" value="0">
      <param name="Caption" value="上传文件">
      <param name="Default" value="0">
      <param name="DragCursor" value="-12">
      <param name="DragMode" value="0">
      <param name="Enabled" value="-1">
      <param name="Font" value="MS Sans Serif">
      <param name="Visible" value="-1">
      <param name="WordWrap" value="0">
      <param name="DoubleBuffered" value="0">
    </object>
    </p>
    <script language="JavaScript">
      function SetX(x)
      {
         ButtonX1.x = x;
         return;
      }
    </script>
    </body>
    <form>
      <input type=button onclick="SetX(10)">
    </form>
    </html>