The result is as follows: I found that my shortest time is 0.06 seconds. I checked everyone's keyboard and reaction.
Test
Code :
. 00 Start With space key (triggered upon release), stop (triggered when pressed), Reset (record the
Problem:
There are a lot of operations on the page. We need to display the results of each operation. Here we have a question: how should we display different results? During the presentation process, we also need to consider the increasing number
CopyCodeThe Code is as follows: var chkbox = Document. createelement ("input ");
Chkbox. type = "checkbox ";
Chkbox. Checked = true;
Lnk. parentnode. appendchild (chkbox );
In IE7, the generated checkbox cannot be correctly checked.The reason is
CopyCode The Code is as follows: // obtain the element position
Function getleft (OBJ ){
If (OBJ = NULL)
Return NULL;
VaR mendingobj = OBJ;
VaR mendingleft = mendingobj. offsetleft;
While (mendingobj! = NULL & mendingobj. offsetparent! = NULL &
CopyCodeThe Code is as follows: var oldtime = new date (). gettime ();
VaR STR = [];
For (I = 0; I {
Str. Push ('abcabcabcabcabcabcabcabcabcabcabcabcabc ');
}
VaR newtime = new date (). gettime ();
VaR jointime = (newtime-oldtime );
VaR
Html
Code :
Copy code The Code is as follows:
JavaScript and cookie (1)
cookiemessage:
valid-time: Please input a integer.
JS Code:Copy codeThe Code is as follows: /** Set a common cookie function. Name is a required
This is part of the implementation structure pseudo-class type-of-type
Code :
[Ctrl + A select all Note: If you need to introduce external JS, You need to refresh it to execute]
If the effect is not high, ask for help from the carefree
script home www.jb51.net Baidu www.baidu.com server software s.jb51.net // use an array to obtain the table value function getrowtext () {var arr = new array (); var COUNT = 0; for (VAR I = 0; I
The setTimeout method is timed.
Program That is, after what time. After the job is finished, pull it down.
The setinterval method indicates that an operation is executed repeatedly at a certain interval.
If you use setTimeout to implement the
Window. Open usage and parameter description
I. Windows. open () support environment:
Javascript1.0 +/jscript1.0 +/nav2 +/ie3 +/opera3 +
Ii. Basic Syntax:
Window. Open (pageurl, name, parameters)
Where:
Pageurl is the sub-window path
Name is the
After the Dom is loaded, it is not understood, and based on some method logic on the Internet, so I went to see jquery
Source code Research (ready function)
Article Write as follows
Code (Details already exist)
Copy code The Code is as follows:
CopyCode The Code is as follows:
How is it? I will score myself for a total of 22 questions. How many are you entitled?I don't know how to explain these questions. I just want you to think and explore the questions you have made wrong.Let's
JSON rules are simple: the object is an unordered set of 'name/value' pairs. An object starts with "{" (left parenthesis) and ends with "}" (right Parenthesis. Each "name" is followed by a ":" (colon); "," (comma) is used to separate the "name/value"
Create random number
① Since JavaScript was generated, many browsers have built-in random number generation methods. For example:
VaR number = math. Random ();
This method generates a floating point number between 0 and 1.
② Based on Time, random
2d-position allows you to move an absolute position object by dragging it.Absoluteposition: Set the position attribute of the element to "absolute" (absolute ).Set backcolor or obtain the background color of the selected area.Blockdirltr is not
1: javascript case sensitive
2: Each JavaScript statement must end with ";", which is the same as the C language.
3: Output: Document. Write ("string") ---> You can also output the corresponding HTML Tag
4: change the format color document. bgcolor =
FCKeditor offers a complete javascript API so you can interact with it once the editor is loaded and running.FCKeditor provides a complete javascript API (Application public interface) that you can use to process the fck editor as long as it is
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