javascript| Control | Calendar
Web Calendar control A lot of online, the function is also very powerful, but most of them do not support Firefox, their leisure wrote a, has the following characteristics:
Characteristics:
First, support Ie6,firefox
Second, support Chinese and English calendars, free to expand other languages
Third, when you encounter the Select D
This article mainly introduces you to the JavaScript simple Calendar effect implementation code. Interested friends can refer to the examples in this article to share with you.
Script document. write ("
"); Document. write ("
March 2016"); Document. write ("
"); Document. write ("
Day"); Document. write ("
I"); Document. write ("
II"); Document. wri
supports two modes: Dialog and Flat.
Click to download to view the example3. Tigra Calendar
Tigra Calendar is a cross-browser JavaScript Calendar control. The following is a pop-up method to select a date.
Click to download to view the example4. jQuery UI Datepicker
This date selection plug-in belongs to the jQuery UI
The following small series will bring you a simple Calendar effect on the day of js writing [Implementation Code ]. I think it is quite good. Now I want to share it with you and give you a reference. I have always wanted to use javascript to write a calendar, but I have not tried it because I have no idea. Recently, I saw a simple
These plug-ins enable Web developers to quickly implement a variety of fine calendar and time selection effects. 1. The coolest Calendar
The interface is very beautiful a date selection plug-in, there is a detailed use of the document, the latest version 1.5.
Click Download to view example 2. DatePicker
This date plugin supports radio, multiple selection and time interval selection, full-featured, with Dial
The calendar on the Xiaomi phone looks good, just try to do it with JavaScript,The core content is three parts, the Gregorian part--->script.js, the lunar part--->lunar.js, the weather part--->weather.js, although the calendar to add a weather seems not so appropriate, but it is practice, the way to write.Script.js mainly on the table to fill in the date informat
Front.
As a common application of the date object in JavaScript, the simple calendar is widely used, this article will explain the realization of the simple calendar in detail.
Effect Demo
HTML descriptionUse the two input of type=number as the input control for the year and month, so that you have the adjustment button in the Advanced browserArrange the wee
javascript| Control | calendar
The Calendar control using JS writing, from the http://expo.live.comof MS, the site sorting, hope for everyone useful.Two pictures required in this program:Http://expo.live.com/http://www.webjx.com/htmldata/2006-04-04/Images/leftArrow.gifHttp://expo.live.com/http://www.webjx.com/htmldata/2006-04-04/Images/rightArrow.gifGlobal.css
The original Published time: 2009-08-22--from my Baidu article [imported by moving tools]============calendar.js===============================How to use the Calendar control JS: event = "Return calendar (' ID to assign date ')";such as onclick= "return Calendar (' TextBox1 ')"Date format is 2009-8-8, not 2009-08-08var monthdnum=new Array (0,31,28,31,30,31,30,31,
I recently wrote a small calendar space. Put it up and save it.
Below is the js source code:
// JavaScript Document Calendar. js
Function Calendar (){This. lan_columns = new Array ("day", "one", "two", "three", "four", "five", "Six ");This. lan_column1 = "day ";
This. lan_column2 = "1 ";
This. lan_column3 = "2 ";
This.
is the current number plus the preceding white space is Idates.innerhtml+= ' ; }Else{dates.innerhtml+ = ' ; }} for(i=preall;i//spare parts of the complete form}Looking directly at the implementation of the code above should not be difficult to understand the principle of the implementation of the calendar, if not understood, we will learn the next JavaScript in the time-date related properties and methods.
, M, 1), //Get the first day of the month
DayOfWeek = Firstday.getday ( The first day of the week (return [0-6], 0 for Sunday, 1 for Monday, etc.)
days_per_month = new Array (y), 31, 30, 31, 30, 3 1, 31, 30, 31, 30, 31),//Create month array
So you can finally get the number of rows in the table you want for the month:
var str_nums = Math.ceil ((DayOfWeek + days_per_month[m))/7); Determine the number of rows required for a date table
Two. Print the
This article is an example of the JavaScript implementation of the Taobao Travel General Calendar component usage. Share to everyone for your reference.
Online Demo: http://demo.jb51.net/js/2015/trip-calendar/demo.html
PS: The following demo code, need to use Trip-calendar.js and trip-calendar.css files. Package Download Address
Specifically as follows:
I have written a lot of calendars, most of which are used for display. Recently, the time selector that can be accurate to seconds is used in the project, so I wrote one. The effect is as follows:
The javascript code is as follows:
The Code is as follows:
Var Calendar = function (){Var self = this;Self. box = document. createElement ("p ");Self. head = document. createElement ("p ");Self. datePlace;Self
, 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
Google's friends who often use google will surely remember the beautiful calendar controls of google, so we will also implement a process. Although the functions and effects are not comparable, what is important is the implementation process.The following is the html structure to be implemented::Let's talk about the calendar query algorithm:W = y + parseInt (y/4) + parseInt (c/4)-2 * c + parseInt (26 * (m +
1 DOCTYPE HTML>2 HTMLLang= "en">3 Head>4 MetaCharSet= "UTF-8">5 title>Documenttitle>6 style>7 Div{8 width:800px;9 margin:200px Auto;Ten Color:Orange; One text-align:Center; A Font:30px/30px "SimSun"; - } - style> the Head> - Body> - Div>Div> - + Script> - //Simulated calendar requirements: Every day to open the page can be displayed on a regular date and day of the week + //Step: Create a Date object of
The procedure is as follows:
1. Start Dreamweaver MX, create an HTML document, switch to the Code view, and write JavaScript scripts.
(1) Insert the following Javascript script in the HTML document
(2) Insert a Javascript script in the HTML document body
2. Switch to the design view, insert a layer in the page, and insert the
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.