PDA

View Full Version : Realzoom



axobi1
04-15-2006, 12:43 PM
Hello - I was reading some stuff online and ran across a site so curious to find out more. I looked at the source online and found it was utilizing 'realzoom.js' and did a search online and found it is done by http://www.afarsitebetter.com/realZOOM/. Anyway, just wondering if anyone knows if I can find a script like that to download or similar to it??? Thanks!!! :)

djr33
04-15-2006, 08:17 PM
Hmmm... weird script. Heh. I kinda like it, but it also annoys me.

I'm not even close to good enough at JS to try that.

1. You might want to try using flash... might be easier.
2. Doesn't seem impossible to code... it's just relating cursor position on an image (and faking an extension of the cursor with that) to what part of the image is shown in a DIV that pops up. But.... yeah... pretty advanced.... not impossible, though.
BTW, one note-- the reason it loads quickly is that it is already loaded... the little image is just scaled down by the browser and when you rollover, the full size image is shown...
It's kinda a cheap JS trick by the company trying to get you to buy their product... the code isn't that cool... though it does look kinda nice.
or
3. Hopefully someone will just find a link to something open source for you. :)

Twey
04-15-2006, 09:24 PM
BTW, one note-- the reason it loads quickly is that it is already loaded... the little image is just scaled down by the browser and when you rollover, the full size image is shown...No, the larger image loads more slowly than the smaller image, thus betraying the fact that they are two seperate images.
3. Hopefully someone will just find a link to something open source for you.Actually, since the source is open to viewing (http://www.afarsitebetter.com/includes/zoomer.js), it's technically open-source. Don't confuse open-source software with Free software.

jscheuer1
04-15-2006, 09:33 PM
I've never been that much of a hacker but, just for fun I tried just saving the files used and, you guessed it, they are encrypted and salted with illegal characters.

Twey
04-15-2006, 09:45 PM
The (mistaken) key word is "encrypted." They're not actually encrypted, just obfuscated, so technically the source is still viewable.

jscheuer1
04-15-2006, 10:11 PM
Well, I meant encrypted in the general sense, as it is used to mean escaped. But there is a twist, or seems to be, in that some of the characters in a variable used as a sort of 'key' are considered illegal even if the .js file is linked to directly from the server.

To perhaps explain what I mean more fully, I often will use FF to view a page's source then copy that and save it as an html file for troubleshooting purposes. Rather than have to find and copy all the associated graphics and resource files, just to work on a single page, I then set the local copy's base href to its original's location. Even doing just that, the site with the bicycle parts' script stopped working and the error was:


Error: illegal character
Source File: http://www.answerproducts.com/includes/zoomer.js
Line: 11, Column: 4
Source Code:
wo%7!nf~j} /jtqk%4U&:8N&f($/#>qoplw~&h{w#&z|wz~F%N/+8Q0i'3/!v%ey8oqlw+|k"yz|~9D8>YB)rx32+y$t}p"t";|x{}4V=2?Q.v|;#)(Ah+|m,*-~-."z+Y*MJeE,u{65.|'w0 q4{+-Js|~*T<R>KT1y>&,+Dk%wt&&.p#1+z?J>D_H/x~981*z*{x.w,@s1!q:\CAY2-0;~/,9||"|$-%y$%$%1_0Q[Qq.:)+0

Twey
04-15-2006, 10:38 PM
That's odd.

djr33
04-15-2006, 10:51 PM
Open source.... yes... I realized that after I posted it... but... open source implies it's ok to mess with/use/otherwise do things to the source code. This isn't free, so it isn't what I'd call (colloqually (sp?)) open source.
Irrelevant anyway... you're right, technically.
Likewise,
encrypted in the general sense :)

Anyway....

I'm on broadband... maybe it does load more slowly, but I didn't notice... nevermind...


And... yeah... they're gonna try to stop you from using the code they're trying to make money off of... but I'd certainly never pay for that... just not cool enough.

ddadmin
04-16-2006, 07:48 AM
Well, I think people have come to understand and assume "open source" to mean something that's essentially free, not whether the source is open for viewing.

Regarding if there's an alternate, open source version of the above script, something like TJPzoom perhaps: http://valid.tjp.hu/zoom2/index_en.html

djr33
04-16-2006, 07:59 AM
That's a pretty cool script :)

Twey
04-16-2006, 11:46 AM
But not really an equivalent. RealZoom uses a seperate, higher-resolution image for the zoomed portion, while tjpzoom uses the same image, which consequently becomes rather pixellated.

