Describes a very useful jquery image magnifier plug-in.

Source: Internet
Author: User

This article introduces a very useful jquery image magnifier plug-in. In many e-commerce websites, when looking at small pictures, we often want to see a larger image of this product,

Traditionally, if you open another big image, it's not cool, so we found this plug-in,

Plugin:

Http://www.mind-projects.it/projects/jqzoom/

 

For a brief introduction, after downloading,

Prepare a small image and a clear big image, and then introduce jquery and Js of this plug-in into the page.

<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>

Then introduce a CSS

<LINK rel = "stylesheet" href = "../CSS/jqzoom.css" type = "text/CSS">

Then there are two big pictures and small pictures.

<A href = "kawasakigreen.jpg" class = "jqzoom" style = "" Title = "Kawasaki">
</a>

Note that a large image, a small image, and "kawasakigreen_small.jpg" indicates the title of the text to appear in the magnifier.

Then in JS

 

<SCRIPT type = "text/JavaScript">

$ (Function (){

VaR options3 =
{
Zoomwidth: 200,
Zoomheight: 200,
Xoffset: 20,
Title: false,
Lens: false

}

$ (". Jqzoom"). jqzoom (options3 );
});
</SCRIPT>

 

Here is the magnifying glass effect. For more information, see.

Http://www.mind-projects.it/projects/jqzoom/demos.php#demo1

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.