简单好用的JS日期控件

原文地址:
http://www.cnblogs.com/xgpapa/archive/2007/08/07/846985.html

(我的下载地址)
https://files.cnblogs.com/focustea/setday.js

用的时候先在<head></head>插入

<SCRIPT src="Images/setday.js"></SCRIPT>
 然后输入框

<INPUT id="starttime2" onclick="setday(this)" size="12" name="starttime" runat="server">
 当鼠标放在输入框的时候,出现时间控件,选取时间后,JS自动的将时间控件的值赋给starttime2。由于给starttime2加了 runat="server"属性,所以在后台可以取starttime2的Value值。

提供的setday.js默认是UTF-8编码,也就是VS的默认编码,如果你的页面声明是GB等其他编码,请用一下高级保存,转换一下编码。

posted @ 2008-08-15 16:44  nestea  阅读(659)  评论(0编辑  收藏  举报