PDA

View Full Version : jQuery Image Magnify problem



mrpowerhouse
10-23-2013, 02:57 AM
Hi guys,

First off, thank you for this script. It works like magic on browsers like Firefox, Chrome, etc. However, I've been hearing reports of the script not working in IE, preferably IE9 and IE10. They said instead of magnifying the image, it actually shrinks it even more.

May I know why this is, and what do I need to do to fix it? Thanks :)

jscheuer1
10-23-2013, 07:28 AM
.

Warning: Please include a link to the DD script(s) in question in your post. See this post (http://www.dynamicdrive.com/forums/showpost.php?p=7) for more information.

If you mean:

http://www.dynamicdrive.com/dynamicindex4/imagemagnify.htm

It works fine in IE 9 and 10.

If you want more help, please include a link to the page on your site that contains the problematic code so we can check it out.

mrpowerhouse
10-23-2013, 12:06 PM
Hi jscheuer1,

there's not much I've changed with the code. I specifically followed using a link to magnify a different image:


<img id="finpic" src="upload/<?php echo $filename; ?>" class="magnify" data-magnifyby="2" name="pic"></span>
<a id="zoomlink" href="#" rel="magnify[finpic]"><img src="./images/zoom.png" width="66" height="66"></a>

the only thing i changed is on line 23 of the jquery.magnifier.js file, i updated the code to:

var winattrs={x:$window.scrollLeft()-25, y:$window.scrollTop()-115, w:$window.width(), h:$window.height()}

jscheuer1
10-23-2013, 01:40 PM
The only thing that should happen because of that change is that the magnified image would be closer to the top and left edges of the browser than the default. But it might be causing the problem. Try it without that. If that fixes it, there are other ways to move the magnified image.

If you want more help, please include a link to the page on your site that contains the problematic code so we can check it out.