Five quick tips:Only use the submit event on the element To bind an event handler to a form, bind only the submit event to the element instead of the click event to the submit button.March: This method is good, but when the company uses Web Flow
Have you ever seen those two things (in the title) being used in jQuery? Here is a simple example:Copy codeThe Code is as follows:$ ("A"). click (function (){$ ("Body"). append ($ (this). attr ("href "));Return false;} That code wocould append the
For more information about JSON objects, see wikipedia (http://zh.wikipedia.org/zh-cn/JSON) and the official website (http://www.json.org/json-zh.html ).
We often say that JavaScript supports json native, because json is a flexible application of
A few days ago I wrote the article category of the 3D spherical navigation on the left. Here I will make a simple record of the Implementation Details.Effect:The category title displays a 3D spherical effect. When you click the category title, a
Function getUrlArg (seekArg) {var url = location. href; // use a regular expression to separate the parameters between the question mark and the well number, such as from the http://www.jb51.net/testjs.htm? P = 1 & t = 1 & u = 1 # p = 1 & t = 1 & u =
Like http://www.youku.com/v1.0.0326/v/swf/up.swfThis is Youku's video upload option. It does not display non-video files through FLASH.The FLASH effect is generally described here.Copy codeThe Code is as follows:Import flash.net.
This is a batch check, a good idea show default picture exercises when no picture exists by a Hui Nan [Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]Use Javascript to determine whether an
Instructions for use:The program is relatively simple and the code is described. Here we will talk about how to use it.First, instantiate a Calendar and set parameters.Parameter description:Year: Year to be displayedMonth: The Month to be
A few days ago, when I suddenly wanted to create a lens effect, I suddenly thought of this effect. So I decided to find out the code of "treasure" in the past and I tried it.Preface:This program is mainly divided into three parts: layer drag and
Replace all of them with uppercase or lowercase letters, and then compare them.The first occurrence of a substring In the indexOf object.Use toLowerCase or toUpperCase [Ctrl + A select all Note: If you need to introduce external Js, You need to
Develop cross-browser JavaScript1. Differences between childNodes and ie in ff.Node (nodeType = 1) in ff are separated by textNode (nodeType = 3), whereas ie/op is not. content In ff, there are three childNodes in box1 and one in ie.2. Set the
In this way, if someone saves my webpage or uses iframe to include it, then the page will jump directly to my article page. The test was successful in the past, today, I saw a website that included my page. I think my homepage has nothing to do with
Key points: 1. Determine the browser version; 2. Modify the style sheet pathThe second point is often used when you modify webpage templates and Forum styles in real time. In fact, you can modify the style sheet path to load different style
Anyone who has used Prototype knows that there is a class called Template. The usage example is as follows:Copy codeThe Code is as follows:Var str = '# {what} may have gone, but there is a time of # {how }';Var object = {What: 'swallows ',How:
In general, the principle is very simple. The general process is: load the source image on the browser --> use a rectangular box to select a region on the source image and send the selected vertex coordinates and rectangular size to the server -->
This is a simple record.Create a nested node, let the outer node generate a scroll bar, and then use offsetWidth-clientWidth to obtain the scroll bar width. To avoid page jitter, you can set the outer element position: absolute and visibility:
I understand the working mechanism behind jQuery's DOM traversal, and can consciously avoid unnecessary repeated operations when writing code, thus improving the code performance. This article will start with jQuery's traversal mechanism and briefly
This article will share with you 40 practical jQuery plug-ins and tutorials.
Parallax Slider with jQuery
(Demo | download)
The jQuery slide plug-in with three-dimensional effects is cool!
Merging Image Boxes with jQuery
(Demo | download)
Very cool
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.