, Datecell also allows you to pass in class, tag in a way that ' #id. class 'Format:format,//Date Format //mindate: "1900-01-01 00:00:00",//Minimum date //maxdate: "2099-12-31 23:59:59",//maximum dateIsinitval:false,//whether to initialize timeIstime:istime,//whether to turn on time selectionIsclear:true,//whether to display emptyFestivalfalse,//whether to show festivalszindex:999,//level height of the popup layerMarksNULL,//give a date a labelChoosefun:function(Val) {},//callbacks after t
Used to use the Calendar control is directly downloaded from the Internet a set of source code to use, the heart has been a stalk, is to write a calendar control themselves, recently just came to interest, time also allowed, so I groped to write a, the function is still perfect, the interface will do. Perhaps the most worth to say is that the input control inside the right to display a button, I was directl
Page calendar implemented by Javascript. For details about js learning, refer. :
CSS code:
The Code is as follows:
Script code:
The Code is as follows:
The effect is as follows:
The JavaScript code is as follows:
Copy Code code as follows:
var Calendar = function () {
var self = this;
Self.box = document.createelement ("div");
Self.head = document.createelement ("div");
Self.dateplace;
Self.body = document.createelement ("div");
Self.selectday;
Self.foot = document.createelement ("div");
Self.timeplace;
Self.dateinfo = {
"Now":
Effect Chart:
In fact, the way to learn is to search the way, will search to solve the problem faster.
Search method:
JavaScript Calendar Control site:jb51.net|
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to perform]
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.