<form name="frm" method="post">时间:<input type="text" name="begintime" size="10""></form>
<object id="Calendar" classid="CLSID:8E27C92B-1264-101C-8A2F-040224009C02" width="250" height="200" codebase="MSCAL.OCX"></object>
<SCRIPT LANGUAGE=javascript FOR=Calendar EVENT=AfterUpdate>
document.frm.begintime.value = Calendar.Year + "-" + Calendar.Month + "-" + Calendar.Day
</SCRIPT>
<object CLASSID="clsid:5220cb21-c88d-11cf-b347-00aa00a28331" WIDTH="0" HEIGHT="0">
<param NAME="LPKPath" VALUE="/ActiveX/pubocx.lpk">
</object>
<object id="Calendar" classid="CLSID:8E27C92B-1264-101C-8A2F-040224009C02" width="250" height="200" codebase="MSCAL.OCX"></object>
<SCRIPT LANGUAGE=javascript FOR=Calendar EVENT=AfterUpdate>
document.frm.begintime.value = Calendar.Year + "-" + Calendar.Month + "-" + Calendar.Day
</SCRIPT>
<object CLASSID="clsid:5220cb21-c88d-11cf-b347-00aa00a28331" WIDTH="0" HEIGHT="0">
<param NAME="LPKPath" VALUE="/ActiveX/pubocx.lpk">
</object>
解决方案 »
- java中的ajaxanywhere与struts的结合出的问题
- 获取iframe的当前id信息
- 高分求助!!怎么让FusionChartsFree画出来的图显示在表格里
- 关于菜单层的显示与隐藏 高手请进
- 行: 59 错误: 属性“mycheck”的值为 null、未定义或不是 Function 对象
- 这段代码为什么不能执行?
- 怎样在网页中显示realplayer?
- 请问如果设计要求是用面向过程编程,那我还能不能用对象直接量了或是命名空间了?
- 一个比较特殊的关联菜单,请求高手帮助,比较急的,想了半天了没有结果。
- 有没有图片上下首尾相连滚动的代码
- 请问,怎么获得文本域TextArea的光标位置,并在相应光标位置处插入一段string,谢谢
- 网页内容搜索!
height=25 id=DTP1 name=DTP1 style="HEIGHT: 25px; WIDTH: 100px" width=150>
<PARAM NAME="LPKPath" VALUE="/ActiveX/pubocx.lpk">
<PARAM NAME="_ExtentX" VALUE="2646">
<PARAM NAME="_ExtentY" VALUE="661">
<PARAM NAME="_Version" VALUE="393216">
<PARAM NAME="MousePointer" VALUE="0">
<PARAM NAME="Enabled" VALUE="1">
<PARAM NAME="OLEDropMode" VALUE="0">
<PARAM NAME="CalendarBackColor" VALUE="-2147483643">
<PARAM NAME="CalendarForeColor" VALUE="-2147483630">
<PARAM NAME="CalendarTitleBackColor" VALUE="-2147483647">
<PARAM NAME="CalendarTitleForeColor" VALUE="-2147483630">
<PARAM NAME="CalendarTrailingForeColor" VALUE="12632256">
<PARAM NAME="CheckBox" VALUE="0"><PARAM NAME="CustomFormat" VALUE="">
<PARAM NAME="DateIsNull" VALUE="0">
<PARAM NAME="Format" VALUE="662831105">
<PARAM NAME="UpDown" VALUE="0">
<PARAM NAME="CurrentDate" VALUE="36734">
<PARAM NAME="MaxDate" VALUE="2958465">
<PARAM NAME="MinDate" VALUE="-109205">
</OBJECT>
<input type=button value="get" onclick="alert((new Date(DTP1.value)).toLocaleDateString())">
height=25 id=DTP1 name=DTP1 style="HEIGHT: 25px; WIDTH: 100px" width=150>
<PARAM NAME="LPKPath" VALUE="/ActiveX/pubocx.lpk">
<PARAM NAME="_ExtentX" VALUE="2646">
<PARAM NAME="_ExtentY" VALUE="661">
<PARAM NAME="_Version" VALUE="393216">
<PARAM NAME="MousePointer" VALUE="0">
<PARAM NAME="Enabled" VALUE="1">
<PARAM NAME="OLEDropMode" VALUE="0">
<PARAM NAME="CalendarBackColor" VALUE="-2147483643">
<PARAM NAME="CalendarForeColor" VALUE="-2147483630">
<PARAM NAME="CalendarTitleBackColor" VALUE="-2147483647">
<PARAM NAME="CalendarTitleForeColor" VALUE="-2147483630">
<PARAM NAME="CalendarTrailingForeColor" VALUE="12632256">
<PARAM NAME="CheckBox" VALUE="0"><PARAM NAME="CustomFormat" VALUE="">
<PARAM NAME="DateIsNull" VALUE="0">
<PARAM NAME="Format" VALUE="662831105">
<PARAM NAME="UpDown" VALUE="0">
<PARAM NAME="CurrentDate" VALUE="36734">
<PARAM NAME="MaxDate" VALUE="2958465">
<PARAM NAME="MinDate" VALUE="-109205">
</OBJECT>
<input type=button value="get" onclick="a=new Date(document.all.DTP1.value);alert(a.getYear() + '年'+(a.getMonth()+1)+'月'+a.getDate()+'日')">
function chkDate(y,m,d){
Calendar.Year=y;
Calendar.Month=m;
Calendar.Day=d;
if (Calendar.Year==y && Calendar.Month==m && Calendar.Day==d){
return(true);
}
else{
return(false);
}
}