displays the fade effect.
9.THIS.TITLE=THIS.T, the title content assigned to This.title, in fact, do not have any problems, a bit superfluous.
10.$ ("#screenshot"). Remove (), move the P element.
11.$ ("A.screenshot"). MouseMove (function (e) {}) to set the picture to follow when the mouse pointer moves.
12.$ ("#screenshot"). CSS ("Top", (E.pagey-xoffset) + "px")-CSS ("left", (E.pagex+yoffset) + "px"), set the top and left property values for p e
http://www.neoease.com/lazy-load-jquery-plugin-delay-load-image/Lazy Load is a jQuery plugin written in JavaScript. It can delay loading a picture on a long page . Images outside the viewable area of the browser are not loaded until the user scrolls the page to their location. This is exactly the opposite of how the picture preloading is handled. /c1>Lazy loading
The effects of image loading and page loading implemented by jQuery oLoader,
OLoader usage
Both oLoader and oPageLoader are based on jQuery. Therefore, you must load the jquery library before calling the function. The author has integrated the two plug-ins: jquery. oLoader.
JQuery fade-in and fade-out can automatically switch the magic light plug-in. The prototype is a magic light effect written a few days ago, because a small bug gets stuck for two days, and then clears the previously written code, I have written a new thought.
Usage1. Introduce the jquery library file and the
The latest version of jquery. lazyload. js is no longer a pseudo-delayed loading.
1. Please follow the basic instructions
Copy codeThe Code is as follows:// Load the JavaScript file
Copy codeThe Code is as follows:// Each of the four attributes of the img tag must be unique. Otherwise, the delayed loading effect cannot be achieved, as shown below:
Copy codeThe Code is as follows:// Use$ (Function (){$ ("Img. lazy"). lazyload ();});
Ii. common att
Create a multi-function carousel image plug-in using jquery.
This is a multi-function slide plug-in that supports multiple configurations. css styles are extracted from the Internet, and the code in the plug-in is original and light-sprayed ~
; (Function ($) {"use strict"; var methods = {o: {next: "# cycle-next", prev: "# cycle-prev", pager: "# cycle-nav", slider: "# beauty-slider", timeLine: "# timeLine",
is the link object that points to the current mouse.6. var c = (this. t! = "")? "If this. t is not empty, that is, the title attribute value exists, insert a linefeed and connect the content of the current title. Otherwise, set c to null.7. $ ("body "). append ("Add the image and related instructions to the body.8. $ ("# screenshot" example .css ("top", (e. pageY-xOffset) + "px" ).css ("left", (e. pageX + yOffset) + "px "). fadeIn ("fast "),Set the t
You can use the lazy loader plug-in of jquery to implement delayed image loading. When the webpage is relatively long, only images in the user window will be loaded first, the image outside the window will not be loaded until you drag the scroll bar to the back, which effectively avoids the disadvantages of Loading slowly due to too many images.It is easy to use
Example diagram:The example diagram is the login interface for bootstrap3.0, and the background image behind it is a switchable dynamic background.Backstretch is a simple jquery plugin that can help you to add a dynamic background image to the page, you can automatically adjust the size to fit the screen size, of course, the disadvantage is that when the
Jquery plugin Image Browsing
Jquery code
(Function ($) {$. FN. mpicslist = function (options) {var picsimgs = $ (this ). find ("IMG"); // obtain the image var picsimgslen = picsimgs. length; // The total number of images var Index = 0; // The current image index subscript va
Now that the image slider has become a popular web design element, with the slider, you can show more content in a limited page space, giving the user a better browsing experience. This article will bring you some very useful jquery image slider plugins.1. Basic Slider As the name implies, this is a basic slider, quite simple and lightweight, providing only the
jquery image player is a picture player jquery plugin that can play pictures as you like in video playback. When you need to introduce one of your products and projects, this plugin can play a powerful role. You can make a picture of the various features of a product or project, and then use the plugin to play frames frame by layer.Now most of the products and pr
jquery image player is a picture player jquery plugin that can play pictures as you like in video playback. When you need to introduce one of your products and projects, this plugin can play a powerful role. You can make a picture of the various features of a product or project, and then use the plugin to play frames frame by layer.
Now most of the products and
{background: #333;/* Add a black background for the image dimming effect do matting/display:block; width:200px; height:200px;}#bigimage {position:absolute; display:none/* Large picture's parent label settings are relative positioned and the display style is set to hidden/}#bigimage img {width:400px; height:400px; padding:5px background: #fff; border:1px solid #e3e3e3;}
jquery Code section:
First
Today to introduce you to a jquery-based image switching effect. Fly into the display picture by the blinds. The picture message is also the blinds fade away. For the picture Show, the effect is very good, we look together:Online preview Source DownloadTake a look at the implemented code. Note that there are references to jqu
("active")!=-1)
{
Return
}
Get Data
var i=$ (this). attr ("pic");
Gets the text content to be displayed, and splits the text into groups with |
var t=$ (this). attr ("text"). Split ("|");
Change the fade of text, change the effect of animation by controlling transparency
$ ("#frontText"). fadeout ();
$ ("#frontTextBack"). fadeout ();
$ ("#frontTextSub"). fadeout ();
To handle the current active IMG Recovery
$ ("Li Img.active"). Animate (
Provides various official and user-released code examples. For code reference, you are welcome to exchange and learn. Enlarge is a jQuery-based plug-in that can easily achieve the effect of a graphic magnifier and is suitable for most product websites, such as online shopping mall, e-commerce, and enterprise product introduction.
Official download, Demo: http://www.abelcode.com/enlarge/
Simple call:
$ ("# Demo1"). enlarge ();
Complete para
"});}/*** Display a large image in a specified area*/Function showArea (){If ($ ("#" + opts. showArea). size ()> 0 ){// Display the location of the Master ChartVar index = Math. floor (opts. line-1)/2 );ShowIndexArea (index );// Move the cursor over to display the large image$ ("#" + Opts. objId + "ul li"). each (function (index ){$ (This). mouseover (function (){ShowIndexArea (index );});});}}/*** Display
) + "px"});}
/*** Display a large image in a specified area*/Function showArea (){If ($ ("#" + opts. showArea). size ()> 0 ){// Display the location of the Master ChartVar index = Math. floor (opts. line-1)/2 );ShowIndexArea (index );// Move the cursor over to display the large image$ ("#" + Opts. objId + "ul li"). each (function (index ){$ (This). mouseover (function (){ShowIndexArea (index );});});}}
/***
The latest version of Jquery.lazyload.js is no longer pseudo deferred loading
One, please follow the basic use method to explain the setting
Copy Code code as follows:
Loading JavaScript files
Copy Code code as follows:
The 4 attributes of an IMG tag can be less than one, otherwise the effects of deferred loading are not implemented as follows:
Copy Code code as follows:
Use
$ (function () {
$ ("Img.lazy"). Lazyload ()
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.