Who's using these navigation?
Google is a big company, the world has Google's footprints, the Korean Google animation effect is very good, the blue ideal forum has been dug over, but JS wrote too much, then write one yourself? Okay, just do
Drag the mouse, position swap effect, mainly for Div, improve user experience and so on
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to perform]
From the "translation" of an article learned from the browser Javascript comparison. Personally, I am a "quasi" Javascript developer who is naturally more concerned about this. Sunspider's test face I still maintain the attitude of trust, as the
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to perform]
JS Judge Ie6/ie7/ff
Copy Code code as follows:
if (window. XMLHttpRequest) {//mozilla, safari,ie7
Alert (' Mozilla, Safari,ie7 ');
if (
The examples in this article describe the way JavaScript removes array duplicates based on objects. Share to everyone for your reference, specific as follows:
In JavaScript, removing an array of duplicates is a very common function and is often
Methods for strings in JAVASCRĪPT:
1, change the string case
String.touppercase ();
String.tolowercase ();
2. String search
The IndexOf () method is used to determine whether a short string is in another long string, and if so, returns the index of
IE only the mouse around key control on the next page
From classic IE and Firefox are compatible
[ctrl+a All selected note: If you need to introduce external JS need to refresh to perform]
Online search, looks good, remember a pen. //------------------------------------
Heavily based on the Quirksmode addevent contest winner, John Resig
Addevent
function Addevent (OBJ,TYPE,FN) {
if (Obj.addeventlistener) Obj.addeventlistener
To first save to local in the row
select a file
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to perform]
The following are the related commands:
Task
JavaScript: single-line annotation with//hehe; multiline annotation with/*hdhdhdh*/
In JavaScript, the definition variable uses the keyword VAR, the syntax is as follows: Var variable name, where the variable is programmatically, a variable is a
Let's take a look at the effect chart.
JavaScript Sample Code
Note: This allows for spacing between each line displayed in the browser, and can be set in style
* {
padding:0px;
margin:0px;
}
Summarize
The above
This represents the current object in relation to many other object-oriented languages. For example, this in Java is determined during compilation. In JavaScript, this is dynamic binding, or is called a run-time bound
This in Java
In the following
Let's start with a brief review of the HTML source code (test2.htm):
Copy Code code as follows:
2. Debugging, single step follow up
Parsing the jquery source code line by row is a pretty boring
Code:
function drag (t,p) {var point = p | | | null, TARGET = T | | null, RESULTX = 0, resulty = 0; (!point)? Point = target: ';
If there is no drag point, the drag point defaults to the entire drag element function GetPos (t) {var
With (object)
Statements
Parameters
Object
The new default object.
Statements
One or more statements, object is the default object for the statement.
Description
The With statement is typically used to shorten the amount of code that must be written
Objective
In the recent project has a requirement is to generate a two-dimensional code with parameters, consider the use of Java background generation back to the front-end display, after the Qrcode.js plug-in with jquery can be very good reality,
A simple implementation of Javascript JSON object and string conversion
function Obj2str (o) {
var r = [];
if (typeof o = = "string" | | o = = NULL) {return
o;
}
if (typeof o = = "Object") {
if (!o.sort) {
r[0]= "{" For
We know that using a prototype chain to implement inheritance is a goodway: Look at an example of a prototype chain inheritance.
function A () {
this.abc =;
}
A.PROTOTYPE.GETABC = function () {return
this.abc;
};
Function B ()
Rules of the game:
Click the box, the clicked Square and the adjacent square color, when all the blue squares become orange, complete the task, into the next level.
color flip color rollover game rule: &L
T;/h2> Click
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