JavaScript - How to make a website go "crazy"
Datalk.com Computer, Internet, Games Talk FAQ




  Datalk.com - Computers, Internet, Games > Web Design and Web Development > Web Programming Talk > Code Examples

Topic JavaScript - How to make a website go "crazy"


Reply
 
February 1st, 2007   Post 1
-HAL-
Administrator
 

Posts: 856
Country: Norway
Microchips: 2,707
Gadgets
Ubuntu Tux redhat Windows
Commodore Intel NVIDIA

Post - JavaScript - How to make a website go "crazy"


I just found this little JavaScript snippet at another website and I'm sure you'll find it at least as much amusing as I did.

Just navigate to any site containing images, like www.datalk.com, copy the code below and paste it in the address bar.
Click enter to make the images fly around..

Oh, it's so much fun...

HTML Code:
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);
 

April 14th, 2007   Post 2
gsmile
Byte

Posts: 30
Country: Canada
Microchips: 132
Gadgets


I don't get it. Do I just enter this code in the address bar and that's it? No [/] slash needed or anything? It gave me a blank error page. I really want to try it! :P

I'm sorry for the double post, but I just wanted to say thanks!! It's a great script! I had fun. And where did you find it? :P

Last edited by -HAL-; April 15th, 2007 at 00:39. Reason: double-post
 
April 16th, 2007   Post 3
Heather
Byte

Posts: 30
Country: United States
Microchips: 130
Gadgets


Bahahahaha.

Perhaps I'm easily amused, but:

Bahahahaha!

I know a geek who's going to kill his girlfriend in a minute. It's been nice knowin' y'all.

Thanks for the script. That's gonna come in handy.
 
June 3rd, 2007   Post 4
svarog
Byte

Posts: 43
Country: United States
Microchips: 143
Gadgets


LOL. Kewl script.

And you can change the numbers to make it go different directions.

Had some nice time playing around with this thingy.
 
June 23rd, 2007   Post 5
impilcature
Byte
 

Posts: 55
Country: United States
Microchips: 100
Gadgets


That is WICKEDLY AWESOME. time for a email forwarding session.

edited for spelling

Last edited by impilcature; June 23rd, 2007 at 12:41.
 
Reply


Similar Threads
Thread Thread Starter Forum Replies Last Post
4 "Reasons" to Dump Linux -HAL- Linux Talk 3 January 4th, 2008 09:54
Top 10 "highly useful" gadgets and gizmos for your office -HAL- Gadgets and Gizmos Talk 7 June 3rd, 2007 13:35
Wordpress 2.1 "Ella" just released -HAL- Web Design Talk and Reviews 4 May 21st, 2007 22:42
The Datalk New Years "Treasure Hunt" -HAL- Forum Information 3 April 5th, 2007 21:18
Wannaspell.com - "multiplayer" online magnetic whiteboard -HAL- The Datalk Lounge 0 February 1st, 2007 21:45




Content Relevant URLs by vBSEO


  Contact Us         Library