Js achieves the non-interference shadow effect, which is simple and easy to use. For more information, see. Plug-ins (of course not known as plug-ins) Instructions for use:
1. Load files
The Code is as follows:
Before getting started, I would like to share with you the leading role of this article, the world-class javascript giants: DouglasCrockford, JohnResig, Peter-PaulKoch, NicolasC. Zakas. The name may be unfamiliar, but if you are still familiar with
Javascript displays the current system time code. You can refer to this article for more information. 1. InAdd the following code
The Code is as follows:
If you want to learn JavaScript basics, refer to the stringObject. charAt (index) method: return the characters at the specified index location.
StringObject. slice (start, [end]) and stringObject. the substring (start, [end]) method accepts two
If you do not use a class library or do not have your own class library, it is always advantageous to reserve some common functions.
(10) addEvent
The most popular version on the internet is Scott Andrew. It is said that the javascript community
The operation code of the javascriptoptions attribute set. In general, friends who need to control the option need to know the knowledge.
The Code is as follows:
Use the following code to access the options in the drop-down list:
The Code is
Js creates a floating div code, which is generally used to guide users in the following operations and multi-condition selection. Click it to display the details.
script // close div menu function MenuClose () {var MenuDiv = document.
Use Jquery to implement editable tables and use AJAX to submit the code to the server to modify data.
Below is the js Code:
The Code is as follows:
$ (Function () {// equivalent to adding an onload event to the body tag of the page$ (". Caname").
In fact, all I want to do is preview a large image, which is not complicated. Later, I found this in the original javascript materials: "JavaScript Webpage Design Example 300. chm", and found an example of a similar drop-down menu to modify it to
Js is similar to the implementation of tab, which has been released a lot before. You need to check it out. Pre-implementation effect: (Click different tabs to display different panel content)
I. js functions used:
The Code is as follows:
The text box "frequently" in the Iframe layer in IE6 intermittent mental disorder pop-up cannot obtain the input focus. The company's WEB project must be compatible with FF3, IE6/7/8. This article describes a BUG in IE6.
A self-encapsulated
For example, in a form element, we can use a handwritten function to clear the value of an element. The above is my personal summary, and the experts will bypass it. The following uses case type = "text" as an example:
The Code is as follows:
How to submit multiple Web forms simultaneously using Javascript
1. question from a netizen:
There are multiple forms in the web page. Each form corresponds to a type of data operation.
For example, a detailed resume information page is divided
1.
JQuery's selector mainly includes the basic selector sub-Selector feature selector position selector.
Basic Selector
$ ("Input"): select all elements that are input tags.
$ ("# Input1"): select the element whose id is input1.
$ (". Acss"): Select
I have encountered some character string garbled issues in my recent project. I have some experiences after the solution, which is recorded here.
Common garbled characters:
1. The client submits data to the backend. The parameter value is garbled,
Add the & lt; span & gt; Section tag to the text to be highlighted. Use the div of class "mask" as the mask layer so that the mask layer is placed above the text content (z-index attribute, use Jquery to dynamically add style classes to paragraphs.
Javascript mouse events are a huge family. For more information, see. There are eight common examples:
Mousedown: the mouse button is pressed.
Mouseup: the mouse button is released.
Click: click the mouse button.
Dblclick: the mouse button is
Using innerHTML instead of createElement to dynamically add webpage content has become a common concept. However, in business applications, the datagrid of big data is not uncommon. Even innerHTML is too stretched, so people have developed the
In jquery, you often need to obtain some form values. The following is a common code. For more information, see. Jquery operation form element code
/*
Assume that there is a button id = "save" in a form"
$ (Document). ready (function (){
$ ("# Save")
It mainly gets some information about page elements, so it is named window. js. If you want to learn it, refer to it.
The Code is as follows:
// Handle page exceptionsFunction Exception (){}// Common interface of page elementsFunction View (){//
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