Today, this article shares 9 great examples, and we recommend browsing in the Chrome browser for better results.
1. Untangle
Drag the blue dot, so that all the lines do not intersect, see how long you can untie? :)
2. Z Type
A space shooting
This example describes how JavaScript validates e-mail addresses and MX records. Share to everyone for your reference. as follows:?
1 2 3 4 5 6 7 8 9 10 11 12 13-14
Tests for a valid e-mail address and optionally Tests for valid MX
Detection of the existence of attributes in an object can be judged by several methods.
1. Use in keyword
This method can be used to determine whether an object's own properties and inherited properties exist.
The code is as follows:
var o={x:1};
The examples in this article describe the common tips for JavaScript. Share to everyone for your reference. The specific analysis is as follows:
Boolean expressions of one, True, and False
The following Boolean expression returns false:
Null
This article mainly introduces the JavaScript in the splice () method of using the detailed, is the basic knowledge of JS learning, need friends can refer to the
The splice () method of the JavaScript array changes the contents of the array, adds
Read the reading notes of high performance JavaScript
Several principles:
1, put the script on the bottom
in head, to ensure that before JS load, can load the normal display of the page.
inline and external files
This seed file is about
The JavaScript date.getutchours () method returns the time at the specified date according to the Universal Time. The value returned by getUTCHours is an integer between 0 and 23.
Grammar
1
Date.getutchours ()
The
This article introduces the number of occurrences of each character in a string in JS, and a friend in Need can refer to
The code is as follows:
Copy Code code as follows:
Function numinstring (str) { str=str.replace (//ig, ""); var
This article mainly introduces the JavaScript in the LastIndexOf () method of using the detailed, is the basic knowledge of JS learning, need friends can refer to the
This method calls a string object that returns the value specified by the index
This article is suitable for JavaScript entry-level contestants to read, the master can float over.Just a little gossip. In China, there is a phenomenon: no matter what words or concepts, there will always be some people to explain these things to
The problem arises when using Ajax. Yesterday's normal program, run today there are JavaScript system errors:-1072896658 of
hint at the Xx.innerhtml=xmlhttp.responsetext;
I feel like coding is confusing. Add at the top of the ASP code
No effect.
Javascript| Skills | page | page | adaptive
Sometimes, we may need to be like the new Yahoo mailbox, so that some data display blocks can be adapted to the size of the page. The fact is not difficult, but if the simple use of CSS control, often can
Script Script Description:
The first step: Add the following code to the area
var key = "";
function Makeentry () {
This. Name= "";
This. URL = "";
This. Desc = "";
This. Category = "";
This. Target = "";
return this;
}
function Makearray (n)
Script Script Description:
The first step: Add the following code to the area
var key = "";
function Makeentry ()
{
This. Name= "";
This. URL = "";
This. Desc = "";
return this;
}
function Makearray (n)
{
This.length = n;
for (var k = 1; k {
This[
frontpage|javascript| Disable | design | Web page
From animations to applications, JavaScript can be used in a variety of objects within a site. But some browsers do not support JavaScript, so sometimes visitors may not be able to display correctly
Control methods:
Each time you change the order or change the value, all the item in the current listbox is saved in the Hidden tab through a for () loop, and this hidden label can only be an HTML control (remember: You cannot use the server control
The example in this article describes how JavaScript gets and changes the input label Name property. Share to everyone for your reference. The implementation methods are as follows:
?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16-17
"#" contains a location information
The default anchor point is #top, which is the top of the page.and javascript:void (0) only represents a dead linkThis is why sometimes the page is very long to browse the link obviously is the # but beat to the
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