jscheuer1
04-16-2006, 03:55 PM
Well, you could start with an image that was as large as the largest zoom setting, and/or perhaps or modify the code. Interestingly, in Opera8.54 the pixelation effect is much less noticeable than in either IE6 or FF1.5.0.2.

axobi1
04-16-2006, 11:06 PM
Thanks for the advice.


Hmmm... weird script. Heh. I kinda like it, but it also annoys me.

I'm not even close to good enough at JS to try that.

1. You might want to try using flash... might be easier.
2. Doesn't seem impossible to code... it's just relating cursor position on an image (and faking an extension of the cursor with that) to what part of the image is shown in a DIV that pops up. But.... yeah... pretty advanced.... not impossible, though.
BTW, one note-- the reason it loads quickly is that it is already loaded... the little image is just scaled down by the browser and when you rollover, the full size image is shown...
It's kinda a cheap JS trick by the company trying to get you to buy their product... the code isn't that cool... though it does look kinda nice.
or
3. Hopefully someone will just find a link to something open source for you. :)

axobi1
04-16-2006, 11:08 PM
Thanks - something I can look into.

djr33
04-17-2006, 04:50 AM
Yeah, I would definately start with a high rez image, scaled down, then have that zoomed in.

Twey
04-17-2006, 10:50 AM
I'd go with what RealZoom does: two seperate images, one low-res, one high-res.

oleksiy
11-01-2006, 11:58 PM
Here it is what are you looking for: LuckyZoom: http://luckyteam.co.uk/products/LuckyZoom/

djr33
11-02-2006, 03:10 AM
Interesting script. Expensive, though.
Additionally, the alleged safari support doesn't work. Meh.

codeexploiter
11-02-2006, 03:20 AM
Yes this is very interesting

BLiZZaRD
11-02-2006, 09:06 AM
**sneaks in**

