CVI
loupe.js 1.3 allows you to add a loupe (magnifier) to images on your webpages. It uses unobtrusive javascript to keep your code clean. It uses unobtrusive javascript to keep your code clean.

It works in all the major browsers - Mozilla Firefox 1.5+, Opera 9+, Safari and IE6+. On older browsers, it'll degrade and your visitors won't notice a thing.

Demonstration


Click to see what loupe.js can do.
Zoom Effect (Caribbean)
Zoom Effect (Caribbean)
Frame Effect (Mona Lisa)
Frame Effect (Mona Lisa)
Xray Effect (Homer)
X-Ray Effect (Homer)

Images used are copyrighted and are used for demonstration only.

Setting Up

Download loupe.js and include it into your webpages HEAD section.

// only if the image "loupe.png" is not in the current path
<scriptscript type="text/javascript">var loupePath="imagepath/";</script>
// else only this lines...
<script type="text/javascript" src="loupe.js"></script>
<!--[if gte IE 6]>
<scriptscript type="text/javascript">var loupePath="vml/";</script>
<script type="text/javascript" src="vml/loupe.js"></script>
<![endif]-->

Using It

To add a loupe just set the event onload="initLoupe(this.id);" to an div surrounded image.

<div>
<img id="..." onLoad="initLoupe(this.id);" src="..." width="356" height="205" alt="...">
</div>

Usage

Why use Javascript Image Loupe?

In older browsers, the script degrades and your visitors won't notice a thing.

Download

Please read the License before you download loupe.js 1.3

F.A.Q.

Please read the Frequently Asked Questions before you contact the author.

Restrictions

It's not advisable to use the script multiple times on the same page.

History

Version 1.3

Version 1.2Version 1.1Version 1.0

Contact

Please leave any comments at this contact formular.

License

loupe.js and vml/loupe.js are distributed under the Netzgestade Non-commercial Software License Agreement.
License permits free of charge use on non-commercial and private web sites only under special conditions (as described in the license). This license equals neither "open source" nor "public domain". There are also Commercial Software Licenses available.

YOU AGREE TO ALL CONDITIONS OF THIS LICENCE AGREEMENT CONCERNING THE USE OF THE SOFTWARE BY ACCEPTING THIS LICENCE.
IF YOU DO NOT AGREE TO ALL CONDITIONS OF THIS AGREEMENT, YOU SHALL NOT INSTALL THE SOFTWARE, OR USE IT IN OTHER WAYS.