K
KMSHANREN
Unregistered / Unconfirmed
GUEST, unregistred user!
比如我在网页里引用了操作系统自带的ActiveX时间日期控件(id=Calendar1),已经设置好参数(<param name="Month" value="11">),引用查看是正常的显示是11(alert(Calendar1.month)),当我在ActiveX Form里选择改变月份后就只会显示为0(alert(Calendar1.Month)),请问如何正确获得值?
付原程序:
<object classid="clsid:8E27C92B-1264-101C-8A2F-040224009C02" id="Calendar1">
<param name="_Version" value="524288">
<param name="_ExtentX" value="7620">
<param name="_ExtentY" value="5080">
<param name="_StockProps" value="1">
<param name="BackColor" value="-2147483633">
<param name="Year" value="2003">
<param name="Month" value="11">
<param name="Day" value="16">
<param name="DayLength" value="1">
<param name="MonthLength" value="1">
<param name="DayFontColor" value="0">
<param name="FirstDay" value="7">
<param name="GridCellEffect" value="1">
<param name="GridFontColor" value="10485760">
<param name="GridLinesColor" value="-2147483632">
<param name="ShowDateSelectors" value="-1">
<param name="ShowDays" value="-1">
<param name="ShowHorizontalGrid" value="-1">
<param name="ShowTitle" value="-1">
<param name="ShowVerticalGrid" value="-1">
<param name="TitleFontColor" value="10485760">
<param name="ValueIsNull" value="0">
</object>
</p>
<p><input type="button" value="按钮" name="B3" onClick="alert(Calendar1.Month)"></p>
付原程序:
<object classid="clsid:8E27C92B-1264-101C-8A2F-040224009C02" id="Calendar1">
<param name="_Version" value="524288">
<param name="_ExtentX" value="7620">
<param name="_ExtentY" value="5080">
<param name="_StockProps" value="1">
<param name="BackColor" value="-2147483633">
<param name="Year" value="2003">
<param name="Month" value="11">
<param name="Day" value="16">
<param name="DayLength" value="1">
<param name="MonthLength" value="1">
<param name="DayFontColor" value="0">
<param name="FirstDay" value="7">
<param name="GridCellEffect" value="1">
<param name="GridFontColor" value="10485760">
<param name="GridLinesColor" value="-2147483632">
<param name="ShowDateSelectors" value="-1">
<param name="ShowDays" value="-1">
<param name="ShowHorizontalGrid" value="-1">
<param name="ShowTitle" value="-1">
<param name="ShowVerticalGrid" value="-1">
<param name="TitleFontColor" value="10485760">
<param name="ValueIsNull" value="0">
</object>
</p>
<p><input type="button" value="按钮" name="B3" onClick="alert(Calendar1.Month)"></p>