PDA

View Full Version : Make allForums.net go crazy


smla09
03-17-2007, 10:26 PM
Using Internet Explorer, go to allforums.net
After it loads fully, copy-paste this code on IE's address bar...
javascript:R=0; x1=.1; y1=.05; x2=1000; 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)
Dont worry, its safe. Just enjoy. ;)

The Dude
03-17-2007, 11:58 PM
Seen dat be4 :)

Pendragon
03-18-2007, 12:23 AM
1st can someone do something about this cataletyc person. She's getting annoying.

2nd that was freaky. Good thing I don't do drugs anymore. At least according to my wife and employer I don't. That was pretty cool though

~Sal~
03-18-2007, 07:02 AM
O. M G. I can't believe I was trusting enough to try that...but that is some cute!

Ride4Life
03-18-2007, 08:03 AM
Boo hoo hooo
Can someone tell me what happened?
All I got was one column that resized. No super duper screen graphics, no freaky shit, nor did my computer explode...
I'm bummed

~Sal~
03-18-2007, 08:13 AM
Boo hoo hooo
Can someone tell me what happened?
All I got was one column that resized. No super duper screen graphics, no freaky shit, nor did my computer explode...
I'm bummed

I got all the little icons and graphics jumping all over the page...:woohoo:

Napsterbater
03-18-2007, 08:36 AM
Boo hoo hooo
Can someone tell me what happened?
All I got was one column that resized. No super duper screen graphics, no freaky shit, nor did my computer explode...
I'm bummed
You seem to have been using Firefox.

mikezila
03-18-2007, 08:41 AM
I got all the little icons and graphics jumping all over the page...:woohoo:
it was cute, but i was expecting more.

Napsterbater
03-18-2007, 09:09 AM
Try this:

javascript:R=0; x1=.1; y1=.05; x2=1000; y2=.24; x3=1.6; y3=.24;x4=600; y4=400; x5=500; y5=400; 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)

Brooks
03-19-2007, 11:05 PM
That's really cool.

Darth Be'lal
03-19-2007, 11:14 PM
That was a neat bit of programming, wish I could come up with things like that, dammit.

Dio Seijuro
03-19-2007, 11:30 PM
Mess with the functions that give the left and top positions (DIS.left=Math.sin(R*x1+i*x2+x3)*x4+x5;DIS.top=Mat h .cos(R*y1+i*y4.5+y3)*y4+y5} and you can get different patterns. Unfortunately my math is not as good as it used to be...

Dio Seijuro
03-20-2007, 12:27 AM
I can get it to do a circle, but I've gotta play around a little for cooler shapes or dynamically changing shapes.

javascript:R=0; x1=.1; y1=.05; x2=1000; y2=.24; x3=1.6; y3=.24;x4=300; y4=300; x5=500; y5=400;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*x1+i*x2+x3)*x4+x5}R++ }setInterval('A()',30); void(0)

Dio Seijuro
03-20-2007, 12:40 AM
Got it to do 8 now.

javascript:R=1; x1=.1; y1=.05; x2=1000; y2=.24; x3=1.6; y3=.24;x4=300; y4=400; x5=500; y5=400;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)*Math.cos(R*x1+i*x2)*x4+x5;DIS.top=Math.c os(R*x1+i*x2+x3)*x4+x5}R++ }setInterval('A()',30); void(0)

Note: the "cos" on the last line is separated, and I can't get the editor to close the gap, so you got to close it manually.

Dio Seijuro
03-20-2007, 12:51 AM
Got a heart but it's sideways...:p

javascript:R=1; x1=.1; y1=.05; x2=1000; y2=.24; x3=1.6; y3=.24;x4=230; y4=400; x5=600; y5=400;DI=document.images; DIL=DI.length;function A(){for(i=0; i<DIL; i++){DIS=DI[ i ].style;DIS.position='absolute';DIS.left=Math.cos(R *x1+i*x2)*(1-Math.cos(R*x1+i*x2))*x4+x5;DIS.top=Math.sin(R*x1+i *x2)*(1-Math.cos(R*x1+i*x2))*x4+y5}R++ }setInterval('A()',30); void(0)

Dio Seijuro
03-20-2007, 01:52 PM
Tinkered around some more, and here be a heart!

javascript:R=1; x1=.1; y1=.05; x2=1000; y2=.24; x3=1.6; y3=.24;x4=230; y4=400; x5=300; y5=500;DI=document.images; DIL=DI.length;function A(){for(i=0; i<DIL; i++){DIS=DI[ i ].style;DIS.position='absolute';DIS.top=(-1)* Math.cos(R *x1+i*x2)*(1-Math.cos(R*x1+i*x2))*x4+x5;DIS.left=Math.sin(R*x1+ i *x2)*(1-Math.cos(R*x1+i*x2))*x4+y5}R++ }setInterval('A()',30); void(0)

~Sal~
03-24-2007, 10:12 PM
Tinkered around some more, and here be a heart!

Wow Dio, that was really, really cool!