Javascript
Code The most common syntax format is to define the function XXX () {/* code... */}. There are often many such function definitions. Function names are prone to conflicts, especially when multiple JS files are introduced. Therefore, it
title
Project 1
subclass 1
subclass 2
Project 1
project
The aboveCodeWhen you click a project or subclass, because the trigger event is the same and the parameters are the same, you can determine whether the user clicks "
In JavaScript, void is an operator that specifies to calculate an expression but does not return a value.
The format of the void operator is as follows:
1. javascript: void (expression)
2. javascript: void expression
Expression is a standard
get the true background color of the element by longbill div1 directly defines the background color through the DIV tag (#87 cefa) div2 defines the background color through the class name (# ff99dd) div3 uses ID to define the background color (# d8
| This operation starts with a meaningful return. Otherwise, the last expression is returned (not necessarily a Boolean value );
& The operation is like this: starting from the first, a meaningless return is returned; otherwise, the last
[Ctrl + A select all Note: If you need to introduce external JS, You need to refresh it to execute]
Only tested in IE browser. other browsers cannot guarantee this function.At last, I attached my favorite color table.
ArticleDirectory
Create a script for special words
Create a special script special text production the following results are displayed
[Ctrl + A select all Note: If you need to introduce external JS, You
simplified Chinese character conversion paste the content to be converted into the following input box, click the button paste the content you want to convert here!
Reference Method on the same page:
1. Use ID:
Link1.href
2. Use name:
Document. All. link1.href
3. Use sourseindex:
Document. All (4). href // note that there are HTML, Head, title, and body in front, so it is 4
4. Use a link set:
The most common one is for (Initial Value of the loop variable; cyclic condition; Incremental Value) {statement ;}
Example
[Ctrl + A select all Note: If you need to introduce external JS, You need to refresh it to execute]
Other usage(1)
I am writing this here, which is also a problem encountered when writing a point in JS. It is a note. I didn't expect a meal to be "approved" by Hax, but it was justified. after all, this content is not painful.
In general, we use functions to
(Steamcms) Fish template: toplist tag and JavaScript
First, you can refer to the standard template label description of steamcms to learn about the toplist tag and its attributes.
Add a number before the record in the top list (of course, it can
Function looprun (sfuncloop, sfuncend, ndelay ){
// Writen by http://fengyan.iecn.cn
// Sfuncloop> string type, JavaScript Functions or statements that need to be executed repeatedly (use; To separate multiple functions or statements)// Sfuncend>
Use two div nested link text, the outermost div sets overflow: hidden, and uses js to dynamically control its width to achieve stretching and shrinking.
demo of news wheel display
Copy codeThe Code is as follows: random xianshi:
[
]
Shi. jsCopy codeThe Code is as follows: function text (){};
Text = new text ();Number = 0;
// TextArrayText [number ++] = "the mind is positive, the body is positive, the eye is positive, and
In the simple correction version, replacement with functions cannot be completed for the moment, and normal replacement is now available.
Http://www.jb51.net/tools/regex_test.htm
a regular expression is a regular character (for example, a
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