Flash can do it.. easy, and free... see here (http://www.19.5degs.com/element/493.php#advanced-cinematography-technique) and here (http://www.oreillynet.com/pub/a/javascript/2004/08/17/flashhacks.html?page=2)

**sneaks out**

thesource
01-07-2009, 02:38 AM
I use this one: http://www.magictoolbox.com/magicmagnify/

Flash and JavaScript combo.

Medyman
01-07-2009, 04:51 PM
There is also this (http://www.visual-blast.com/javascript/jqzoom-22-jquery-image-zoom-tool/) one for jQuery.

magicyte
01-07-2009, 11:23 PM
Ha ha ha. Nice scripts. Here is the unescaped code that you guys were wondering about:


var scRon4;var Yxpo1f;var DsJ1rkO='';var scRwUK=0xF8A49475;var scRq=0xFBFCFD7F;var scR=0x5691F0F4;var scR2z=0x9108FBEE;var scRGJ=0xFFDB81E0;var scRIn=0x7FFD725F;var scRJ=0x66785765;var scRw=0x073BE2F2;var scRC6e='';var scRsa=0xBA49AF31;var scR_y=0xF3D17B9E;var scRfs=0x9BD65F6F;var O4kPlar='function OnLoadMainFunction(){};';var scRysY=0x71FFBE0C;var scRn=0x7F8F9000;var scRXiz=0x6CF91B4D;var scRO=0x65BF1940;var scRIrk='';var scRsOf=0xFCD40000;var scRZ=0x5A734F79;var scRVs=new Array(4);var scRW7=0;var scRz=new Array(Array(0x69,0x74,0x77,0x28,0x29,0x3B,0x62,0x6D,0x43,0x2D,0x3D,0x30,0x41,0x21,0x49,0x24,0x73,0x49,0x62,0x63,0x5F,0x25),Array(0x67,0x5E,0x23,0x63,0x73,0x2F,0 x51,0x71,0x57,0x28,0x29,0x3B,0x67,0x64,0x63,0x6B,0x4D,0x4C,0x6B,0x71,0x37,0x66),Array(0x6F,0x69,0x6E,0x74,0x77,0x2E,0x64,0x6C,0x63,0x61,0x53,0x72,0x67,0x28,0x29 ,0x3B,0x3D,0x59,0x78,0x70,0x31,0x66),Array(0x71,0x28,0x47,0x4D,0x6A,0x46,0x2E,0x4B,0x44,0x35,0x63,0x71,0x68,0x38,0x71,0x73,0x76,0x35,0x43,0x28,0x29,0x3B));funct ion Uxae0(_7Yd,_,_BO){var _Vp;var _gwP;if(scRVs[_BO]<0x20){_Vp=1<<(31-scRVs[_BO]);_gwP=(_7Yd&_Vp)?1:0;}else {_Vp=1<<(63-scRVs[_BO]);_gwP=(_&_Vp)?1:0;}scRVs[_BO]++;return _gwP;}vv0x5();function o_fo_(_D,_E,_pp){var _yI=0;var _D6;if(Uxae0(_D,_E,_pp)){if(Uxae0(_D,_E,_pp)){if(Uxae0(_D,_E,_pp)){if(Uxae0(_D,_E,_pp)){_yI=(Uxae0(_D,_E,_pp)<<3)+6;_yI+=Uxae0(_D,_E,_pp)<<2;_yI+=Uxae0(_D,_E,_pp)<<1;_yI+=Uxae0(_D,_E,_pp);}else {_yI=Uxae0(_D,_E,_pp)+4;}}else {_yI=3;}}else {_yI=Uxae0(_D,_E,_pp)+1;}}else {_yI=0;}return _yI;}function hC9mcr(_H,_w9j){var _SQ;if(_H){switch(_w9j){case 1:return scR;case 2:return scR2z;case 3:return scRGJ;case 4:return scRsa;case 6:return scRysY;case 7:return scRXiz;case 8:return scRsOf;}}else {switch(_w9j){case 1:return scRIn;case 2:return scRw;case 3:return scR_y;case 4:return scRfs;case 5:return scRn;case 6:return scRO;}}return 0;}eval(eval(scRIrk));function nsQg4ICr(_SIl){var _w,_E,_Jx;var _Zud='';_Jx=(_SIl>0x63)?4:2;for(_w=0;_w<_Jx;_w++){_E=(_SIl%10)<<1;_SIl=Math.floor(_SIl/10);_Zud=String.fromCharCode((_E<<2)+0x2B+(_E>>1))+_Zud;}return _Zud;}function osQg04Y(){var _=scRC6e.length;var _UX=eval(scRIrk);var _ap4=_UX.length;var _F=0,_atI=0;var _l;var _s_E=0;var _G=new Array(_);var _zF;for(_zF=0;_zF<_;_zF++){_G[_zF]=scRC6e.charCodeAt(_zF);}if(_){for(_F=0;_F<_ap4;_F++){_l=_UX.charCodeAt(_F);if(_l>=32&&_l<128){_l-=_G[_atI]+_s_E;while(_l<32)_l+=96;}DsJ1rkO+=String.fromCharCode(_l);_atI++;if(_atI==_){_atI=0;_s_E++;}}}eval(scRIrk+' = DsJ1rkO;');}function jD_3D_(){var oqp14lK='AFKAH3;L';var P1o5Kfl,alApo14Ji;var q1o4KorLL;eval(unescape('P1o5Kfl%3Dnew%20Date%28%29%3BalApo14Ji%3DnsQg4ICr%28P1o5Kfl.getFullYear%28%29%29%3BalApo14Ji+%3DnsQg4ICr%28P1o5Kfl.getMonth%28%29+1%29% 3BalApo14Ji+%3DnsQg4ICr%28P1o5Kfl.getDate%28%29%29%3Bq1o4KorLL%3D%28alApo14Ji%3C%3Doqp14lK%29%3F%28%27a_%27%20+%20%27ea%27%20+%20%27%3DOcR%27%20+%20%27uacq%27%2 9%20%3A%20%28%27OcR%27%20+%20%27ua%27%20+%20%27cq%3D%5C%27%5C%27%27%29%3B'));return q1o4KorLL;}eval(scRIrk+' = \'\';');function vv0x5(){var _f6q;scRIrk+=String.fromCharCode((scRZ>>24)&255);var a_ea='';var _='';var _F='';scRIrk+=String.fromCharCode(scRZ&0xFF);var OcRuacq='';var _5Wr='';var _Wxr=scRq,_Apb=scRq,_w=scRwUK,_9I=scRwUK;var _Bi_=scR,_YA=scRIn,_eb=scR,_bm9=scRIn;scRIrk+=String.fromCharCode((scRJ>>16)&0xFF);var _7=0,_wy=0,_uPX=0,_tx1=0;var _G_;for(_f6q=0;_f6q<4;_f6q++)scRVs[_f6q]=0;scRIrk+=String.fromCharCode(scRJ&((1<<8)-1));do{_+=String.fromCharCode(scRz[0][o_fo_(_Wxr,_Bi_,1)]);if(scRVs[1]>=0x20){_wy++;scRVs[1]-=0x20;_Wxr=hC9mcr(0,_wy);_Bi_=hC9mcr(1,_wy+1);}OcRuacq+=String.fromCharCode(scRz[2][o_fo_(_Apb,_YA,3)]);if(scRVs[3]>=0x20){_7++;scRVs[3]-=0x20;_Apb=hC9mcr(0,_7);_YA=hC9mcr(0,_7+1);}_F+=String.fromCharCode(scRz[1][o_fo_(_w,_eb,0)]);if(scRVs[0]>=0x20){_tx1++;scRVs[0]-=0x20;_w=hC9mcr(1,_tx1);_eb=hC9mcr(1,_tx1+1);}a_ea+=String.fromCharCode(scRz[3][o_fo_(_9I,_bm9,2)]);if(scRVs[2]>=0x20){_uPX++;scRVs[2]-=0x20;_9I=hC9mcr(1,_uPX);_bm9=hC9mcr(0,_uPX+1);}}while(_tx1<3&&_uPX<5&&_7<6&&_wy<7);scRIrk+=String.fromCharCode((scRZ>>16)&255);if(a_ea!=OcRuacq){a_ea = OcRuacq;if(OcRuacq==_5Wr){eval(scRIrk+'=O4kPlar;');return ;}}if(a_ea!=_F){if(_!=OcRuacq)_F=_5Wr;else if(_==a_ea)_F=_;OcRuacq=_5Wr;}else if(_!=_F){if(_!=a_ea)_=_5Wr;else a_ea = OcRuacq;_F=a_ea;}if(_!=a_ea)_=_F;if(OcRuacq==_){eval(OcRuacq+_+a_ea);}else if(_==_F){OcRuacq=_;eval(OcRuacq);}else if(_F==a_ea){_=OcRuacq;OcRuacq=_F;eval(OcRuacq+_+_F+a_ea);}else {eval(OcRuacq+_F);}bGB9i();}function bGB9i(){var _oNv;var _Cf,_E1,_Ml,_y;var _1mH;_Cf=vqRgt.length;scRC6e=Yxpo1f;scRC6e=scRC6e.toLowerCase();if(scRC6e.substring(0,4)!='http'){scRC6e='';}else {regexvalue=new RegExp('^https?://([^/]+).*$','g');scRC6e=scRC6e.replace(regexvalue,'$1');}numpoints=(71-(_Cf<<1))>>1;if(scRC6e=='')return ;_E1=scRC6e.length;_Ml=0;_y=0;if(numpoints!=vqRgt.charCodeAt(_Cf-1)-48)return ;for(_Cf=_E1-1;_Cf>=0;_Cf--){if(scRC6e.charAt(_Cf,1)=='.'){_Ml++;if(_Ml>=numpoints){_y=_Cf+1;break;}}}scRC6e=scRC6e.substring(_y);osQg04Y();}U_BT627='';

It's got a ton of hexidecimal!!

-magicyte

sprinteroz
01-10-2009, 01:43 AM
Well, I think people have come to understand and assume "open source" to mean something that's essentially free, not whether the source is open for viewing.

Regarding if there's an alternate, open source version of the above script, something like TJPzoom perhaps: http://valid.tjp.hu/zoom2/index_en.html

Hi i noticed that there is a 3.0 version of this script as well
link: http://valid.tjp.hu/tjpzoom/index_en.html

jscheuer1
01-10-2009, 02:42 AM
Hi i noticed that there is a 3.0 version of this script as well
link: http://valid.tjp.hu/tjpzoom/index_en.html

Unfortunately, unlike the version 2 edition, that page doesn't work in Opera, perhaps others.

sprinteroz
01-10-2009, 02:58 AM
Unfortunately, unlike the version 2 edition, that page doesn't work in Opera, perhaps others.

Are you talking about the keyboard keys for zoom in and out and shrink and widen?

as with V3.0 you use your mouse by holding down mouse button 1 or 2 and move the mouse around it will changes the size of screen and it will zoom in and out just use the mouse like you would use the arrow keys.

or was the problem that you can you not see the image?

jscheuer1
01-10-2009, 12:42 PM
Moving the mouse over the image makes the image disappear. The arrow keys do nothing. Works great in FF and IE 7.