For example, you can disable right-click, hide text in the search text box, open a link in a new window, check the browser, pre-load the image, switch the page style, set the height of all columns, dynamically control the page font size, and obtain
If you have the foundation for programming, it is easy to learn Javascript. If you do not have the foundation for programming, don't worry. We will explain each line of code for you.Copy codeThe Code is as follows: We will skip the HTML section. If
Ie
2. TT
3. maxthon
By default, chrome and firefox are installed without page blocking, and some corresponding plug-ins are available.
During the test, the page cannot be tested locally. You need to place the page on the http server.1.
HTML codeCopy codeThe Code is as follows: 1 2 3 first second third JqueryCopy codeThe Code is as follows:$ (). PPXTabs ({nav: '. tab li', nav_txt:'. tab_box div ', selectedClass: 'selected', hoverClass: 'hover '}); Jquery. PPXTabs. js CodeCopy
First, add a Class to the link 'back to top: Back to Top tasks and then add the following jQuery code. You can put this line of code before or elsewhere. Of course, you also need to include the jQuery library file in . (Copy codeThe Code is as
Some of them are no longer accessible, maybe the file is removed or blocked. There is nothing special to say about what we share. We only need to thank the people who have shared it with us.Remind everyone to pay attention to the jQuery package
First, we need to know the two levels of DOM mode: DOM0 and DOM2.The DOM0-level event handler declares the function by assigning the reference of the function instance to the attribute of the DOM element.Declare a DOM 0th-level event handlerCopy
At that time, I copied a few words from jquery's official website. Later, I found that it was not very useful and slow. Khan ~~~ As a result, we didn't figure out how to save the sorting results until this morning. Now, the company has to do such a
Referring to Dave Shea's excellent summary, Paul Young proposed a new method after analyzing the advantages and disadvantages of all existing methods, and name it The StateMethod. This article will detail The principle of this method:
This method
Ultimate goal: to facilitate sorting.Specific implementation: After clicking the button, you can enter the number of the sorted numbers. The database is automatically updated after removal.1. If I want to use this function with , I need to monitor
If the page contains a valid DOCTYPE declaration, it is displayed in strict mode.If the page does not have a DOCTYPE declaration or there is no valid DOCTYPE declaration, it is displayed in compatibility mode.The following describes the differences
JQuery operations on non-set array Functions$. Trim (value)This function is simple. Remove any leading or trailing white spaces from the value. The white space character is any character that matches the Javascript Regular Expression \ s. Including
Window objectThe window object indicates the entire browser window. The window can also be used to move or adjust the size of the browser it represents.I. window operations Window. moveBy (dx, dy)Move the browser window horizontally to dx pixels and
1. Refresh the frameworkCopy codeThe Code is as follows:Onload = function (){Try{Parent. Link. location. reload ();}Catch (e){}} 2. Get the URL and process the characters Copy codeThe Code is as follows:Var url = parent. frames ["right"]. location.
First, we will briefly introduce some methods for attributes:Attribute enumeration:For/in loops are used to traverse object attributes. For exampleCopy codeThe Code is as follows:Var obj = {Name: 'obj1 ',Age: 20,Height: '20180101'}Var str = '';For
In the past, these things were clearly understood, but they could not be explained, nor did they go into depth. Today, when I read "enlightened JavaScript", I saw the author's description, and the "toilet" was opened.The excerpt is as follows. The
Sometimes js is used to get the server time. System. DateTime is usually used.The method is as follows:Copy codeThe Code is as follows: In fact, there is another way: using the javascript "runat =" server "attributeCodeCopy codeThe Code is as
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