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.
jQzoom is a great and a really easy to use script to magnify what you want.
IMPLEMENTATION:
1. First, include CSS & jQuery files
1 2 3 4 5 6 | <!-- CSS files --> <link rel="stylesheet" type="text/css" href="jquery.jqzoom.css"> <!-- Js Files --> <script type='text/javascript' src='jquery-1.5.xx.js'></script> <script type='text/javascript' src='jquery.jqzoom-core.js'></script> |
2. Write your HTML
1 2 3 4 5 | <!-- 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> |
3. Finnaly, call the plugin
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | <script type="text/javascript"> $(document).ready(function() { /* simple call */ $('.MYCLASS').jqzoom(); /* more complex call*/ var options = { zoomType: 'standard', lens:true, preloadImages: true, alwaysOn:false, zoomWidth: 300, zoomHeight: 250, xOffset:90, yOffset:30, position:'left' //...MORE OPTIONS }; $('.MYCLASS').jqzoom(options); }); </script> |
SCREENSHOTS
- Standart zoom with thumbnails
- Reverse zoom
- Inner zoom
- Always on zoom
Tidak ada komentar:
Posting Komentar