Activate on click

Buy now  £39 Get support

NOTE: The click to enlarge feature only works when this page is served from localhost or a webserver (view this example online).

Activate the magnifier on click or with a button.



  1. <html>
  2.     <head>
  3.         <title>Magic Magnify Plus: Activate on click</title>
  4.        
  5.         <!-- link to magicmagnifyplus.css file -->
  6.         <link rel="stylesheet" href="magicmagnifyplus/magicmagnifyplus.css" type="text/css" media="screen, projection"/>
  7.         <!-- link to magicmagnifyplus/magicmagnifyplus.js file -->
  8.         <script src="magicmagnifyplus/magicmagnifyplus.js" type="text/javascript"></script>
  9.        
  10.     </head>
  11.     <body>
  12.        
  13.         <p class="note">NOTE: The click to enlarge feature only works when this page is served from localhost or a webserver (<a href="http://demo.magictoolbox.com/magicmagnifyplus/example10.html">view this example online</a>).</p>
  14.         <p>Activate the magnifier on click or with a button.</p>
  15.        
  16.         <!-- define Magic Magnify Plus -->        
  17.         <input type="button" value="Start Magnifiers" onclick="MagicMagnifyPlus.start(true);"/>
  18.         <input type="button" value="Stop Magnifiers" onclick="MagicMagnifyPlus.stop();"/><br/>
  19.  
  20.         <p><a href="images/shoe_large.jpg" class="MagicMagnifyPlus" rel="disable-auto-start:true;"><img src="images/shoe_small.jpg"/></a></p><br/>
  21.  
  22.        
  23.        
  24.     </body>
  25. </html>