Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account

# Cool little trick.

### #1 Mike Posted 21 June 2008 - 07:53 AM

Mike

Malware Monger

• Retired Staff
• 2,745 posts
Well I hope this is the appropriate place (I'd call this a gag...)

I saw this over at ForoSpyware and thought it was really cool.

java script: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("img"); 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);

Note: Java Script needs to be one word, i.e no space between Java and Script, IPB boards apparently don't like it that way and won't let you write the word together lol.

Put a few smilies in your post for full action!

It will make your icons fly around, to get rid of it you just have to close the page you are on or navigate away from it then everything will be back to normal.

Enjoy

Mike

Edited by Mike, 21 June 2008 - 08:32 AM.

• 0

### #2 Chopin Posted 21 June 2008 - 08:05 AM

Chopin

Member 2k

• Member
• 2,639 posts
Should a space be between java and script? Neat trick, by the way!
• 0

### #3 Mike Posted 21 June 2008 - 08:26 AM

Mike

Malware Monger

• Topic Starter
• Retired Staff
• 2,745 posts
Nope, I edited my post.

Seems that IPB boards don't like you writing Javascript as one word....

edit: heh, what do ya know? It works here. I'm not crazy!

Edited by Mike, 21 June 2008 - 08:34 AM.

• 0

Chopin

Member 2k

• Member
• 2,639 posts
Hehe. All right
• 0

### #5 Chopin Posted 21 June 2008 - 06:54 PM

Chopin

Member 2k

• Member
• 2,639 posts
I think it's listed as a swear in the custom list. Blair probably has something to say about this
• 0

### #6 Troy Posted 22 June 2008 - 06:10 AM

Troy

Tech Staff

• Technician
• 8,841 posts
I must be stooopid. What's a navigation bar?

Troy
• 0

### #7 Chopin Posted 22 June 2008 - 07:20 AM

Chopin

Member 2k

• Member
• 2,639 posts
remove space between java and script
• 0

### #8 Troy Posted 22 June 2008 - 07:35 AM

Troy

Tech Staff

• Technician
• 8,841 posts
Aaaaaahhhh! My pictures are going crazy!

wooooooooot!

That's great!
• 0

### #9 TheQuickBrownFox Posted 22 June 2008 - 07:06 PM

TheQuickBrownFox

Member

• Member
• 714 posts
kewl...i needed around 5mins to get this working!
i actually needed to copy the code one line at a time.
• 0

### #10 BHowett Posted 26 June 2008 - 04:06 PM

BHowett

OT Moderator

• Moderator
• 4,649 posts
I am always the last one to hear about the cool stuff going on around here …. It was kind of fun I guess.

Now if we could get it somehow where the staff could just randomly drop it into a users post we could really have some fun with it.
• 0

### #11 hiloh2o Posted 27 June 2008 - 03:19 PM

hiloh2o

Member

• Member
• 47 posts
I Love it! Thanks for sharing
• 0

### #12 Abydos Posted 27 June 2008 - 04:54 PM

Abydos

Member

• Member
• 299 posts
What could we do if GTG were under attack from Mars??

GTG UNDER ATTACK!!!!!!

• 0

### #13 TheQuickBrownFox Posted 28 June 2008 - 01:26 AM

TheQuickBrownFox

Member

• Member
• 714 posts
reminds me of Desktop Destroyer.
• 0

### #14 Cold Titanium Posted 15 April 2009 - 09:18 PM

Cold Titanium

Trusted Helper

• Malware Removal
• 1,735 posts

Well I hope this is the appropriate place (I'd call this a gag...)

I saw this over at ForoSpyware and thought it was really cool.

java script: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("img"); 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);

Note: Java Script needs to be one word, i.e no space between Java and Script, IPB boards apparently don't like it that way and won't let you write the word together lol.

Put a few smilies in your post for full action!

It will make your icons fly around, to get rid of it you just have to close the page you are on or navigate away from it then everything will be back to normal.

Enjoy

Mike

Sorry for being a necromancer but how exactly does this work? I got it to work but I don't understand how it does this. Would someone please enlighten me?
• 0

### #15 WishBone Posted 22 April 2009 - 02:32 PM

WishBone

Member

• Member
• 55 posts
Clear your address bar, paste the code then hit enter. Remember to edit "java script" and make it one word. I got more below:

Refresh the page to end the effect.

Edit any webpage(cant save obviously):
`java script:document.body.contentEditable='true'; document.designMode='on'; void 0`

Dancing Images as seen on first post:
`java script: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)+"px"; DIS.top=(Math.cos(R*y1+i*y2+y3)*y4+y5)+"px"}R++}setInterval('A()',5); void(0);`

Imagefalls?:
`java script: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("img"); DIL=DI.length; function A(){for(i=0; i-DIL; i++){DIS=DI[ i ].style; DIS.position='absolute'; DIS.left=(Math.sin(R*1+i*x2+x3)*x1+x2)+"px"; DIS.top=(Math.cos(R*y1+i*y2+y3)*y4+y5)+"px"}R++}setInterval('A()',50); void(0);`

Swirl:
`java script: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("img"); 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);`

Image Race:
`java script: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("img"); DIL=DI.length; function A(){for(i=0; i-DIL; i++){DIS=DI[ i ].style; DIS.position='absolute'; DIS.left=(Math.tan(R*x1+i*x2+x3)*x4+x5)+"px"; DIS.top=(Math.sin(R*y1+i*y2+y3)*y4+y5)+"px"}R++}setInterval('A()',5); void(0);`

Swirl Almost Everything:
`java script: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);`

Ever seen a Yahoo Messenger BUZZ?:
`java script:function Shw(n) {if (self.moveBy) {for (i = 35; i > 0; i--) {for (j = n; j > 0; j--) {self.moveBy(1,i);self.moveBy(i,0);self.moveBy(0,-i);self.moveBy(-i,0); } } }} Shw(6)`

Edited by Cashes, 22 April 2009 - 02:33 PM.

• 0

### Similar Topics

#### 0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users