Cool Google Images Effect.

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
User avatar
JellyFish
DevNet Resident
Posts: 1361
Joined: Tue Feb 14, 2006 7:18 pm
Location: San Diego, CA

Cool Google Images Effect.

Post 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?
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Post by Benjamin »

Pretty cool yo :)
User avatar
JellyFish
DevNet Resident
Posts: 1361
Joined: Tue Feb 14, 2006 7:18 pm
Location: San Diego, CA

Post 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:
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Is that supposed to do that, or is that an potential exploit?
User avatar
hawleyjr
BeerMod
Posts: 2170
Joined: Tue Jan 13, 2004 4:58 pm
Location: Jax FL & Spokane WA USA

Post by hawleyjr »

User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Strangely I remembered that link and effect. Just not the code that did it.
User avatar
shiznatix
DevNet Master
Posts: 2745
Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:

Post by shiznatix »

well I for one am glad that got reposted since I did not see it the first time. So cool.
User avatar
JellyFish
DevNet Resident
Posts: 1361
Joined: Tue Feb 14, 2006 7:18 pm
Location: San Diego, CA

Post 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:
Post Reply