Cool Google Images Effect.
Posted: Mon Jul 23, 2007 9:35 pm
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:
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?
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)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?