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:
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
paste the above code into the url bar and see what happens =D
#2. Posted:
Status: Offline
Joined: Jun 25, 201014Year Member
Posts: 645
Reputation Power: 25
ummmmmmmm, nothing happened!!!
- 0useful
- 0not useful
#3. Posted:
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
- 0useful
- 0not useful
#4. Posted:
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!
Holy crap that is amazing!
- 0useful
- 0not useful
#5. Posted:
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
- 0useful
- 0not useful
#6. Posted:
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
- 0useful
- 0not useful
#7. Posted:
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?
- 0useful
- 0not useful
#8. Posted:
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);
- 1useful
- 0not useful
#9. Posted:
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
lol, great find
- 0useful
- 0not useful
#10. Posted:
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..
- 0useful
- 0not useful
You are viewing our Forum Archives. To view or take place in current topics click here.