Because the requirement is dynamic, I thought it should be a location change. I thought of JQuery I used before, tried all the effects in it, and finally chose animate customization, the Code is as follows:Copy codeThe Code is as follows:
Simple Table:Copy codeThe Code is as follows: Tested:Copy codeThe Code is as follows:Var td = document. getElementById ("TEST ");Alert (td. childNodes. length); the result is 4 I was puzzled. After reading the relevant materials, I found that in JS,
Implemented functions: Move, pause, resume, and stop.Unimplemented functions: the unit conversion cannot be achieved, and the color gradient cannot be achieved (there are still many functions to be improved ...)The usage in the Code is as
Compatible with the text lines of various browsersCopy codeThe Code is as follows:(Function ($ ){$. Fn. extend ({RollTitle: function (opt, callback ){If (! Opt) var opt = {};Var _ this = this;_ This. timer = null;_ This. lineH = _ this. find ("li:
Copy codeThe Code is as follows: simplified and most powerful JS mask layer in history, supporting ie firefox jQuery mask layer click here to view the effect of the JS mask layer close
The Code is as follows:Copy codeThe Code is as follows: Note: This BUG has been discovered before. It is only proposed again here. For more details, refer to the following article:By default, the background image is not cached in IE6. Every time
I am not very familiar with the background, so here we have made a way for users to input parameters themselves to simulate the process of reading parameters from the background.Copy codeThe Code is as follows: user level online time:
Use a js jump by clicking a button. The statement is simple:During the test, it was found that it could be used in IE, while firefox could not. So I added a window in front of the location, which is changed:Onclick = "window. location. href ('HTTP: /
// Obtain the true and final CSS style attribute value functions of the elementFunction getStyle (elem, name ){If (elem. style [name]) {Return elem. style [name];} Else if (elem. currentStyle ){Return elem. currentStyle [name];} Else if (document.
Previously, the Clip attribute was used to splice up and down two half different colors of text.Colorful gradient words, compatible with all mainstream browsers.Only the colorful () function is really useful in page JS:Copy codeThe Code is as
1. Windows. event compatible scripts2. Shield Form submission events3. Obtain the event Source4. Add event compatibility5. How to register innerText in Firefox6. Length7. Child controls under the parent Control8. XmlHttp1. Windows. event compatible
1. About prototype: prototype is a feature of javascript, not the famous prototype framework: [Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]2. Regarding the variable scope, different processing
Therefore, today I want to tell you a good way: encrypt Windows 9x/2000 folders. By encrypting a folder, all files in the folder can be protected. The result is that when you double-click to enter the folder, the system prompts you to enter the
Consider the following codeIf (node. nextSibling. className = ...){...}If node or node. nextSibling is null, an error is returned ). Therefore, the common solution code isIf (node) & (next = node. nextSibling )&&...){...}Then, when multiple
This program can be used to implement many common animation effects, including size conversion, location conversion, and fade-in and fade-out.Program Description: The principle of gradient effect is to use the timer to continuously set the value. If
1. Starting from $$ Should be familiar with prototype,Prototype: var element = $ ('eleid ')Jquery: var element = $ ('# eleId ')DOM: var element = document. getElementById ('eleid ')The above three options are equivalent. Compared with prototype,
Var func = eval ("(function (){})");Alert (typeof func );--------The further problem is that the book does not fully explain the performance of anonymous and named functions in JScript and SpiderMonkey.Clear. Okay. This article will discuss this
Description: prevents events from bubbling to the DOM tree, that is, the event handler function on any previous element that is not triggered.Version added: 1.0Event. stopPropagation ()We can use event. isPropagationStopped () to determine whether
Interface + inheritance + code optimization ideasFirst, I would like to share with you a very good js programming tips to achieve great code sharing! Because many js libraries perform direct prototype extension on native objects, this is a bad habit,
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