
Originally Posted by
Nile
@John, I'm pretty sure the OP is looking for something like . . .
Now that you mention it, I think so too. Here's a drop in replacement, use in place of featuredimagezoomer.js:
Attachment 3696
You can change the shade color, opacity and border of the moving inset. But, if you do nothing, you will get one like in the page you linked to.
If you want to set those options, for example:
Code:
<script type="text/javascript">
jQuery(document).ready(function($){
$('#image1').addimagezoom({
zoomrange: [3, 10],
magnifiersize: [300,300],
magnifierpos: 'right',
cursorshadecolor: 'blue',
cursorshadeopacity: 0.4,
cursorshadeborder: '3px dotted darkred',
largeimage: 'http://i44.tinypic.com/11icnk5.jpg' //<-- No comma after last option!
})
</script>
The defaults are:
Code:
cursorshadecolor: '#fff', cursorshadeopacity: 0.3, cursorshadeborder: '1px solid black'
Works with fixed or variable zoom. With variable zoom the shaded inset changes size.
One thing that's a little tricky though is that it wraps the image in a division. This will cause problems with some layouts but probably nothing that can't be worked out.
Bookmarks