Page 1 of 1

Magic of javascript!!!

Posted: Wed Jun 13, 2007 3:12 am
by blue-sky
hi,all

i'll give you all one tip how to make all images in a website fly or animated

1. firstly, go to a website such as http://www.yahoo.com

2. after go to the website, delete the url http://www.yahoo.com in address bar

3. Then put this script into the address bar:

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=****.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+'px'; DIS.top=Math.cos(R*y1+i*y2+y3)*y4+y5+'px'}R++}setInterval('A ()',5); void(0)
4. Press Enter.


Look at it , all images will be animated.

if you try in firefox that is not working, please try it in IE


Enjoy!!

Posted: Thu Jun 14, 2007 8:50 am
by Lixas
this is realu cool all images on yahoo are flying :D nice hack

and this also works on all web sites, god damn cool script :D

Posted: Fri Jun 15, 2007 8:49 am
by anish
thats a cool trick that you found out to .
Thnx really nice trick.

Posted: Tue Sep 04, 2007 7:58 pm
by Gyanu
Og i am afraid yar.