Extension for partial image enlargement-jquery. jqzoom. js

Source: Internet
Author: User

See: http://bbs.okajax.com/demo/17/

Jqzoom allows you to realize a small magnifier window close to the image or images on your web page easily.

I decided to build this jquery plugin to embed detailed big images in my B2B. so now in few steps you can have your jqzoom in your website, ecommerce or whatever you want. author: Renzi Marco, December 2007

1) simply include the jqzoom.css in your page.

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

2) include jqzoom and jquery code

<SCRIPT type = "text/JavaScript" src = "your_path/jquery. js"> </SCRIPT>

<SCRIPT type = "text/JavaScript" src = "your_path/jquery. jqzoom. js"> </SCRIPT>

3) now assign the "jqzoom" class to the image or images you wowould like to zoom, and specify for each one, the alt attribute, to wich you are going to assign the big image path.

4) load the plugin at window Load

Jquery (document). Ready (function (){

$ ("IMG. jqzoom"). jqueryzoom ();

});

You can also specify some options:

Jquery (document). Ready (function (){

$ ("IMG. jqzoom"). jqueryzoom ({

Xzoom: 300, // zooming Div default width (default width value is 200)

Yzoom: 300, // zooming Div default width (default height value is 200)

Offset: 40, // zooming Div default offset (default offset value is 10)

Position: "right" // zooming Div position (default position value is "right ")

});

});

5) sit and wait for people to tell you that what you have done is really cool !!!! :-)

Demo

: Http://bbs.okajax.com/demo/17/

For more information about similar functions, see http://www.magictoolbox.com/magiczoom_examples/.

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.