一人之下漫画在线阅读:谁懂JavaScript,能给个日历控件吗?拜谢!
来源:百度文库 编辑:中科新闻网 时间:2024/05/21 23:42:21
参考答案:知不足,然后能自反也;知困,然后能自强也。(《礼记》)
用e龙的月历,比较好。
index.html文件为下面:
开始:
<script type="text/javascript" src="options1.js"></script>
<script type="text/javascript" src="calendar.js" ></script>
<script type="text/javascript" src="index.js"></script>
<form name="search" action="" method="get">
<li>入住日期:<input name="CheckInDate" type="text" id="CheckInDate" size="10" /><a href="#" id="CheckInDateAnchor" target="_self"><img src="http://resource.elong.com/img/index_050808/in4_05.gif" align="middle" id="newcalendar1" alt=""/></a>
</li>
</form>
<script type="text/javascript">
addTimeClick("CheckInDate","newcalendar1","CheckInDate","newcalendar2","CheckOutDate");
addTimeClick("CheckInDateAnchor","newcalendar1","CheckInDate","newcalendar2","CheckOutDate");
addTimeClick("CheckOutDate","newcalendar2","CheckOutDate","","");
addTimeClick("CheckOutDateAnchor","newcalendar2","CheckOutDate","","");
</script>
结速。
其中:(注意好象用FlashGet才可以下载)
options1.js下载地址为:
http://resource.elong.com/js/index_050808/options1.js
calendar.js下载地址为:
http://resource.elong.com/js/index_050808/calendar.js
index.js下载地址为:
http://resource.elong.com/js/index_050808/index.js
asp的你要不要?QQ:28746841