I recently learned about Ajax and accidentally found that a series of articles on IBM developerWorks, "Mastering Ajax", not only explained the principles of Ajax, I also gave a detailed description of the principles of Web XML, server correspondence,
String segmentation analysis.Here is a get URL +? The JAVASCRIPT client solution with the QUESTRING parameter is equivalent to asp's request. querystring, PHP's $ _ GETFunction:
Then, we can call this function to obtain the
Difference between js setTimeout and setInterval, js setinterval js settimeout setinterval window. setinterval flash setintervalSetinterval parameter clearing setinterval asp setinterval as setinterval stop
Let's take a look at the example to
Several js functions for beginners,
Function JugeComment (myform )//Determines whether the user name is empty and sets it to focus{If (document. myform. UserName. value = ""){Alert ("your user name cannot be blank! ");Document. myform. UserName.
Code:
Var no = 8;
Var oTime = new Date ();
Var lastTime = oTime. getTime ();
Var x_sin, x_point, y_point;
Var x_length, x_increased, y_increased;
Var I, body_width = 932, body_height = 538;
Var lastTime = 0;
Var fallInterval = 2.4;
X_sin =
It's easy to use. js to determine the browser type
Function CheckBrowser () {var app = navigator. appName; var verStr = navigator. appVersion; if (app. indexOf ('netscape ')! =-1) {alert ("prompt: \ n you are using the Netscape browser, which may
Let's take a look at Google's Smart Tips,
First, we can see that there are three files. The test.htm file is the test file, and the css.css style list. google. js is the js processing file. I will write the code one by one and share it with
Javascript effect:A non-stop floating image changes the floating direction when it encounters any side of the browser, just like a ball. This effect is mainly used for website advertisements. The Code is as follows: Save the following code as an htm
1. Performance Comparison
If the first operation Number of & is false, false is directly returned without considering the second operation number. If | the first operation number is true, and returns true directly without considering the second
1 createElement (element)Create a specified tag name and create a new element node. The returned value is the reference pointer pointing to the new element node.Eg) var para = document. createElement ("p ");Document. body. appendChild (para );
2
When you click an image (image or table element) on the left of the table and move it to the center of the table:
Reference content is as follows:
The file is referenced as follows:
Reference content is as follows:
Xp style menu Effect
Reference
In the past, we only knew that ajax cross-origin can only be solved through the jsonp method. When uploading a video locally recently, we need to upload the video to Youku and youtube. If we use the post method directly, you can only see the upload
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