Magic of javascript!!!

Any problem with javascript can be discussed here.
Locked
blue-sky
Posts: 33
Joined: Tue Jun 12, 2007 3:41 pm

Magic of javascript!!!

Post 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!!


Lixas
Posts: 750
Joined: Wed Feb 16, 2005 4:21 pm

Post 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
Image
anish
Posts: 353
Joined: Fri Apr 27, 2007 12:34 pm
Contact:

Post by anish »

thats a cool trick that you found out to .
Thnx really nice trick.
Gyanu
Posts: 338
Joined: Mon Jul 30, 2007 2:03 pm
Contact:

Post by Gyanu »

Og i am afraid yar.
Locked