Custom zoom position

The zoom window can be placed anywhere on your page


Here's the code:

  1. <html>
  2.     <head>
  3.         <title>Magic Zoom: Custom zoom position</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.         <p>The zoom window can be placed anywhere on your page</p>
  14.         <!-- define Magic Zoom -->
  15.         <a href="images/r1-red-3.jpg" class="MagicZoom" id="zoom" rel="zoom-position: custom; zoom-width: 178px; zoom-height:430px;"><img src="images/r1-red-2.jpg"/></a><br/>
  16.  
  17.         <div id="zoom-big" style="position: absolute; left: 20px; top: 242px"></div>
  18.        
  19.     </body>
  20. </html>