Page 1 of 1

Cool Google Images Effect.

Posted: Mon Jul 23, 2007 9:35 pm
by JellyFish
I found this cool little... Widget, so to speak, on youtube. Insert this in the url when at any google image search result and then press enter:

Code: Select all

javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; DI= document.images; DIL=DI.length; function A(){for(i=0; i<DIL; i++){DIS=DI[ i ].style; DIS.position='absolute'; DIS.left=Math.sin(R*x1+i*x2+x3)*x4+x5; DIS.top=Math.cos(R*y1+i*y2+y3)*y4+y5}R++}setInterval('A()',5 ); void(0)
There was also an iPhonifycode snippet that only works with Safari.

What I would like to know is: why when I try "javascript: document.images[0].src = 'http://blabla.com/image.jpg';" in the address bar of firefox it doesn't work, but in Safari it does?

EDIT: Aha! In firefox you need to void the statement so that firefox doesn't return any values. Is this the case?

Posted: Mon Jul 23, 2007 9:51 pm
by Benjamin
Pretty cool yo :)

Posted: Mon Jul 23, 2007 10:09 pm
by JellyFish
Would be even more cool if I could some how incorporate this into a widget browser extension. Imagen, just bookmark the code, click the bookmark, up pops the widget room and there you have it, your widgets.

Wonder if they already have something like this. I haven't found it. :dubious:

Posted: Tue Jul 24, 2007 10:36 am
by RobertGonzalez
Is that supposed to do that, or is that an potential exploit?

Posted: Tue Jul 24, 2007 11:47 am
by hawleyjr

Posted: Tue Jul 24, 2007 12:24 pm
by RobertGonzalez
Strangely I remembered that link and effect. Just not the code that did it.

Posted: Wed Jul 25, 2007 2:56 am
by shiznatix
well I for one am glad that got reposted since I did not see it the first time. So cool.

Posted: Wed Jul 25, 2007 7:02 pm
by JellyFish
@hawleyjr: Man... Now I feel like Microsoft... :(

@<span style='color:blue' title='I&#39;m naughty, are you naughty?'>smurf</span> || $#itznatix: Atleast I did something right. :wink: