87,909
社区成员
发帖
与我相关
我的任务
分享
<html>
<head>
<title>日期选择</title>
</head>
<body topmargin="0" leftmargin="0" scroll="no">
<table border="0" cellpadding="0" cellspacing="0" width="22">
<tr>
<td>
<OBJECT id="cal" style="LEFT: 0px; WIDTH: 200px; TOP: 0px; HEIGHT: 160px" type="text/x-scriptlet" height="14" width="14" data="calendar2.htm"></OBJECT>
</td>
</tr>
</table>
<script LANGUAGE="JavaScript" FOR="cal" EVENT="onscriptletevent(name,eventdata)">
dateChange(eventdata);
</script>
<script language="JavaScript">
window.onload = initWindow;
function initWindow() {
var temp;
var re;
var formatDate;
temp = window.dialogArguments;
re = /-/g;
formatDate = temp.replace(re,"/");
window.returnValue = formatDate;
cal.setDate(formatDate);
}
function dateChange(sValue) {
window.returnValue = sValue;
window.close();
}
</script>
</body>
</html>