Sign In | Sign Up

iNdAgAtOr's bLoG

Benvinguts... Bienvenid@s... Welcome... http://www.indagator.tk/

My Profile

iNdAgAtOr
43290
.....
Points: 135
Country: Spain
Gender: Male
Constellation: Gemini

Shortcuts

Post

Images' Whirl
Size: Large, Medium, Small Mon Apr 20, 09 02:17 PM | Category: JavaScript
9

 

Go to iNdAgAtOr's WebSite

 

Versión en castellano

 

With this javascript code you'll see the images moving around:

Open, for instance, a window with images just clicking: Ferraris on Google

Once the window with the images is opened, copy the following code and paste it in the address bar and press the Enter key and you'll see the effect:

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);

If you press Enter again and again, the images will increase their whirl speed. You can experiment with the javascript changing the code variables and so. Works on Flickr and other webpages with images as well.

Enjoy and take fun!


Link: http://blog.bitcomet.com/indagator/post_91018/ ©
Add to favorites | Quote Reads (420) | Comments (1)

Related Posts

CommentsReload

aca0517 Mon Apr 20, 09 07:41 PM

ok and vote

MAJOR GENERAL alex

TOP
You need to sign in before