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
See a very interesting topic today, the topic is described as follows:Based on the following information, how many Sundays fell on the first day of the month between January 1, 1901 and December 31, 2000?A) 1900.1.1 is Mondayb) January, March, May, July, August, October and December are 31 daysc) April, June, September and November are 30 daysD) February is 28 days, in leap years is 29 dayse) Year of A.D. can be divisible by 4 and can not be divisible by 100 is leap yearsf) can be directly divis
The specific production steps are as follows:
1. Start Dreamweaver MX, create a new HTML document, switch to Code view, and write JavaScript scripts.
(1) Insert the following JavaScript script in the
(2) Insert JavaScript script in HTML document body
2, switch to Design view, insert a layer in the page, and put the
Believe someone will select the date in the page, you need to know the date of the lunar calendar! If it is Java, in the background can be converted in a flash, but on the page, through JavaScript to convert, I do not know that there are no good ideas? Just, some time ago, a friend asked such a question, and then wrote a demo to her, but also OK! I hope I can help you in need, OK, directly on the code, do n
Usually only after work time can code, free to write a pure JavaScript version. The Calendar.js file is referenced, and then the ID of the input to be set to the Calendar control is set to calendar, and the input is changed to a calendaring control.
When referencing Calendar.js, be sure to add the defer attribute.
Calendar.js Source:
Calendarxp is a powerful JavaScript calendar selection plug-in that supports multiple browsers and official addresses.Http://www.calendarxp.net /.
I studied this topic for a while today. By the way, I finished it. In fact, it is not difficult to modify a JS file in Chinese. For convenience, I will paste the result of modifying the JS file.
//////// JS theme file for popcalendarxp 9.0 ///////
Address: http
* function is not complete, but also need to modify their own /* Calendar control temporarily supports only input*/! (function (Win) {var options = {inputdom:document.getElementById (' txttime '),//Operation input event: ' Focus ',/ /Trigger Mode format: ' YYYY-MM-DD ',//Format min: ' 1900-1-1 ', max: ' 2099-12-31 ', fn:null}; Extension options options.extend = function (options) {for (var o in options) {//console.log (Options.haso Wnpr
Often use Google's friends must be vivid memories of Google Calendar control it, then we also to achieve a, although the function and effect is not comparable, but the important thing is the process of implementation.
here is the HTML structure to implement:
First, the algorithm of the calendar query:
W=y+parseint (Y/4) +parseint (C/4) -2*c+parseint (26* (m+1)/10) +d-1;
The following is a detailed descript
Tip: you can modify some code before running Javascript beautiful and practical perpetual calendar codeBeautiful and practical perpetual calendar与之间-->与之间--> AD Year Lunar calendar year [year] I II 3. Thu V. Sat.
Learn JS recently. You write a simple calendar control when you are free. Do not know how others are realized. Written purely in his own mind,Writing is not good, but can play a role.Look at the effect first.Call when the code is a sentence. I wrote the JS file, the premise that the text box must have rlk= "RL" will be recognized by me as a text box to do the calendar control, I set it back to ReadOnlyJS co
Recommended JavaScript Calendar controls compatible with IE, FireFoxOriginal author: Cold Feather Maple (cityhunter172)
I. INTRODUCTION AND statement
This calendar control is the work of CSDN Netizen Kimsoft: http://blog.csdn.net/kimsoft/archive/2006/05/24/753225.aspx. The interface is refreshing, the pure script runs, realizes the date the Echo function, the mos
This is done after the effect. Not very beautiful, but also can be further improved. The HTML+CSS code is as follows: The JavaScript code is as follows: var nowdate=new Date (), Var nowyear=nowdate.getfullyear (), Var nowmonth=nowdate.getmonth () +1;//var month= (nowMonth There are many shortcomings in the code, please advise.Make a calendar with Html+css+javasc
First look at the effect chart, the effect is relatively simple:
Specific code:
JavaScript code
Determine if the leap year function isleapyear (year) {if (year%400==0) | | (year%4==0 year%100!=0))
{return true;
return false;
}//Calendar function Createcalendar (year,month,date) {var d=new date (); if (!year | | year
This article mainly introduces how to display calendar and weather in JS. It involves JavaScript Date and Time operations and is very simple and practical, for more information about how to display calendar and weather in JS, see the following example. We will share this with you for your reference. The details are as follows:
The running effect is as follows:
TheDHTML/JavaScript calendar
Http://www.dynarch.com/projects/calendar/
Supported browsers
» Internet Explorer 5.0 + for Windows
» Mozilla, Netscape 7.x, Mozilla Firefox (any platform)
» Other Gecko-based browsers (any platform)
» Konqueror 3.2 + for Linux and Apple Safari for Macintosh
» Opera 7 + (any platform)
Features
» The look is customiza
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 *
The effect is as follows:The javascript code is as follows:Copy codeThe Code is 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": new Date (),"GetDate
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.