Because we need to use this item, we are very shameless to pick up people and collect it in our blog ~ & Lt ;! DOCTYPEhtml & gt; & lt; html & gt; & lt; head & gt; & lt; metahttp-equiv & quot; Content-Type & quot; content & quot; charsetutf-8 & quot;/
Sometimes we need to prevent the page with the backspace key from moving back. Generally, it is best not to use this function because it is not good for UX. Below are Js fragments tested in IE9 and Firebox10.0.2: $ (document). keydown (function (e) {
If you get the current domain name hostwindow. location. host; urldocument. domain; urlwindow. location. href; obtain the complete url path: Use the following code to complete the verification result: & lt; tablewidth100 %
Hide and show hide the button above the section to control the display and disappearance of the Section. This special effect is achieved through JavaScript and HTMLDOM. The Code is as follows: JavaScript code: & lt; scripttype & quot;
& Lt ;! DOCTYPEhtmlPUBLIC & quot;-// W3C // DTDXHTML1.0Transitional // EN & quot; http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Use the DOM method to upload multiple attachments to the client
Using getElementById () and getElementsByTagName () together, sometimes we may not want to select all paragraphs in the webpage, but the paragraphs (or other elements) of a specific part ). In fact, we can use the above two functions for
DOM node information each DOM node stores some information about this node. Let's see how to access this information. Similar to nodeName, nodeValue, and nodeType, nodeName indicates the node name, nodeValue indicates the node value, and nodeType
Previous: Workshop. (Set an identification number to 0, write a few seconds to identify + 1, the execution of the switching effect of the function, however... SyntaxHighlighte previous: http://www.2cto.com/kf/201203/121796.html)
Next, this article
Not to mention nonsense. Directly post code and add comments, which can be used anywhere. It is convenient and open-source. If you do not know anything, please leave a message .. & Lt ;! DOCTYPEhtmlPUBLIC & quot;-// W3C // DTDXHTML1.0Transitional //
Many websites have such a star scoring effect. Today, we will look at how js can be used to achieve the scoring effect. Effect description 1. When the mouse moves up, the stars light up and the text below is displayed. When the mouse moves out, the
1. Go to the c:/WINDOWS/system32 directory and re-register shell32.dll and WSHom. ocx, scrrun. dll2 and restart the computer. Note: The registration operation can be performed directly at start-Run. Run the following statement
Let's first come to a final implementation: the main implementation idea is to use the JavaScript built-in object Date to get the current system time, and use the DOM method setInterval (code, time) to achieve real-time refresh. 1. simple Html page 1
First, describe the usage of & quot; dateObject. setFullYear (year, month, day) & quot;: it is mainly used to set the year and returns the millisecond of the adjusted date. If there are two input boxes, you need to enter the time, from when to when (
In the Getting Started with UglifyJS, we mainly recorded the installation and configuration of UglifyJS. At the end of this article, a simple command is used in the command line to compress a JS file. This article compresses JS files
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