大雀软件园

首页 软件下载 安卓市场 苹果市场 电脑游戏 安卓游戏 文章资讯 驱动下载
技术开发 网页设计 图形图象 数据库 网络媒体 网络安全 站长CLUB 操作系统 媒体动画 安卓相关
当前位置: 首页 -> 网页设计 -> 网页特效 -> 源码学习:一个简单的日历控件(9)

源码学习:一个简单的日历控件(9)

时间: 2021-07-31 作者:daque

  this.getmonthlen=function(theyear, themonth) {   themonth--;   var oneday = 1000 * 60 * 60 * 24;   var thismonth = new date(theyear, themonth, 1);   var nextmonth = new date(theyear, themonth + 1, 1);   var len = math.ceil((nextmonth.gettime() - thismonth.gettime())/oneday);   return len;  }  /************** 湮没日历 *********************/  this.hide=function(){   //calendar.cleareventkey();   calendar.calendarpad.style.display="none";  }  /************** 从这边发端 *********************/  this.setup=function(defaultdate){   calendar.addcalendarpad();   calendar.addcalendarboard();   calendar.setdefaultdate();  }  /************** 对于agetimecalendar *********************/  this.about=function(){   /*//alert("agetime calendar v1.0\n\nwww.agetime.com\n");   popleft = calendar.calendarpad.style.pixelleft+4;   poptop = calendar.calendarpad.style.pixeltop+25;   var popup = window.createpopup();   var popupbody = popup.document.body;   popupbody.style.csstext="border:solid 2 outset;font-size:9pt;background-color:#f0f0f0;";   var pophtml = "<span style='color:#336699;font-size:12pt;'><u>对于 agetimecalendar</u></span><br><br>";   pophtml+="本子: v1.0<br>日子: 2004-03-13";   popupbody.innerhtml=pophtml;   popup.show(popleft,poptop,240,136,document.body); */   var strabout = "about agetimecalendar\n\n";   strabout+="-\t: 对于\n";   strabout+="x\t: 湮没\n";   strabout+="<<\t: 上一年\n";   strabout+="<\t: 上一月\n";

热门阅览

最新排行

Copyright © 2019-2021 大雀软件园(www.daque.cn) All Rights Reserved.