Jquery Photo Zoom


Introducing a new jQuery Photo Zoom plugin, it helps you to view bigger images on mouse over component, this is very useful for media related web applications. You can customize the PhotoZoom container based on your web page design. Very easy to implement just include the plugin using script tag and give required selector.

The tutorial contains two folders called js and images.

— jquery.min.js
— photoZoom.js
— photoZoom.min.js

— zoomLoader.gif

The Basic Setup
Include the jQuery and PhotoZoom plugin libraries into your document using script tag.

<script src="jquery.js"></script>
<script  src="photoZoom.min.js"> </script>
//HTML Code
<img src='a1.jpg' width="150" height="150"/>
<img src='a2.jpg' width="150" height="150"/>

You can customize container design by modifying CSS elements.

zoomStyle : {
"border":"1px solid #ccc",
"box-shadow":"0 0 5px #888"

Here you can reuse onMouseOver and onMouseOut events.

onMouseOver : function(currentImage){
// do something
onMouseOut : function(currentImage){
// do something

By Rodney

I’m Rodney D Clary, a web developer. If you want to start a project and do a quick launch, I am available for freelance work. info@quickmysupport.com

Leave a Reply

Your email address will not be published. Required fields are marked *