PDA

View Full Version : jQuery Image Magnify v1.1 - Tweak data-magnifyto="percent of screen resoution"



mircomartinelli
01-11-2011, 07:04 AM
1) Script Title: :: jQuery Image Magnify v1.1

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

3) Describe problem: No problem at all. I'm just wondering if there's a way to easily tweak this function:

data-magnifyto="number" (Lets you set the explicit width in pixels)

with something like

data-magnifyto="percent-%" (set the explicit width in % to user screen resolution for example 800x600 1024x768 1280x800 1440x900 1280x1024 1680x1050 1920x1080 1600x900)


here i've set data-magnifyto="1000" but if exist data-magnifyto="90%" would be cooler
http://imparareanalisitecnica.blogspot.com/2010/10/forex-trading-analisi-tecnica-dollaro.html

Any help is welcome
Thanks 4 your time
Mirco

cindylou
01-11-2011, 07:49 AM
you want to adjust magnification by percents, right?...or to have a cooler effect, try using this

http://css-tricks.com/anythingzoomer-jquery-plugin/

it gives a more amazing effect :)

mircomartinelli
01-11-2011, 08:48 AM
you want to adjust magnification by percents, right?...or to have a cooler effect, try using this

http://css-tricks.com/anythingzoomer-jquery-plugin/

it gives a more amazing effect :)

i think the link you've posted is nice but it would be useful (for the kind of image i'm enlarging) to *emulate* full screen effect and preserve full image.

:)

cindylou
01-11-2011, 09:08 AM
oh..i see...ahm, try reading this page..maybe this might help..

http://www.dynamicdrive.com/forums/showthread.php?t=28888

maybe it might since they're talking about image resizing using percents.. :)