帮人帮到底吧!请问怎么写,给个例子,或是把我这个改一下!我已经按你说的在控件里加了SUM(value1:integer,value2:integer):integer这样的函数了!请问怎么往里传值并取回结果
下面是我的代码:
<SCRIPT LANGUAGE="JavaScript">
function yourfun()
{
var Dobj = document.all.DwgTools;
Dobj.
}
</script>
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1"
method="post"
runat="server">
<OBJECT id="Test_A"
style="Z-INDEX: 101
LEFT: 144px
POSITION: absolute
TOP: 104px"
codeBase="TestActiveProj1.ocx#version=1,0,0,0"
height="200"
hspace="0"
width="402"
align="center"
vspace="0"
classid="clsid:733098D1-2F20-477C-9D03-1DDEA2AE256C"
VIEWASTEXT>
<PARAM NAME="Visible"
VALUE="0">
<PARAM NAME="AutoScroll"
VALUE="0">
<PARAM NAME="AutoSize"
VALUE="0">
<PARAM NAME="AxBorderStyle"
VALUE="1">
<PARAM NAME="Caption"
VALUE="TestActiveX">
<PARAM NAME="Color"
VALUE="2147483663">
<PARAM NAME="Font"
VALUE="MS Sans Serif">
<PARAM NAME="KeyPreview"
VALUE="0">
<PARAM NAME="PixelsPerInch"
VALUE="96">
<PARAM NAME="PrintScale"
VALUE="1">
<PARAM NAME="Scaled"
VALUE="-1">
<PARAM NAME="DropTarget"
VALUE="0">
<PARAM NAME="HelpFile"
VALUE="">
<PARAM NAME="DoubleBuffered"
VALUE="0">
<PARAM NAME="Enabled"
VALUE="-1">
<PARAM NAME="Cursor"
VALUE="0">
</form>
<a href="javascript:yourfun()">YourFun()</a>
</body>