Activate/Initialize

Buy now Get support

Use the click-to-activate option to show zoom on click instead of hover.

Use the click-to-deactivate option to hide zoom on click.

Use the initialize-on option to download the large image upon click on the main image or additional thumbnails (reduces bandwidth usage, but slows the user experience).


Set the initialize-on option to 'mouseover' to download the image upon first mouseover.

Here's the code:

  1. <html>
  2.     <head>
  3.         <title>Magic Zoom Plus: Activate/Initialize</title>
  4.        
  5.         <!-- link to magiczoom.css file -->
  6.         <link href="magiczoomplus/magiczoomplus.css" rel="stylesheet" type="text/css" media="screen"/>
  7.         <!-- link to magiczoom.js file -->
  8.         <script src="magiczoomplus/magiczoomplus.js" type="text/javascript"></script>
  9.        
  10.     </head>
  11.     <body>
  12.        
  13.         <p>Use the click-to-activate option to show zoom on click instead of hover.</p>
  14.  
  15.         <a href="images/harley1c.jpg" title="Cool bike!" rel="click-to-activate: true" class="MagicZoomPlus"><img src="images/harley1b.jpg"/></a>
  16.        
  17.         <p class="pad">Use the click-to-deactivate option to hide zoom on click.</p>
  18.         <a href="images/harley1c.jpg" title="Cool bike!" rel="click-to-deactivate: true" class="MagicZoomPlus"><img src="images/harley1b.jpg"/></a>
  19.  
  20.         <p class="pad"><a name="initialize-on-click">Use the initialize-on option to download the large image upon click on the main image or additional thumbnails (reduces bandwidth usage, but slows the user experience).</p>
  21.         <a href="images/harley2c.jpg" rel="initialize-on: click;" class="MagicZoomPlus" id="zoom3"><img src="images/harley2b.jpg"/></a><br/>
  22.  
  23.         <a href="images/harley1c.jpg" rel="zoom-id: zoom3" rev="images/harley1b.jpg"><img src="images/harley1a.jpg"/></a>
  24.         <a href="images/harley2c.jpg" rel="zoom-id: zoom3" rev="images/harley2b.jpg"><img src="images/harley2a.jpg"/></a>
  25.  
  26.         <p class="pad">Set the initialize-on option to 'mouseover' to download the image upon first mouseover.</p>
  27.         <a href="images/harley2c.jpg" rel="initialize-on: mouseover;" class="MagicZoomPlus"><img src="images/harley2b.jpg"/></a>
  28.        
  29.     </body>
  30. </html>