loupe.js

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

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

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
<script type="text/javascript">var loupePath="imagepath/";</script>
// else only this lines...
<script type="text/javascript" src="loupe.js"></script>
<!--[if gte IE 6]>
<script 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

Demonstration

Shows what "loupe.js" does.

Zoom Effect (Caribbean) Frame Effect (Mona Lisa) Xray Effect (Homer)

Why use Javascript Image Loupe?

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

Restrictions

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

History

Version 1.2 Version 1.1 Version 1.0

License

Loupe.js is distributed under this LICENSE. License permits free of charge use on non-commercial and private web sites only.
There is also a Commercial Software License available.

Images used are copyrighted and are used for demonstration only.

cvi.netzgesta.de  also visit  CVI-lab, S5 Reloaded and AJAX-FilmDB

下载代码说明
X关闭

loupe.js 图片放大镜插件

loupe.js 图片放大镜插件,来自老外的一款封装函数,完成的功能可以看看上边的截图,类似一个放大镜的效果,实际上这不是放大,只不过是对另一张像素极高的图片特殊的显示方式不同而已,两者结合看似一个放大镜一样。