JavaScript guidelines This section describes other important things that need to be understood when JavaScript is used for encoding.
JavaScript is case sensitive.
A function named "myfunction" and a function named "myFunction" are two different
ArrayList class (enhanced edition) Author: moonlight
From: http://bbs.51js.com/thread-66469-1-1.html
The Code is as follows:
ScriptFunction ArrayList (){Var ins = Array. apply (this, arguments );Ins. constructor = arguments. callee;Ins. base =
Event handling in jQuery User Manual
Hover (Function, Function)The first function is triggered when the mouse moves over, and the second function is triggered when the mouse moves out.
Style:
Html code:
Sdf
JQuery code and Effects
$ (
Function
(){$
In Javascript, the Split method is rarely used in the past. I have found some materials today.
Usage: myArray = string. split ("| ")
Note: "|" indicates the feature character to be cut, string indicates the string to be cut, and myArray indicates
JScript built-in object Array element deletion method we know that JScript provides us with a built-in Array object Array. In addition to constructor, length, and prototype, the Array object also provides 13 methods by default: concat, join, pop,
I personally summarized some attributes and usage of String, Function, and Array.
The Code is as follows:
/* Array */Array. reverse () // sorts the Array in reverse order and changes it to a new Array.Array. sort () // sorts the Array by
Using JS to obtain the IP address and MAC of the IE client does not seem to be able to do B/S structure of the system, we often need to obtain some client information, such as IP and MAC, for identity authentication. In ASP. NET, it is easy to get
Javascript example tutorial (19) Use HoTMetal (5)
Use javascript in HoTMetal5. How to write a script to check the Last modified DateIn this tutorial, you will learn how to write a macro to check whether any program has used HoTMetaL to modify a
Obtain the offsetTop, offsetLeft (For: IE5 + FF1) offset between any Html element and body. [problem:
How can I get the offset distance between any Html element and the body element on the page?
The offsetTop and offsetLeft attributes have
In the element. appendChild (newNode) method, if newNode itself is a node in the Dom, The appendChild method is no longer executed.
It is an append operation, but a move operation. For example:
script function f () {document. body. appendChild
Using Javascript to manipulate cookies to implement the Shopping Cart program
The Code is as follows:
/*************************************** **************************************** **********************Name shopping cartVersion 1.1:Author
GoogleSuggest;-) The basic principle of js-based Dynamic drop-down menu is to create an iframe in the current window, and then list the prompts of related keywords in iframe, click in the list and place the selected items in the search box.
The
Document. getElementById details ① document. getElementById sometimes misses the name, which is said to be a BUG in IE;
Http://community.csdn.net/Expert/topic/4223/4223888.xml? Temp =. 1947443.
The page contains
Program code
One is name =
Summary of some js custom functions 1. dayin ()
Purpose: Create a page and print the content with the id "dayin" to solve the problem of printing part of the content on a page.
Usage: the content to be printed is included and then defined in a
The following small series will provide you with a js function implementation method to determine whether an array contains an element. I think this is quite good. Now I will share it with you and give you a reference. Let's take a look at it with
This article mainly introduces the digital countdown Effect of JS web pages. It is a very practical javascript countdown effect and has some reference value, if you need it, refer to the example in this article to describe the digital clock effect
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