Jump to content

Welcome to Geeks to Go - Register now for FREE

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
Photo

Cool little trick.


  • Please log in to reply

#1
Mike

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.

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

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

  • 0

Advertisements


#2
Chopin

Chopin

    Member 2k

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

#3
Mike

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

#4
Chopin

Chopin

    Member 2k

  • Member
  • PipPipPipPipPip
  • 2,639 posts
Hehe. All right :)
  • 0

#5
Chopin

Chopin

    Member 2k

  • Member
  • PipPipPipPipPip
  • 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

Troy

    Tech Staff

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

All I got was this.

:)

Troy
  • 0

#7
Chopin

Chopin

    Member 2k

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

#8
Troy

Troy

    Tech Staff

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

wooooooooot!

That's great!
  • 0

#9
TheQuickBrownFox

TheQuickBrownFox

    Member

  • Member
  • PipPipPip
  • 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

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

hiloh2o

    Member

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

#12
Abydos

Abydos

    Member

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


GTG UNDER ATTACK!!!!!!


:)
  • 0

#13
TheQuickBrownFox

TheQuickBrownFox

    Member

  • Member
  • PipPipPip
  • 714 posts
reminds me of Desktop Destroyer. :)
  • 0

#14
Cold Titanium

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.

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:
  • 0

#15
WishBone

WishBone

    Member

  • Member
  • PipPip
  • 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

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP