Cool little trick. - Geeks to Go Forums

Jump to content

Log in Register Register Malware removal guide How it works

Cool little trick.

#1 Mike

  • Group: Retired Staff
  • Posts: 2,745
  • Joined: 03-January 08

Posted 21 June 2008 - 07:53 AM

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.

Copy and paste this code in your navigation bar.

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 :wacko:

Mike

#2 Chopin

  • Group: Member
  • Posts: 2,639
  • Joined: 14-May 07

Posted 21 June 2008 - 08:05 AM

Should a space be between java and script? Neat trick, by the way!

#3 Mike

  • Group: Retired Staff
  • Posts: 2,745
  • Joined: 03-January 08

Posted 21 June 2008 - 08:26 AM

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! :)

#4 Chopin

  • Group: Member
  • Posts: 2,639
  • Joined: 14-May 07

Posted 21 June 2008 - 08:27 AM

Hehe. All right :)

#5 Chopin

  • Group: Member
  • Posts: 2,639
  • Joined: 14-May 07

Posted 21 June 2008 - 06:54 PM

I think it's listed as a swear in the custom list. Blair probably has something to say about this :)

#6 Troy

  • Group: Technician
  • Posts: 8,658
  • Joined: 23-October 06

Posted 22 June 2008 - 06:10 AM

I must be stooopid. What's a navigation bar?

All I got was this.

:)

Troy

#7 Chopin

  • Group: Member
  • Posts: 2,639
  • Joined: 14-May 07

Posted 22 June 2008 - 07:20 AM

remove space between java and script :)

#8 Troy

  • Group: Technician
  • Posts: 8,658
  • Joined: 23-October 06

Posted 22 June 2008 - 07:35 AM

Aaaaaahhhh! My pictures are going crazy!

wooooooooot!

That's great!

#9 TheQuickBrownFox

  • Group: Member
  • Posts: 714
  • Joined: 13-April 08

Posted 22 June 2008 - 07:06 PM

kewl...i needed around 5mins to get this working!
i actually needed to copy the code one line at a time. :)

#10 BHowett

  • Group: Retired Staff
  • Posts: 4,478
  • Joined: 08-May 07

Posted 26 June 2008 - 04:06 PM

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. :) :) :)

#11 hiloh2o

  • Group: Member
  • Posts: 47
  • Joined: 21-January 08

Posted 27 June 2008 - 03:19 PM

I Love it! :) Thanks for sharing :)

#12 Abydos

  • Group: Member
  • Posts: 299
  • Joined: 08-June 08

Posted 27 June 2008 - 04:54 PM

What could we do if GTG were under attack from Mars?? :)


GTG UNDER ATTACK!!!!!!


:)

#13 TheQuickBrownFox

  • Group: Member
  • Posts: 714
  • Joined: 13-April 08

Posted 28 June 2008 - 01:26 AM

reminds me of Desktop Destroyer. :)

#14 Cold Titanium

  • Group: Malware Removal
  • Posts: 1,735
  • Joined: 28-November 07

Posted 15 April 2009 - 09:18 PM

View PostMike, on Jun 21 2008, 08:53 AM, said:

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.

Copy and paste this code in your navigation bar.

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! :) :no: :) :) :) :) :)

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? :surrender:

#15 Cashes

  • Group: Member
  • Posts: 43
  • Joined: 17-April 09

Posted 22 April 2009 - 02:32 PM

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)


Share this topic: