Drag mode

Click and drag to move the zoom.

Here's the code:

  1. <html>
  2.     <head>
  3.         <title>Magic Zoom: Drag mode</title>
  4.        
  5.         <!-- link to magiczoom.css file -->
  6.         <link href="magiczoom.css" rel="stylesheet" type="text/css" media="screen"/>
  7.         <!-- link to magiczoom.js file -->
  8.         <script src="magiczoom.js" type="text/javascript"></script>
  9.        
  10.     </head>
  11.     <body>
  12.        
  13.        
  14.         <p>Click and drag to move the zoom.</p>
  15.        
  16.         <!-- define Magic Zoom with drag mode, zoom-width and set starting position on the front wheel -->
  17.         <a href="images/r1-red-3.jpg" rel="drag-mode:true; move-on-click: true; zoom-height: 170px; x: 250; y: 120" class="MagicZoom"><img src="images/r1-red-2.jpg"/></a>
  18.  
  19.        
  20.     </body>
  21. </html>