This is a very typical application of a background-position-x. The technical content is not high, but the idea is worth thinking about, proving that there are many things that can be adapted to DHTML. With the background map, if done more complex,
One, the variable declaration promotion
Hoisting English [' hɔɪstɪŋ] us [' hɔɪstɪŋ]
N. Lifting and lifting
V. To put the ... Hang Up, rise (hoist present participle)
First look at a chestnut
var cc = ' Hello ';
function foo () {
console.
Use JS to do time correction, get the time of the machine, there is a bug.
Use JS can also get to the server time, the principle is to use AJAX request, the return of the header information on the server side of the time information, get to it.
This method returns a string that indicates whether the reference string is given before or after the arrival or the same sort order.Grammar
String.localecompare (param)
The following are the details of the parameters:
PARAM:
What is a cookie?
Web browsers and servers communicate using the HTTP protocol, and HTTP is a stateless protocol. But for a commercial website it needs to keep the conversation information between different pages. For example, after multiple pages
JavaScript has two conversion methods for data types:
(i) converting an entire value from one type to another (called a basic data type conversion)
(ii) Extract the value of another type from one value and complete the conversion work
2.1 Select the appropriate editing tool for your own
1. Notepad 2. Ultra Edit32: Have the key liao coloring, AutoCorrect keyword 3.EditPlus: The browser embedded in its own window, you can browse the Web effect at any time.
4.1st JavaScript Editor,
Javascript Determines whether two IP is on the same network segment
The following script does not judge the IP format and only determines whether two IP is in the same network segment.
Example, JavaScript determines whether two IP is on the same
One, the effect shows
Ordinary three Div
Drag the mouse to select the effect
Select all of the DIV
This does not seem to see the effect, it does not matter, we have a magic gif animation, to a whole animation effect feel.
Second, code
Please note that the effect of example2.html under Firefox is not rounded in IE, because of compatibility.
And the trigger action too fast will cause each Li to increment two times to three times, this reason is not related to the class (Action.js)
Learning a programming language is nothing but two aspects: one is grammar, the other is data type. The syntax of Class C language is nothing more than if, while, for, function, arithmetic, and so on, and object-oriented language plus object.Grammar
1. Match pattern Mark:
The g------represents the global schema, rather than finding that the first match succeeds and ends immediately.
I-------indicates case-insensitive mode
M-----represents multiple-line matches, and the next line continues to
1. Prototype chain
Rarely used alone
Copy Code code as follows:
View Code
Defines the superclass class, which has an attribute property and a method Getsupervalue
Function Superclass () {
This.property = true;
}
Creation of arrays
First type:
Copy Code code as follows:
var colors = new Array ();
var colors = new Array (20);//Create an array containing 20 items
var colors = new Array ("Greg");//Create an array that contains 1 entries, the
Before you mention the above concepts, first of all, let's talk about the implied parameters of functions in javascript: arguments
Arguments
The object represents the function being executed and the arguments of the function that called
This article describes the JavaScript implementation to get picture size and image scaling method. Share to everyone for your reference, specific as follows:
Get picture size:
var originimage = new Image ();
function Getimagewidth (oimage) {
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.
One, Conditional branch statement : if
Basic format:
if () {}else if () {}else{}
Execution process:
Second, the circular statement
2.1 Pre-Test Loop statement: Evaluate the export condition before the code in the loop body is executed.
In JavaScript, arrays can be created using the array constructor, or created quickly using [], which is also the preferred method. An array is a prototype that inherits from object, and he has no special return value for TypeOf, and he only returns '
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