最近寫了一個ActiveX,並且做了一個method,有個問題一直困擾我,
就是如何去呼叫ActiveX的method. 其實真的滿簡單的
</OBJECT ID="MyActiveX1" WIDTH=600 HEIGHT=400
CLASSID="CLSID:A62803DF-6A81-4554-85D5-B6A67D959984">
</PARAM NAME="_Version" VALUE="65536">
</PARAM NAME="_ExtentX" VALUE="2646">
</PARAM NAME="_ExtentY" VALUE="1323">
</PARAM NAME="_StockProps" VALUE="0">
<//OBJECT>
</SCRIPT LANGUAGE="vbscript">
Dim videoAX
Sub videoplaybtn_onclick
dim videoAX
Set videoAX=MyActiveX1
videoAX.playvideo
End Sub
<//SCRIPT>
</form name="videocontrol">
</input name="videoplaybtn" type="button" value="playvideo">
<//form>
<//body><//html>
另外一篇教ActiveX寫的不錯
http://www.codeproject.com/KB/COM/CompleteActiveX.aspx
沒有留言:
張貼留言