- 1、本文档共18页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
基于jquery的javascript日历插件(JQuery JavaScript calendar plugin)
基于jquery的javascript日历插件(JQuery JavaScript calendar plugin)
/ *
* * Calendar
* * Author: ispiders
* * Date: 2012 / 12 / 12
QQ: 544712671 * *
* * 在引入本插件之前需要先引入jquery才能正常运行
* * 调用方法也很简单 var c = new calendar (# id); 参数为jq选择器, 次参数是指定日历将被放入的哪个元素
* * 第二个参数为可选布尔值, 指定是否启用自带的日历样式, 默认为启用, 如果需要自定义, 请参照代码中的style字符串
* /
(function (window)
{
Var = function (CSS selector, Calendar)
{
Calendar.includecss CSS = = = null? 1: CSS;
This.getdate calendar.today = ();
Calendar.weekarr = [Sun, Mon, TUE, Wed, Thu, Fri, SAT];
This.init (selector);
};
Calendar.fn = = {calendar.prototype
Builder: Calendar,
Init: Function (selector)
{
If (calendar.includecss)
{
Calendar.createstyle (calendar.stylesheet);
Calendar.includecss = 0;
};
This.selector = selector;
This.container = $(selector);
This.container.html (calendar.getmhtml ());
This.active calendar.today.y: = {and, M: calendar.today.m};
This.printmonth (calendar.today.y, calendar.today.m);
This.initbtn ();
},
Initbtn: Function ()
{
Var root = this;
$(.Prey this.selector +).Click (function ()
{
Root.prey ();
});
$(.Nexty this.selector +).Click (function ()
{
Root.nexty ();
});
$(.Prem this.selector +).Click (function ()
{
Root.prem ();
});
$(.Nextm this.selector +).Click (function ()
{
Root.nextm ();
});
},
GetDate: Function (Date)
{
Date = DATE = = null? New date (): date.constructor = = DATE? Date: new date ();
Var day = {};
Date.getfullyear day.y = ();
Day.m = date.getmonth (+ 1);
Date.getdate day.d = ();
Date.getday day.w = ();
Return Day;
},
Printmonth: Function (y, m)
{
Var root = this;
Calendar.weeknum firstwd = VAR (y, M, 1);
Calendar.mlength monthlength = VAR (y, m);
Var num;
Var D;
WEEKNUM var;
where pre = {y: y , m, m},: = {y: y , m, m};
if (m = = 1)
{
pre.y - = 1;
pre.m = 12;
next.m + = 1;
}
else if (m = = 12)
{
next.y + = 1;
next.m = 1;
pre.m - = 1;
}
else
{
next.m + = 1;
pre.m - = 1;
};
pre.len = calendar.mlength (pre.y, pre.m);
next.len = calendar.mlength (next.y, next.m);
this.active.y = y;
this.active.m = m;
$(this.selector + .
您可能关注的文档
- 国家规定的汉字笔顺规则(Chinese characters stroke order rules prescribed by the state).doc
- 国家规定的汉子笔顺规则(The state man orders).doc
- 国家企业培训师专业能力操作训练题(The national enterprise training professional ability to operate the training exercises).doc
- 国家计算机三级信息管理技术150题--计算机基础知识部分(精华)(National computer three level information management technology 150 questions - computer basic knowledge part (essence)).doc
- 国家计算机二级考试公共基础知识教材(National computer grade two examination of public basic knowledge teaching).doc
- 国家锅炉压力容器检查协会(nb) 简介(Boiler and Pressure Vessel Inspection Association (NB).).doc
- 国寿福禄鑫尊两全保险(分红型)投保示例(China Life Fu Lu Xin respect of endowment insurance (participating) for example).doc
- 国庆促销(National Day Promotion).doc
- 国有土地上房屋征收评估办法发布(全文)(Announcement on assessment of housing levy on state owned land (Quan Wen)).doc
- 国有企业精益薪酬管理初探管理(Lean management of salary management in state-owned enterprises).doc
- 基于vb语言的课件平台的设计思想与部分实现(Design ideas and VB language courseware platform based on).doc
- 基于xs128光电高级处理程序(Based on xs128 photoelectric advanced processing program).doc
- 基于一化平台的息化供公司系统建设(The construction of a platform for information system based on).doc
- 基于专题网站的小组协作学习模式的教改试验 - 广东工业大学邮件系统(The reform of Guangdong University of Technology test group collaborative model of e-mail system based on website).doc
- 基于企业中期战略的绩效指标体系设计(The design of performance index system of enterprise based on the medium-term strategy).doc
- 基于单片机的软件实现pid温度控制系统(Software implementation of PID temperature control system based on single chip microcomputer).doc
- 基于建构主义原真性理论对非物质文化遗产旅游开发的解读(Constructivism authenticity theoretical interpretation of the intangible cultural heritage tourism development based on).doc
- 基于建模推理与数据库的电力系统保护信息分析管理专家系统(Expert system for information analysis and management of power system protection based on modeling reasoning and database).doc
- 基于形态学和神经网络的车牌识别算法(The license plate recognition algorithm based on neural network and morphology).doc
- 基于成本领先战略的企业成本持续改进分析(Cost analysis of cost leading strategy of enterprise based on continuous improvement).doc
最近下载
- 大学英语六级词组大全.pdf
- 环境监测技能竞赛考试参考题库大全-中(多选题).pdf VIP
- rcwl-9610低成本分体开放式超声波测距芯片.pdf VIP
- (高清版)DB33∕T 2110.5-2018 实验动物 长爪沙鼠 第5部分:配合饲料营养成分.pdf VIP
- 大学物理(山东联盟)智慧树知到期末考试答案章节答案2024年青岛科技大学.docx VIP
- 《个人所得税培训》课件.ppt VIP
- 实验室生物安全管理体系内审表(2011).docx VIP
- 价值流分析.ppt.ppt VIP
- 小学三年级数学应用题大全(夺冠系列).docx VIP
- 一种SGH换热器以及垃圾发电系统.pdf VIP
文档评论(0)