Chinaunix首页 | 论坛 | 博客
  • 博客访问: 684014
  • 博文数量: 109
  • 博客积分: 2033
  • 博客等级: 大尉
  • 技术积分: 1454
  • 用 户 组: 普通用户
  • 注册时间: 2011-03-11 13:26
文章分类

全部博文(109)

文章存档

2012年(5)

2011年(104)

分类: 系统运维

2011-03-15 14:31:04

js日历控件,效果如下:
代码见附件 cal.rar   
调用:
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">

  2. <html xmlns="" >
  3. <head runat="server">
  4.     <title>无标题页</title>
  5.     <meta http-equiv="Content-Type" content="text/html; charset=gbk" />
  6.     <link href="cal.css" rel="stylesheet" type="text/css" />
  7.    
  8. </head>
  9. <body>
  10.     <form id="form1" runat="server">
  11.     <div id="append_parent"></div>
  12.     <div>
  13.     <input type="text" id="bday" name="bday" size="25" onclick="showcalendar(event, this)" onfocus="showcalendar(event, this);if(this.value=='0000-00-00')this.value=''" value="0000-00-00" tabindex="20" />
  14.     </div>
  15.      <script language="javascript" type="text/javascript" src="calendar.js" charset="gbk">
  16.     </script>
  17.     </form>
  18. </body>
  19. </html>
阅读(1762) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~