jquery to achieve Jingdong Mall, where merchants City picture amplification effect _jquery

Source: Internet
Author: User
Tags pack
The effect is as follows:


Take a look at our demo, "Run code" please refresh once:
<textarea id="runcode50249"><ptml> <pead> <title>jqzoom demo</title> <script src= "http://img.jb51.net/online/ Jqzoom/js/jquery-1.3.2.min.js "type=" Text/javascript "></script> <script src=" http://img.jb51.net/ Online/jqzoom/js/jqzoom.pack.1.0.1.js "type=" Text/javascript "></script> <link rel=" stylesheet "href=" Http://img.jb51.net/online/jqzoom/css/jqzoom.css "type=" text/css "> <style type" text/css "> div.notes{font- size:12px; Div.notes a{color: #990000; } </style> <script type= "Text/javascript" > $ (Function () {$ (". Jqzoom"). Jqzoom (); }); </script> </pead> <body> </body></ptml></textarea>
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to perform]

To do this, just add to the area of the page where you want this effect:
Copy Code code as follows:

<link rel= "stylesheet" type= "Text/css" href= "Css/jqzoom.css"/>
<script src= "Js/jquery-1.3.2.min.js" type= "Text/javascript" ></script>
<script src= "Js/jqzoom.pack.1.0.1.js" type= "Text/javascript" ></script>
<script language= "javascript" type= "Text/javascript" >
$ (function () {
var option =
{
ZOOMWIDTH:350,
zoomheight:260,
Lens:true,
XOFFSET:20,
Yoffset:-1,
Positon: "Left",
Title:false
}
$ (". Jqzoom"). Jqzoom (option);
});
</script>

For pictures that need this effect:
Copy Code code as follows:

<a href= "upload/bimg/2.jpg" class= "Jqzoom" title= "Search bar" ></a>

Class= "Jqzoom" is the key.
And its property settings include:

You can also view the original article directly: http://www.mind-projects.it/projects/jqzoom/index.php
You may be interested in looking at the example carefully prepared by the author: http://www.mind-projects.it/projects/jqzoom/demos.php

Package Download Address

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.