一、编成OCX,也就是ActiveX
二、网页上调用如下:
<object id='prjActiveX' classid='clsid:2A9C8BDB-B43D-4791-BC5A-871DEA10A801' codebase='prjActiveX.ocx#version=1,0,0,13' width='100%' height='"100%' name='prjActiveX'>
<PARAM NAME="Caption"
VALUE="Click Me">
<PARAM NAME="Size"
VALUE="2540;846">
.....
</object>
<script language="javascript1.2">
mytngis.ShowXXX(<%=d%>);
//OCX里的方法
</script>
<script FOR="prjActiveX"
EVENT="OnGetSelectObjectID(ObjectID, Objectkind, objectdesc)">
try {
window.opener.getPortValue(ObjectID, Objectkind, objectdesc);
} catch (ex) {
}
</script>
<script FOR=window EVENT=onunload>
prjActiveX.CloseAFX();
</SCRIPT>