Drag the idea of implementation has been updated, in order to prevent everyone into the misunderstanding, this article does not need to read too fine, the implementation of ideas please refer to: http://www.cnblogs.com/hooray/archive/2012/03/23/24144
Recently, when I changed a page embedded in the frame, jquery was used for the effect, and the page itself was bound with the onload event. After the change, the test in Firefox is normal and smooth. in IE, it takes more than a dozen seconds for
This section describes a tab effect implemented based on JQuery. It focuses on the fact that there is no inline event handler in HTML, but is defined in the js file to separate behavior and structure. In actual application, you can add N similar
Copy codeThe Code is as follows:/** Copyright (c) 2010 Liu Jianhua** The above copyright notice shall be* Included in all copies or substantial portions of the Software.* Example: demo demo *//** Mouse Plugin for jQuery* Version: 1.0* Release: 2010-
1. execution time Window. onload can only be executed after all elements including images in the page are loaded.$ (Document). ready () is executed after the DOM structure is drawn. You do not have to wait until the loading is complete.2. different
:
Solution:
1. When scaling the form, the blank width on the left of the content is obtained first.
$ ("# Nav"). offset (). left.
2. Get the width of the entire form (Note: The desktop resolution is the benchmark and is missing ).
3. Use the
Reprinted from: http://blog.163.com/weizi_mm/blog/static/315544201069101132204/
this function is required in the morning. When the checkbox is selected, hidden layers are displayed. When the checkbox is deselected, the selected layers are hidden.
Very good jQuery Image cropping plug-in CropZoom, very powerful, can rotate the image, change the image display ratio,Drag the image to the specified area to crop the image. The cropped image is displayed in a timely manner, which can meet your
With Internet Explorer 11, you can get better compatibility with web standards, other browsers, and real-world Web sites. Updated support for common WEB standards and added changes that prevent older versions of Web site from being incorrectly
In jquery, the navigator. userAgent. indexOf is used to determine the browser type and perform some processing. If you do not want to use jquery, you can use it if you change the code slightly.
Jquery judges IE6 code:
The Code is as follows:
If ($.
The resize event occurs when the size of the window or frame is adjusted, including minimizing and maximizing the size. In IE and opera browsers, this event is triggered as long as the window border is dragged. in Mozilla browsers, the resize event
Today, I had no time to visit the Internet and suddenly found a very interesting thing (maybe only I think it is interesting ). I saw a picture that was not moved when I dragged the scroll bar. Maybe you would say that I'm not surprised. If you
Today, my colleague found a small bug in the project and I am responsible for solving it. I was a little excited after studying it for a short time. Haha. Share it with you. The functions you want to implement are like this:
There are two text boxes,
We all know that some initialization actions are required after the page is loaded. For example, you need to run some js effects and set the form. How do you know that the page has been loaded? Generally, the onload of the body Tag is set to listen
Html image preview and upload (supports ie, google, and Firefox)
// Description: Image Upload preview plug-in// You can generate proportional scaling charts within the fixed width and height range during upload.
// Parameter settings:
// Width
The resize event occurs when the size of the window or frame is adjusted, including minimizing and maximizing the size. In IE and opera browsers, this event is triggered as long as the window border is dragged. in Mozilla browsers, the resize event
[Javascript]/* this plug-in is based on Jquery */(function ($) {$. fn. sonlinefunction (options) {varopts $. extend ({}, $. fn. sonline. defualts, options); $. fn. setList (opts); // call the list to set if (opts. defa. [javascript]
/* This plug-in
The code of the Image Upload local preview function can be searched on the Internet, but it is more compatible with browsers. This article provides a good example. If you are interested, refer
I. Local preview of image uploading
Most of the Image
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.