First, paste the javascript code I wrote. You can refer to it later.
The Code is as follows:
Date. prototype. dateAdd = function (interval, number){Var d = this;Var k = {'y': 'fullyear ', 'q': 'month', 'M': 'month', 'w': 'date', 'D ': 'date', 'H':
Recently, I have been studying JQUERY's CHECKBOX. I have already introduced the full selection and cancellation of the CHECKBOX. Now I will continue to share with you the third method. At the same time, I can implement the inverse selection and
The start date of the current week, that is, the date from Sunday to Saturday.
script printWeek (); script [Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]
I will share some of my experiences with jacascript over the past few days. It may not be very comprehensive, but it should be suitable for some people who want to learn the basics. In the future, I will continue to develop the php language basics
When TextStraem is implemented, the code used to identify the file encoding is VBS. However, in JScript, there are no functions such as ASC and binary data cannot be processed, therefore, a special method is required to obtain the encoding
Use js to call flash and remove code for the virtual border effect
The Code is as follows:
Function tmh _ make_ad_fodder (src, width, height){Src = src. replace ("","");Var TEMP_IMAGE = '';Var TEMP_FLASH ='+ 'Codebase = "http://download.macromedia.
3D effects produced by jsvml
rotate left pause rotation right rotation script var q = 40; var r = (q * 3.1415926) /180 var v = new Array () var l = new Array () v [0] = "0,400, 0" v [1] = "100,350, 15 "v [2] =" 200,400, 0 "v [3]
The uniq method of the JavaScript Array adds a prototype method to the local object of the Array. It is used to delete repeated entries in the Array entries (multiple entries may exist ), the returned value is a new array containing the deleted
The Beijing Olympics official website uses flash for packaging and downloading. You can change the image at will. A brief description is provided.
Favorite download by yourself
Very good slide picture switching effect, implemented using flash +
JavaScript Cookies use Cookies. We already know that there is a cookie attribute in the document Object. But what is Cookie? "Some websites store some information on your hard disk with small text files, which are called cookies ." -- MSIE help. In
Common JavaScript form verification set
JavaScript Form Verification age
The JavaScript form verifies the age and determines whether an input value conforms to the age by using a regular expression.
// Check the age
Function isAge (str ){
Var
You can see what JSON is and what JSON is.
JSON (Javascript Object Notation) is a lightweight data exchange format. Easy to read and write. It is also easy to parse and generate machines. It is based on a subset of Javascript Programming Language,
Uninterrupted rolling JS packaging Class, basically all the rolling effects can be achieved, too strong/* MSClass (Class Of Marquee Scroll General uninterrupted rolling JS encapsulation Class) Ver 1.6 *\
Production Time: (Ver 0.5)
Release date:
A simple bug that occurs when the flash method is called by JS conforming to web standards is updated by Microsoft XP. It means that the flash of pages inserted in the traditional webpage creation mode cannot be browsed normally, when the page is
Solve the problem of using window. setTimeout () & amp; window. setInterval () and passing parameters! When using JScript, we sometimes need to execute a method at intervals, for example, to generate webpage UI animation effects. This is often the
The compatibility of dom and xml node access in javascript recently solved the problem of browser compatibility. With the help of our predecessors, I made some progress and wrote some code below, I think it will be more useful
The Code is as
Javascript implements the binary search method. Generally, binary code is used in int ..... in js, a-z may be used more flexibly, or pinyin may be used... or ......
However, it is worth pondering whether the following process is worthwhile to
This article describes how to use variables to save the arguments object in JS. It is of great reference value. For more information, see iterator) is an object that can access data sets in sequence. A typical API is the next method. This method is
This article mainly introduces the solution to the conflicts between Javascriptblur and click. during the development process, there are often conflicts between blur and click. Here are several examples and solutions, for more information about how
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service