Magic Toolbox
05-26-2008, 07:01 PM
Here is a JavaScript tool that reveals a much larger image when you hover over a small image. You can see it working here:
Magic Zoom examples (http://www.magictoolbox.com/magiczoom_examples/)
It's free for non-commercial use (http://www.magictoolbox.com/license#free), there is a small fee for commercial websites. I hope it's OK to post it here?
One of the nice things about the script is that the HTML code is very clean. The HTML below is all you need.
You reference the JS file and CSS file in the <head> like this:
<link rel="stylesheet" href="MagicZoom.css" type="text/css" media="screen" />
<script src="mz-packed.js" type="text/javascript"></script>
You reference the small and large image in the <body> like this:
<a href="big_image.jpg" class="MagicZoom"><img src="small_image.jpg" alt=""/></a>
There are a number of customisations (http://www.magictoolbox.com/magiczoom_integration#customisation) that can be made like size, colours, multiple images.
Magic Zoom examples (http://www.magictoolbox.com/magiczoom_examples/)
It's free for non-commercial use (http://www.magictoolbox.com/license#free), there is a small fee for commercial websites. I hope it's OK to post it here?
One of the nice things about the script is that the HTML code is very clean. The HTML below is all you need.
You reference the JS file and CSS file in the <head> like this:
<link rel="stylesheet" href="MagicZoom.css" type="text/css" media="screen" />
<script src="mz-packed.js" type="text/javascript"></script>
You reference the small and large image in the <body> like this:
<a href="big_image.jpg" class="MagicZoom"><img src="small_image.jpg" alt=""/></a>
There are a number of customisations (http://www.magictoolbox.com/magiczoom_integration#customisation) that can be made like size, colours, multiple images.