日期:2014-05-17 浏览次数:20519 次
<td><input type="text" name="bgntime" border="0" size="20" style="vertical-align:middle" onFocus="HS_setDate(this);" >
<div id='dateTime' onclick='event.cancelBubble=true' style="position:absolute;visibility:hidden;width:100px;height:100px;left=0px;top=0px;z-index:100;)">
<table class="cal_table" border='0'><tr><td>
<script> var c = new CalendarCalendar('c');document.write(c);</script>
</td></tr><tr><td valign="top" align="center">
<script> var m = new CalendarMinute('m');document.write(m);</script>
</td></tr></table><iframe src="javascript:false" style="height:300px;" class="menu_iframe"></iframe>
</div>
<SCRIPT event=onclick() for=document>hideCalendar()</SCRIPT>
</td>
function HS_setDate(inputObj){
var calenderObj = document.createElement("span");
calenderObj.innerHTML = HS_calender(new Date());
calenderObj.style.position = "absolute";
calenderObj.targetObj = inputObj;
inputObj.parentNode.insertBefore(calenderObj,inputObj.nextSibling);
}