Today, let's take a look at some additional processing character functions provided by MooTools. This is only part of MooTools string processing and does not contain some mysterious functions (such as toCamelCase () and functions that process
Continue with the plug-in tutorial in our "More" library. Today we will learn about the most popular and popular plug-in, the accordion. Creating and configuring a basic accordion is simple, but you must carefully read the full text, because more
Today, let's take a look at how to operate styles through MooTools1.2 and the content we talked about earlier. This will give you great control over the UI. Welcome to the seventh lecture of this series of tutorials. Today, let's take a look at how
Multi-browser compatible prohibit right-click and prohibit copying code.
script home script script home is a professional website that collects various script learning materials, try to correct errors to create a high-quality script
The JS date validation regular asp date Formatting Function allows you to validate the date later. Javascript date validation regular
The Code is as follows:
Var pattern =/^ (1 [6-9] | [2-9] \ d) \ d {2})-(0? [1, 13578] | 1 [02])-(0? [1-9] | [12]
JQuery is a very good JS framework. We cannot avoid using this framework to implement some ajax effects when developing ajax projects. Among them, there is a load () method in this framework, this method is used to dynamically load files on the
In JavaScript, the most common method to define a function is to call a function statement. This statement is composed of function keywords and is also important for function reuse. 1. Define and call Functions
In JavaScript, the most common method
Many new users may encounter problems when using Javascript to verify whether single-dataset (radio) in a form is selected, because radio is very different from a common text box in obtaining values. this article describes a more common method to
Like a single sheet, many new users encounter problems when using Javascript to verify the value of the Multi-choice box (checkbox) in the form (form, the reason is that the checkbox and the common text box are very different when obtaining the
In front-end scripts, we often need to operate the style of page elements. For example, when switching tabs, add a style to the current tag. When switching to another tag, restore the style, this document describes how to add and remove className
We all know that in the DOM event model, there are two stages: capture and bubbling, while in the IE event model, there is only the bubble stage. The Event Response Function written in html is executed only in the bubble stage.
The Code is as
In browser events, some default actions are triggered. For example, when you click a link and perform the capture/bubble action, the default event of the link is triggered: Jump to the specified link address. In many cases, we need to change these
Some javascript code is very confusing. After constantly checking the information, I finally understood it! Haha! Method 1. js array definition and initialization
Define a one-dimensional array
Method 1:
Var _ TheArray = new Array); // defines _
Several times in JavaScript, The parseInt function converts the string to a number. The preceding problem occurs several times before, and then compare it with other methods. To perform client verification on the date format entered in the form, I
Rss reader is quite good. I think if you put a lot of RSS modules in the form of igoogle or dropthings to display the information you need to pay attention to every day, it will reduce the time for you to open your browser and enter the URL. Let's
The JavaScript code used to determine the strength of passwords is actually to determine some special symbols and string lengths.
The Code is as follows:
The dynamic style class encapsulates JS Code and dynamically changes the style. File Name StyleSheet. js
The Code is as follows:
// The CssRule class is returned by the StyleSheet. getRule method and is not directly created.Function CssRule (rule )
FFIE compatibility modification summary, you need to pay attention in the javascript compilation process in the future. 1. If an html Tag is set to $ (id) or getElementById, you must add the id attribute to the tag. IE and FF are compatible. For
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