Pan zoom

Buy now Get support

If the large image is larger than the screen, it will be scaled down to fit and can be pan/zoomed.

Expand image then zoom.


Expand image, no pan zoom.


Here's the code:

  1. <html>
  2.     <head>
  3.         <title>Magic Zoom Plus: Pan zoom</title>
  4.        
  5.         <!-- link to magiczoomplus.css file -->
  6.         <link href="magiczoomplus/magiczoomplus.css" rel="stylesheet" type="text/css" media="screen"/>
  7.         <!-- link to magiczoomplus.js file -->
  8.         <script src="magiczoomplus/magiczoomplus.js" type="text/javascript"></script>
  9.        
  10.     </head>
  11.     <body>
  12.        
  13.         <h4>If the large image is larger than the screen, it will be scaled down to fit and can be pan/zoomed.</h4>
  14.         <p>Expand image then zoom.</p>
  15.  
  16.         <a href="images/harley1c.jpg" class="MagicZoomPlus" rel="disable-zoom: true; expand-size: width=480px; group: panzoom;" title="Harley-Davidson Dyna Wide Glide"><img src="images/harley1b.jpg"/></a> <br/>
  17.  
  18.         <p>Expand image, no pan zoom.</p>
  19.  
  20.         <a href="images/harley1c.jpg" class="MagicZoomPlus" rel="disable-zoom: true; expand-size: width=480px; group: no-panzoom; pan-zoom: false;" title="Harley-Davidson Dyna Wide Glide"><img src="images/harley1b.jpg"/></a> <br/>
  21.        
  22.     </body>
  23. </html>