Anyone, please?
Here's an illustration (just in case you didn't understand what I was saying): three images. When I hover over the first (or the second) image, details from the last one are displayed in the magnifier which is, obviously, wrong.

This is the latest code I tried:
Code:
<html>
<head>
<style type="text/css">
.img_style {width:25%; height:25%; border:3px}
</style>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="ddpowerzoomer.js"></script>
<script type="text/javascript">
jQuery(document).ready(function($){ //fire on DOM ready
$("#slike img").css("border", "2px solid red")
$("#slike img").addpowerzoom()
})
</script>
</head>
<body>
<div id="slike">
<img id="pic1" src="http://www.dan-dare.org/FreeFun/Images/CartoonsMoviesTV/CarsWallpaper800.jpg" class="img_style"/>
<img id="pic2" src="http://www.dan-dare.org/FreeFun/Images/CartoonsMoviesTV/RealCarsWallpaper800.jpg" class="img_style"/>
<img id="pic3" src="http://www.dan-dare.org/FreeFun/Images/CartoonsMoviesTV/CarsWallpaper2800.jpg" class="img_style"/>
</div>
</body>
</html>
This *might* be a culprit:
Code:
<script type="text/javascript">
jQuery(document).ready(function($){ //fire on DOM ready
$("#slike img").css("border", "2px solid red")
$("#slike img").addpowerzoom()
})
</script>
I believe that I did it right; at least, this line:
Code:
$("#slike img").css("border", "2px solid red")
correctly created 2px solid red border around ALL images.
So, how come
Code:
$("#slike img").addpowerzoom()
wasn't applied correctly?
Bookmarks