Monday, 8 April 2013
Facebook StumbleUpon Twitter Google+ Pin It

Jquery Photo Zoom Plugin

Introducing a new jQuery PhotoZoom 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 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='one.jpg'/>
<img src='two.jpg'/>

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 Parthiv Patel
Parthiv Patel
Bhaishri Info Solution
Sr. PHP Developer
Limdi Chowk, AT PO. Nar, Di. Anand
Nar, Gujarat
DOB: 12/24/1986

No comments: