Use this jQuery plug-inTo use this jQuery plug-in, you need to put $ (selector). boxy (); In document. ready. Replace "selector" with an appropriate selector expression, for example, "a [rel = boxy], form. with-confirmation ". This will add some
To be honest, I seldom pay attention to this issue and use cookies during the usual JS usage process. So this time I was stunned and couldn't say anything, finally, I can only honestly tell you that I am not very familiar with the operations on this
Online Demo http://demo.jb51.net/js/jquery_baobiao/index.html
Package download http://xiazai.jb51.net/201101/yuanma/jquery_baobiao.rar
Copy codeThe Code is as follows:
CSS style
Copy codeThe Code is as follows:
Html
Copy codeThe Code
For example, if it is 14 characters, 14 characters can be entered before the user input). When the user starts to input data, * is replaced in sequence, enter a few characters and replace them with a few characters. After the input, only the
I. pre-defined animation Functions 1. Show Hidden FunctionsShow (); // display elements (adding width, height, and opacity at the same time)Hide (); // hide ElementsExecute hide () to hide the interface element, which is equivalent to displaying:
Let's take a look at the effect.The code is simple, but the setTimeout () function of javascript is used.Html used"Copy codeThe Code is as follows: Src = "dg8.gif" name = "hr2"> Src = "dgc.gif" name = "c"> Src = "dg8.gif" name = "mn1"> Src =
The following describes some syntax highlighting plug-ins implemented by pure javascript.Http://www.webdesignbooth.com/9-useful-javascript-syntax-highlighting-scripts/.
1. SyntaxHighlighterI believe that this plug-in is widely used. It supports
] But in CSS level-2 menu, if the hyperlink in the level-1 menu is #, you only need to click the level-1 menu, the level-2 menu corresponding to this level-1 menu will always be displayed on the webpage and cannot be hidden. It is a small bug.Later
You can create a file on the visitor's hard disk through a browser, because I started to try it. I believe you can COPY the following code to an HTML file and run it again!Copy codeThe Code is as follows:Did you find that the Autoexec. bat file on
4. constructor + prototype directly assemble a class. The same constructor installs the same type in the group.The previous articles show that javascript writing classes are based on constructors and prototypes. In this case, we write a tool
9. YUI Writing MethodYUI 2.7.0 is introduced here. You only need to introduce yahoo. js. YUI introduces namespaces, similar to java packages. The following yahoo tool function package
YAHOO. namespace
YAHOO. lang
YAHOO. lang. hasOwnProperty
Copy codeThe Code is as follows: ') ">When the value extracted from bean is single quotes, a js error will be reported when loading the page. You can use the following method to solve the problem.Copy codeThe Code is as follows:"/>Function
Once and for all, do not duplicate the wheel :)1. Uniform placement of common methodsFor example, when registering a user, you often need to determine whether the characters in the text box are Chinese characters, English letters, numbers, or email
If the attribute height is written as not all lowercase letters, for example, window. screen. height or window. screen. in IE6 and IE7, the values (IE6 and IE7 are case insensitive) and the values are undefined (IE8 is case sensitive) in IE8.Example:
(Function ($) {}) (jQuery );
In fact, it is relatively simple to understand several concepts:
1. (). In JavaScript, () indicates executing a method, for example:
Function x (){
Alert ("xxx ");
}
Var a = x; // no call. a is a function.
Var a
1. What is a closure?
The official explanation is that a closure is an expression (usually a function) with many variables and an environment bound to these variables. Therefore, these variables are part of the expression.I believe that few people
Let's give it to you. They are indispensable for online listening. Because the external jquery. js file is used, please refresh the page after running the code! listen to songs Search: [Ctrl + A select all Note: If you need to
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.