PDA

View Full Version : jQuery Image Magnify v1.11 Question.



VolcoM
05-31-2013, 10:41 PM
1) Script Title: jQuery Image Magnify v1.11

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/imagemagnify.htm

3) Describe problem: Everything works perfectly fine on my site, but i would like the resized image to size to the actual size of the original picture i have hosted. Instead it just resizes my thumbnail by 3x. Is there a way to change the coding to load the size of the original image?

jscheuer1
06-01-2013, 08:32 AM
Use the data-magnifyto attribute as outlined on the demo page. Set it to the actual width of the image.

Or you can try out this version of the script I just found in my archives (right click and 'Save As'):

5071

Example usage:


<img class="magnify" src="http://www.nasa.gov/images/content/168177main_image_feature_749_ys_4.jpg" width="100" alt="">


Note: In the HTML markup there, only the width is specified. You can also specify the height, but if you do, it must be proportional.

The browser cache may need to be cleared and/or the page refreshed to see changes.

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.

VolcoM
06-03-2013, 09:21 PM
That worked wonderfully John. Thks for the help!!