|
以下是代码片段: <html>
<SCRIPT> function showcalendar(obj) { dv=window.showModalDialog("images/calendar.htm","44","center:1;help:no;status:no;dialogHeight:246px;dialogWidth:216px;scroll:no") if (dv) {if (dv=="null") obj.value='';else obj.value=dv;} } </SCRIPT> </head>
<body>
<p>直接点击文本框</p> <p> </p> <INPUT class=input style="CURSOR: hand" onclick=showcalendar(this,this) readOnly size=25 name=date1> <p> </p> <INPUT class=input style="CURSOR: hand" onclick=showcalendar(this,this) readOnly size=25 name=date2> </body> </html> |