In JavaScript in IE, you can use global window. event anywhere to obtain the Event triggered by JavaScript, and get objects such as KeyCode and EventSourceElement. There is no such object in FireFox. If function nested calls exist, the Event must be
There are many ways to implement the tab page, some of which are implemented using pure CSS, and most others are implemented based on jquery, mootools, or other js frameworks. Since there are so many plug-ins that can be used out of the box, how
JavascriptgetElementByTagName: Set the hyperlink color to blue when you hover the mouse over it. Use of javascript getElementByTagName _ javascript skills
Use of javascript getElementByTagName
Jquery implements the code for rolling up and down advertisements. You can test the code by yourself. You need to load the jquery class library.
The Code is as follows:
(Function ($ ){$. Fn. extend ({RollList: function (option ){Option = $. extend
Some common code that prohibits the copying of web pages, but the method of cracking is not easy. I will not talk about it here. You can refer to the previous articles published on this site.
1. Disable right-click and copyMethod 1:
Add the
After using javascript to create a cover layer (div), if you click Close to use innerHTML or outerHTML
For example:
The Code is as follows:
Var crtDIV = document. getElementById ('pidname ');If (crtDIV ){CrtDIV. parentNode. removeChild (crtDIV
I want to get "windows". How can I write a regular expression? Window. location. pathname
For example:
/Windows/location/page.html
I want to get "windows". How can I write a regular expression?
Script var a = "/windows/location/page.html"; var
Although I have written a lot of javascirpt scripts before, but I am not very familiar with the colon: I feel that I am new and familiar with it, so I can't make it again, I don't want to figure out the problem (:), so I searched the internet and
Case sensitivity of attribute names, such as attribute window. screen. if the height attribute is written as not all lowercase letters, such as window. screen. height or window. screen. in IE6 and IE7, the values (IE6 and IE7 are case insensitive)
There are many methods to obtain the number of Javascript string Bytes:
First: (use the charCodeAt method of the String object)
The Code is as follows:
String. prototype. getBytesLength = function (){Var length = 0;For (I = 0; I ICode = this.
When Using Ajax to transmit data, Transcoding of the transmitted characters is indispensable. My implementation method is to save the data to be transferred to a jsBean and put jsBean into the Array, the jsBean in Array is decomposed when
The Demo code is very good.
Excel-like table presentation //////////////// /// // variable-initialization /////////// //// // var toBeColor = "# F8F9FC "; var backColor = "# FFFFFF"; var tableId = "tbData"; var table; var tbody; var
When passing a Chinese string through AJAX, the Chinese string must be encoded as unicode. Generally, the built-in function escape () of JS is used (). however, a better function is found to determine the function for converting Chinese characters
Firefox does not have outerHTML. Using the following method to reduce the number of DOM can accelerate the construction of DOM Tree and render tree during page parsing by the browser, thus improving the page performance. For this reason, we can save
In this section, we will continue to learn about Jquery: document processing. Document processing mainly involves adding, deleting, copying, and replacing HTML elements. It mainly includes the following parts: (1) Internal insertion (2) External
Sometimes we need to add the updated information to the red. In general, we need to modify the cms system source code to increase the amount of code, so you can refer to the following code. The following code uses js to search for the span tag under
It is mainly used to display images during the process of uploading images, so that you can check whether there are any distant errors in the images and improve the accuracy rate.
ScriptLanguage="Javascript"Type="Text/javascript">Var allowExt =
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