Funny Javascript Internet Trick

Off topic chat. Basically anything that doesn't concern halo or halo modding can go here.
User avatar
RaVNzCRoFT




Grunge Pyre

Posts: 6208
Joined: Mon Jan 10, 2005 3:05 pm
Location: Raleigh, North Carolina, USA

Funny Javascript Internet Trick

Post by RaVNzCRoFT »

This is pretty funny. When a friend is on a website with pictures, such as this one or the results of a Google Image search, tell he or she to paste the following code into the address bar. Hell, even do it at the "post a reply" screen and watch the emoticons go for a ride. It's a javascript command that takes all the images found in the page's source code, and it spins them at the top of the screen. It's pretty fun[ny]. Try changing the settings for different results. For example, changing the x4 value to 1000 makes the image-spinning circle have a bigger radius. Experiment.

Code: Select all

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("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); 
Last edited by RaVNzCRoFT on Sun Oct 29, 2006 3:58 pm, edited 1 time in total.
fishface617





Posts: 1557
Joined: Thu Mar 16, 2006 5:50 pm
Location: RI

Post by fishface617 »

i just tried it, lol, its awsome. good find

[edit] i just tried it on the post you own picture thread right above....:shock:
Last edited by fishface617 on Sun Oct 29, 2006 3:59 pm, edited 1 time in total.
Patrickssj6




Pi Collaborator

Posts: 5426
Joined: Sat Jul 24, 2004 12:12 pm
Location: I'm a Paranoid
Contact:

Post by Patrickssj6 »

Lol awesome.

I wish I could read java a bit better
...left for good
User avatar
[cc]z@nd!




Literarian 500

Posts: 2297
Joined: Tue May 04, 2004 1:52 pm
Location: michigan

Post by [cc]z@nd! »

cool. did you code this yourself?
ASPARTAME: in your diet soda and artificial sweeteners. also, it's obviously completely safe. it's not like it will cause tumors or anything. >.>
always remember: guilty until proven innocent
a mammoth




Droplet

Posts: 1603
Joined: Fri Jul 15, 2005 7:01 pm

Post by a mammoth »

Thats awesomeness in a can.
My real name is a Mammoth, if someone who cares sees this, please change my name to a Mammoth
User avatar
dos mes





Posts: 2158
Joined: Thu Dec 29, 2005 9:58 pm
Location: Syracuse, NY

Post by dos mes »

That's pretty awesome, nice find!
a mammoth




Droplet

Posts: 1603
Joined: Fri Jul 15, 2005 7:01 pm

Post by a mammoth »

How do you in bed this in a page? :twisted:
My real name is a Mammoth, if someone who cares sees this, please change my name to a Mammoth
fishface617





Posts: 1557
Joined: Thu Mar 16, 2006 5:50 pm
Location: RI

Post by fishface617 »

a mammoth wrote:How do you in bed this in a page? :twisted:
lol that would be awsome i wonder if it can be done
User avatar
Tural




Conceptionist Acolyte Bloodhound Recreator
Socialist Connoisseur Droplet Scorched Earth
Grunge

Posts: 15628
Joined: Thu Jun 16, 2005 3:44 pm
Location: Lincoln, NE
Contact:

Post by Tural »

Gametag told me about this a few weeks ago. Funny stuff.
Grunt Rebel





Posts: 840
Joined: Thu Mar 02, 2006 4:45 pm
Location: My Xbox 360 :p
Contact:

Post by Grunt Rebel »

That is so sweet! :D
Rallos





Posts: 1465
Joined: Wed Oct 06, 2004 5:08 pm
Location: I don't know

Post by Rallos »

Saw this a day or two ago, still fun.
Right now I'm watching the rotating circle of faces.
Violence is not the answer, it is the question. The answer is yes.
Image
User avatar
FleetAdmiralBacon




Critic Pyre Articulatist 500

Posts: 2377
Joined: Sat Nov 26, 2005 7:01 pm
Location: Ohio
Contact:

Post by FleetAdmiralBacon »

Sooo many fun things I can do with this....
Image
Everything you'll ever need to know about me.
Need help with Linux, C#, C, Python, Java, PHP, Javascript, CSS, or VB? I'm available from 3:00PM-8:00PM EST on weekdays.
User avatar
RaVNzCRoFT




Grunge Pyre

Posts: 6208
Joined: Mon Jan 10, 2005 3:05 pm
Location: Raleigh, North Carolina, USA

Post by RaVNzCRoFT »

I love this trick.



FAB, you're not the only one to notice it. That's the joke...

You tell someone to go to www.PenIsland.com, and they don't realize what they're going to.
User avatar
Tural




Conceptionist Acolyte Bloodhound Recreator
Socialist Connoisseur Droplet Scorched Earth
Grunge

Posts: 15628
Joined: Thu Jun 16, 2005 3:44 pm
Location: Lincoln, NE
Contact:

Post by Tural »

RaVNzCRoFT wrote:I love this trick.



FAB, you're not the only one to notice it. That's the joke...

You tell someone to go to www.PenIsland.com, and they don't realize what they're going to.
I believe 'tis .net >_>
User avatar
BEEF!!!




Pyre

Posts: 1496
Joined: Wed Nov 05, 2003 5:47 pm
Location: Berlin, MA

Post by BEEF!!! »

Try this one =P

Code: Select all

javascript:x=0;e=document.body;e.style.position="absolute";function rt(){e.style.top=100-(50*Math.cos(x*Math.PI/180))+"px";e.style.left=100+(50*Math.sin(x*Math.PI/180))+"px";x+=5};setInterval("rt()",50);void(0);
User avatar
Tural




Conceptionist Acolyte Bloodhound Recreator
Socialist Connoisseur Droplet Scorched Earth
Grunge

Posts: 15628
Joined: Thu Jun 16, 2005 3:44 pm
Location: Lincoln, NE
Contact:

Post by Tural »

Trippy
User avatar
RaVNzCRoFT




Grunge Pyre

Posts: 6208
Joined: Mon Jan 10, 2005 3:05 pm
Location: Raleigh, North Carolina, USA

Post by RaVNzCRoFT »

Code: Select all

javascript:x=0;e=document.body;e.style.position="absolute";function rt(){e.style.top=100-(50*Math.cos(x*Math.PI/60))+"px";e.style.left=100+(50*Math.sin(x*Math.PI/180))+"px";x+=100};setInterval("rt()",100);void(0);
Lollar @ seizure. :P
a mammoth




Droplet

Posts: 1603
Joined: Fri Jul 15, 2005 7:01 pm

Post by a mammoth »

Yes I am typing this as my page goes around.

From now on I will be reading all my pages in this rotation.

Thanks BEEF!!!!
My real name is a Mammoth, if someone who cares sees this, please change my name to a Mammoth
User avatar
Dr.Cox




Grunge Pyre Mad Hatter

Posts: 4027
Joined: Fri Jun 24, 2005 5:48 pm
Location: Beaverton, Oregon.
Contact:

Post by Dr.Cox »

Funtastico.
Image
Not removing this 'till I get back. Leaving on [01/05/09]
fishface617





Posts: 1557
Joined: Thu Mar 16, 2006 5:50 pm
Location: RI

Post by fishface617 »

heh, try both of them at once. :D

gets kinda laggy though....
Post Reply