Zoom! Zoom! Zoom!
JavaScript can be used to add zoom interactivity to your images. A zoom typically consists of a smaller image, which when rolled over with a mouse, reveals a larger, more detailed version of the image. JavaScript zooms are also often used when 'real estate' (space) issues exist on a webpage. Zooms are also used when image details need to be supplied to an audience.
Magic Zoom: Inner Zoom
MagicZoom is not a free JavaScript tool, but is well worth the cost. Users can download a trial version of the product and test it for functionality. If functionality needs are met, a commercial version of the product can be purchased. Users then simply replace the trial .js file with the commercial .js file. No additional page modifications need to be made. This pop-up effect, including instructions for use and file downloads can be found at:

In Adobe Bridge:
- Locate and select magic-zoom.jpg in the ‘site-working’ folder
- Right-click and choose open with Photoshop
In Adobe Photoshop:
- Highlight magic-zoom.jpg
- From the Menu Bar, go to Image > Image Size
- Set the image width value to 1600 pixels
- Set the interpolation to Bicubic Sharper
- From the Menu Bar, go to View > Actual Pixels
- From the Menu Bar, go to File > Save for Web & Devices...
- Set the save preset to JPEG Medium (quality of 30)
- Save the image as magic-zoom-big.jpg into the ‘site-media’ folder
- From the Menu Bar, go to Image > Image Size
- Set the image width value to 408 pixels
- Leave the interpolation on Bicubic
- From the Menu Bar, go to View > Actual Pixels
- From the Menu Bar, go to File > Save for Web & Devices...
- Set the save preset to JPEG High (quality of 60)
- Save the image as magic-zoom-small.jpg into the ‘site-media’ folder
- Close the magic-zoom.jpg file – do NOT save
In Adobe Dreamweaver:
- Open zoom.html
- Working in Design View
- Replace the page left image with magic-zoom-small.jpg from the ‘site-media’ folder
- Be sure the images is not scaled in the Properties Panel
- Link magic-zoom-small.jpg to magic-zoom-big.jpg in the Properties Panel
To add the MagicZoom functionality and CSS:
- Switch to Code View
- Make room the <head> section to add a link to an external .js file
- From the Menu Bar, Insert > HTML > Script Objects > Script
- Link to site-javascript/magiczoom-trial/magiczoom.js
- In the CSS Panel, click the Attach Style Sheet icon (chain links)
- Attach: site-javascript/magiczoom-trial/magiczoom.css
To add the MagicZoom effect:
- Working in Design View
- Select the magic-zoom-small.jpg image
- Switch to Code View
- Within the magic-zoom-small.jpg link tag, add
class="MagicZoom" rel="zoom-position:inner;" - Save your files
- Refresh your Firefox page
- Roll-over your MagicZoom’d image
Modify the default look:
- Within the magic-zoom.jpg link tag, change to:
rel="zoom-position:right;" - Save your files
- Refresh your Firefox page
- Roll-over your MagicZoom’d image
- Within the magic-zoom.jpg link tag, change to:
rel="zoom-position:right;zoom-fade:true" - Save your files
- Refresh your Firefox page
- Roll-over your MagicZoom’d image
Magic Zoom: Multi-Image Inner Zoom
MagicZoom can also be rigged to create a multi-image zoom gallery. To see the standard single image MagicZoom and muilt-image MagicZoom in action, visit:
![]() |
||
![]() |
![]() |
![]() |
In Adobe Dreamweaver:
- Replace the page right, large image with multi-zoom-1-medium.jpg from the ‘site-media’ folder
- Be sure the images are not scaled in the Properties Panel
- Link multi-zoom-1-medium.jpg to multi-zoom-1-big.jpg in the Properties Panel
- Replace the thumbnails, from left to right, with multi-zoom-1-thumb.jpg, multi-zoom-2-thumb.jpg and multi-zoom-3-thumb.jpg in the Properties Panel
- Link the thumbnails, from left to right, to multi-zoom-1-big.jpg, multi-zoom-2-big.jpg and multi-zoom-3-big.jpg in the Properties Panel
To add the MagicZoom effect:
- Working in Design View
- Select the page right, large image
- Switch to Code View
- Within the large image link tag, add:
class="MagicZoom" id="Zoomer" rel="zoom-position:inner;" - Within the left thumbnail link tag, add:
rel="zoom-id:Zoomer" rev=" site-media/multi-zoom-1-medium.jpg" - Within the middle thumbnail link tag, add:
rel="zoom-id:Zoomer" rev=" site-media/multi-zoom-2- medium.jpg" - Within the left thumbnail link tag, add:
rel="zoom-id:Zoomer" rev=" site-media/multi-zoom-3- medium.jpg" - Save your files
- From the Menu Bar, File > Preview in Browser > Firefox
- Roll-over your MagicZoom’d gallery

