After analysis, found in the Web page is similar to the following code:
Analysis: Pay special attention to onerror, when the picture does not exist, will trigger OnError, and OnError for IMG To specify a nopic.gif picture. That is to say, the
1.window.showmodaldialog (Url,args,dialogattrs)Parameter description:
URL: Pop-up page address
AGRs: The main window to the dialog box parameters, can be any type (array can also)
Dialogattrs: Pop-up window style parameters
Modal dialog box
My first thought was that the label was cannot specify the starting position. Later on the internet to find a piece of code, it is implemented with pictures, I changed the picture to text after the smooth implementation of the function I want. The
(i) Gets the input cursor position at the start of the selected area of the textarea or uncheckedNon-IE browsers, such as Firefox,chrome, support SelectionStart to get the starting point of the selected area, and IE does not support the attribute,
One of the effects:
HTML code:
Copy Code code as follows:
click picture to produce effect
Plug-in code:
Copy Code code as follows:
; (function ($) {
var defaults = {
Ani:4,//animation effect. 1. Mosaics
In the jquery 1.8.x version, our check and uncheck actions for the checkbox are as follows:
Decide whether to select
Copy Code code as follows:
$ (' #checkbox '). Prop (' checked ')
To set the check and uncheck State:
Copy
jquery transforms the array into a string and then spreads it to the server (jquery converts the array to a string, formatted like 1,2,3, speed, REWR)
Copy Code code as follows:
Define (function (Require, exports, module) {
var
A few months ago in a project involved in the tree bar, and then saw a lot of plug-ins, feel a little trouble, so I wrote a, write a problem.
At that time, the project is through the tree column to control the permissions, the administrator can be
For the theme of jquery performance optimization, we must all know something. Here is my collection of information about jquery performance optimization, we can refer to reference.
First, selector performance optimization recommendations
1. Always
jquery is a very good JavaScript framework, and when we use jquery and never want to go back to JavaScript in the lengthy code, then the optimization of jquery is in front of us. So what should we do to optimize jquery?
1, using the latest version
jquery can achieve a progress bar effect, perhaps there is no practical role here, but has achieved a part of the principle of the progress bar, the front-end is how to achieve that progress effect.
Effect Demo:
Progress bar to achieve the source
Div:
Copy Code code as follows:
${pic.desc}
${pic.poi}
by ${pic.username}
Css:
Copy Code code as follows:
. pic_conent{
height:720px;/* This height will be JS get rid
Before the Internet to see this special effects, helpless at that time did not collect web site, resulting in the later did not know how this effect is achieved. Today deliberately on the internet for a while, really kung fu is not a conscientious,
Today, someone in the group suddenly asked me $ ("#MainContent_GridView1"). Closest ("tr"). Children ("Td:eq (1)"). Text () This statement does not find a value. I asked him to take a tr below eq (1) of TD's text or all. He said all the .... Then
Today, I helped my colleagues solve the problem of using jquery to get a dynamic mobile screen wide.
The problem is that when a co-worker uses a picture control that needs a full screen scrolling, you need to get the height of the screen to set
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