• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
雪飞夏日
博客园    首页    新随笔    联系   管理    订阅  订阅
日历JS代码
document.write(""); document.write(""); function document.onclick() { if(WebCalendar.eventSrc != window.event.srcElement) hiddenCalendar(); }
  1. // JScript 文件
  2. <!--
  3. document.write("<div id=meizzCalendarLayer style='position: absolute; z-index: 9999; width: 144px; height: 193px; display: none'>");
  4. document.write("<iframe name=meizzCalendarIframe scrolling=no frameborder=0 width=100% height=100%></iframe></div>");
  5. function document.onclick()
  6. {
  7.     if(WebCalendar.eventSrc != window.event.srcElement) hiddenCalendar();
  8. }
  9. var WebCalendar = new WebCalendar();
  10. function WebCalendar() //初始化日历的设置
  11. {
  12.     this.regInfo    = "WEB Calendar ver 3.0 关闭的快捷键:[Esc]";
  13.    
  14.     this.dayShow    = 38;                       //定义页面上要显示的天数,不能小于35,或大于39
  15.     this.daysMonth  = new Array(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);//定义1~12月的天数
  16.     this.day        = new Array(this.dayShow);  //定义日历展示用的数组
  17.     this.dayObj     = new Array(this.dayShow);  //定义日期展示控件数组
  18.     this.dateStyle  = null;                     //保存格式化后日期数组
  19.     this.objExport  = null;                     //日历回传的显示控件
  20.     this.eventSrc   = null;                     //日历显示的触发控件
  21.     this.inputDate  = null;                     //转化外的输入的日期(d/m/yyyy)
  22.     this.thisYear   = new Date().getFullYear(); //定义年的变量的初始值
  23.     this.thisMonth  = new Date().getMonth()+ 1; //定义月的变量的初始值
  24.     this.thisDay    = new Date().g
posted on 2009-07-27 14:32  雪飞夏日  阅读(329)  评论(0)    收藏  举报
刷新页面返回顶部
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3