Victory Road Archive

You are viewing an archive of Victory Road.

Victory Road closed on January 8, 2018. Thank you for making us a part of your lives since 2006! Please read this thread for details if you missed it.

Technology → Fun Javascript code; Dancing Images

Page 1 of 1

1. Buizel456 said on April 23, 2010, 05:10:54 PM (-07:00)

Haxorus
391 posts

Code:
javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=20
0; DI=document.images; DIL=DI.length; function A(){for(i=0; i-DIL; i++){DIS=DI[ i ].style; D
IS.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)
Title says all. Just copy and paste into your browser. If you wanna edit sites, Click Here

2 attached images
Capture.PNG
Capture2.PNG

2. Yoshizard said on April 23, 2010, 08:10:56 PM (-07:00)

Haxorus
360 posts

The images were moving so fast, that my comp was freezing up on some pages. XD

3. Jaredvcxz said on April 24, 2010, 04:28:03 AM (-07:00)

Giratina
3,185 posts

Awesome. The images still retain their links and other functions, too.

4. emperorempoleon2 said on April 24, 2010, 10:10:15 AM (-07:00)

Haxorus
439 posts

IT'S A TORNADO!!!!!

5. FreezeWarp said on April 24, 2010, 12:30:36 PM (-07:00)

Kyurem
2,186 posts

*goes to Javascript console*

Haha, this is fun.

Edit: help the images!

1 attached image
7.png

6. Buizel456 said on April 26, 2010, 10:53:03 PM (-07:00)

Haxorus
391 posts

Seems people are having fun with it

7. GuildmasterWigglytuff said on April 27, 2010, 04:48:19 AM (-07:00)

Zoroark
273 posts

My internet froze sometimes, but it was cool.

8. Dilster3000 said on May 6, 2010, 07:43:24 AM (-07:00)

Haxorus
314 posts

I am not surprised, I got this code in an other forum back in 2008.
I loved it but now it's kinda boring..

9. Ningamer said on May 6, 2010, 08:00:19 AM (-07:00)

Giratina
3,415 posts


That's awesome! I have one somewhere that lets you fling the images about.

10. LucarioMario said on January 5, 2011, 01:18:54 PM (-08:00)

Volcarona
547 posts

Awsomeness.

11. SolarYoshi said on January 13, 2011, 05:17:57 PM (-08:00)

Haxorus
345 posts

How do I make this work?

12. LucarioMario said on January 14, 2011, 01:09:12 PM (-08:00)

Volcarona
547 posts

Quote:
Originally Posted by Zekrom123 View Post
How do I make this work?
You copy and paste the code on the URL bar at the top. It probably doesn't work on a new tab, you have to paste it on while you're already viewing a web page so it works. In this case, all the images on the page start dancing.

Page 1 of 1

User List - Contact - Privacy Statement - Lycanroc.Net