JQZoom is a javascript image magnifier built at the top of the popular jQuery javascript framework.jQzoom is a great and a really easy to use script to magnify what you want.
Works on all modern browsers:
6+
2+
1.0
2+
9+
- - 24-02-2009: Tested and repacked with jQuery 1.3.2...let me know about known bugs
- - NEW: Source Code released,so everyone can do the best,helping me to keep the plugin updated.
- - The old release of jqzoom(not evolution) can be downloaded here: jqzoom v2.2
Add first the last jQuery release, then the jQZoom script(don't forget this),the correct order is important.Look at the installation code below.
<script type='text/javascript' src='js/jquery-1.2.6.js'></script> <script type='text/javascript' src='js/jquery.jqzoom-1.0.1.js'></script>
Add jqzoom.css to your header.
<link rel="stylesheet" type="text/css" href="css/jqzoom.css" />
Using jQZoom is easy,but you need to specify the HTML anchor element,that is going to generate the zoom revealing a portion of the enlarged image.
<a href="images/BIGIMAGE.JPG" class="MYCLASS" title="MYTITLE"> <img src="images/SMALLIMAGE.JPG" title="IMAGE TITLE" > </a>
The anchor element wraps the small image you would like to zoom.Following this schema the necessary and base elements are:
SMALLIMAGE.JPG: Represents the small image you would like to zoom.
BIGIMAGE.JPG: Represents the big image that jQZoom will reveal.
MYCLASS: Represents the anchor class,that would be used to instantiate the jQZoom script to all the elements matching this class(you can use an ID as well).
MYTITLE/IMAGE TITLE: Anchor title and/or image title that will be used to show the zoom title close to the jQZoom Window.
Now load the plugin at window load.
$(document).ready(function(){
$('.MYCLASS).jqzoom();
});
This would instantiate jQzoom in default(standard) mode.You can pass more options(Documentation section),to create special or custom effects as in the example below.
$(document).ready(function(){
var options = {
zoomWidth: 300,
zoomHeight: 250,
xOffset: 10,
yOffset: 0,
position: "right" //and MORE OPTIONS
};
$('.MYCLASS).jqzoom(options);
});
Configuration options:
You can choose between these options.
-
OPTION NAMEDEFAULTDESCRIPTION
-
zoomType'standard'The other admitted option value is 'reverse',this is characterized by image opacity.
-
zoomWidth200The popup window width showing the zoomed area.
-
zoomHeight200The popup window height showing the zoomed area.
-
xOffset10The popup window x offset from the small image.(always positive value if the 'position' option is 'right/left', positive/negative if the 'position' option is 'top/bottom'.
-
yOffset0The popup window y offset from the small image.(positive/negative value if the 'position' option is 'right/left', always positive if the 'position' option is 'top/bottom'.
-
position'right'The popup window position.Admitted values:'right' ,'left' ,'top' ,'bottom'
-
lenstrueif setted to false,the small lens,over the image, won't show.
-
imageOpacity0.2Set the image opacity when the 'zoomType' option is setted to 'reverse'.
-
titletrueShow a small title over the image it can be the anchor title and if not specified,it will get the small image title.
-
showEffect'show'The Effect by which showing the popup window.Options available: 'show' ,'fadein'.
-
hideEffect'hide'The Effect by which hiding the popup window.Options available: 'hide' ,'fadeout'.
-
fadeinSpeed'fast'Changes fade in speed,in case the showEffect option is setted to 'fadein'.(options: 'fast','slow','medium')
-
fadeoutSpeed'slow'Changes fade out speed,in case the hideEffect option is setted to 'fadeout'.(options: 'fast','slow','medium')
-
showPreloadtrueShow the preload loading indicator.(options: 'true','false')
-
preloadText'Loading zoom'Option to customize the preload indicator text.
-
preloadPosition'center'By default the preload indicator is centered over the small image.You can optionally use the 'bycss' option letting you to change its position by css.
Style customizations are obviously admitted simply changing the right parameters value in the 'jqzoom.css' file.
This software is licensed under GPL.
Remember:
Develop,mantain,and longtime support in never easy and without efforts.
So if you like this plugin and you would like future support for jQZoom,donate something with Paypal,before downloading it.
Note: Choose and click to download.
Note: When upgrading make sure to replace all files.
|
|









