The task was to create a script that will allow users to see large details of the product while moving cursor over medium sized image.
This plugin is customizable with several options and simple CSS definitions. In terms of CSS all you need to do is define the newly created image zoom element's size, position and appearance.
This all the code.
<html>
<head>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
<script type="text/javascript" src="easyzoom.js"></script>
<script type="text/javascript">
jQuery(function($){
$('a.zoom').easyZoom();
});
</script>
<style type="text/css">
#container{
padding:10px;
}
#easy_zoom{
width:600px;
height:400px;
border:5px solid #eee;
background:#fff;
color:#333;
position:absolute;
top:60px;
left:400px;
overflow:hidden;
-moz-box-shadow:0 0 10px #777;
-webkit-box-shadow:0 0 10px #777;
box-shadow:0 0 10px #777;
/* vertical and horizontal alignment used for preloader text */
line-height:400px;
text-align:center;
}
</style>
</head>
<body>
<div id="container">
<p><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhe_RaBzZ9EWECT-3Gk5ovZGuUGSvMEXtzB-pFLNyoYBqikrQZ9wJPhLrbbBnDq0a_7KxJwk5HLA5Q19Jlncv6aVKLOgCVhuFnq55WyCxjDVaz5Z0cOzbbPkXfd7KVqdNyyU__HfBcHo-s/s1600/New-York.jpg" class="zoom"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjE0ndp4JOVlYw1fSTswpKSXcq1JQ7cMea09ENumOu54IBSj4fGB56sHWmPoF7fJLu6kuoPP8yubHkxU9RwvKPl0E7u8eVr5toxRsGLT3L8ufQSRue0C51FpTx1G5WjgacGKYvp7Uh8EiM/" alt="New York"></a></p>
<p><em>Roll over the image to view details.</em></p>
</div>
</body>
</html>
source article : jQuery plugin: Easy Image Zoom