You are viewing our Forum Archives. To view or take place in current topics click here.
Neat little javascript code
Posted:

Neat little javascript codePosted:

iBullet
  • TTG Commander
Status: Offline
Joined: Jun 24, 200915Year Member
Posts: 6,735
Reputation Power: 1134
Status: Offline
Joined: Jun 24, 200915Year Member
Posts: 6,735
Reputation Power: 1134
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.getElementsByTagName("div"); 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);

paste the above code into the url bar and see what happens =D
#2. Posted:
Screw
  • Prospect
Status: Offline
Joined: Jun 25, 201014Year Member
Posts: 645
Reputation Power: 25
Status: Offline
Joined: Jun 25, 201014Year Member
Posts: 645
Reputation Power: 25
ummmmmmmm, nothing happened!!!
#3. Posted:
-Horizon-
  • TTG Senior
Status: Offline
Joined: Jul 25, 201014Year Member
Posts: 1,022
Reputation Power: 40
Status: Offline
Joined: Jul 25, 201014Year Member
Posts: 1,022
Reputation Power: 40
ermm i cant write properly help i cant click submit stop running away wrong smileyy nooooo
#4. Posted:
-Twitter-
  • TTG Destroyer
Status: Offline
Joined: Jan 09, 201014Year Member
Posts: 7,653
Reputation Power: 421
Status: Offline
Joined: Jan 09, 201014Year Member
Posts: 7,653
Reputation Power: 421
WHAT THE FUDGE!!!!!

Holy crap that is amazing!
#5. Posted:
-Horizon-
  • TTG Senior
Status: Offline
Joined: Jul 25, 201014Year Member
Posts: 1,022
Reputation Power: 40
Status: Offline
Joined: Jul 25, 201014Year Member
Posts: 1,022
Reputation Power: 40
have you got any more that was quite funny
#6. Posted:
Jake_J
  • Spooky Poster
Status: Offline
Joined: Mar 07, 201014Year Member
Posts: 12,067
Reputation Power: 641
Status: Offline
Joined: Mar 07, 201014Year Member
Posts: 12,067
Reputation Power: 641
I'm doing this when I'm on my laptop, I'm on iPod ATM
#7. Posted:
TooNastie
  • TTG Contender
Status: Offline
Joined: May 02, 201014Year Member
Posts: 3,257
Reputation Power: 164
Status: Offline
Joined: May 02, 201014Year Member
Posts: 3,257
Reputation Power: 164
Thats awesome@! ;) yu code that???1?
#8. Posted:
-Chaos
  • Prospect
Status: Offline
Joined: Aug 10, 201014Year Member
Posts: 663
Reputation Power: 28
Status: Offline
Joined: Aug 10, 201014Year Member
Posts: 663
Reputation Power: 28
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.getElementsByTagName("div"); 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);
#9. Posted:
TTG_ST3VEN
  • TTG Senior
Status: Offline
Joined: Mar 12, 201014Year Member
Posts: 1,273
Reputation Power: 54
Status: Offline
Joined: Mar 12, 201014Year Member
Posts: 1,273
Reputation Power: 54
WTF?

lol, great find
#10. Posted:
Iorio
  • TTG Addict
Status: Offline
Joined: Jan 31, 200915Year Member
Posts: 2,907
Reputation Power: 120
Status: Offline
Joined: Jan 31, 200915Year Member
Posts: 2,907
Reputation Power: 120
What does it do? It doesn't do anything for me..
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.