NationStates Jolt Archive


Orbiting the Internets

Rhaomi
06-02-2007, 07:30
Step 1: Go to any website. This works best on pages with a few isolated images -- for instance, a StumbleUpon (http://www.stumbleupon.com/url/www.retrogismo.com/crazy.htm) page (where I found this), or certain types of forums (http://www.colboard.com/) (not NSG, though -- too image-heavy)

Step 2: Clear the address bar

Step 3: Paste this in its place:

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.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; DIS.top=Math.cos(R*y1+i*y2+y3)*y4+y5}R++}setInterval('A()',5); void(0);

Step 4: Press enter and enjoy...

EDIT: Damor posted some revised code that should work better on more sites:

javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=400; y4=200; x5=400; y5=200; DI=document.getElementsByTagName("A"); 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()',50); void(0);
Arthais101
06-02-2007, 07:34
Step 1: Go to any website. This works best on pages with a few isolated images -- for instance, a StumbleUpon (http://www.stumbleupon.com/url/www.retrogismo.com/crazy.htm) page (where I found this), or certain types of forums (http://www.colboard.com/) (not NSG, though -- too image-heavy)

Step 2: Clear the address bar

Step 3: Paste this in its place:



Step 4: Press enter and enjoy...

You have blown my mind good sir
Rhaomi
06-02-2007, 07:35
You have blown my mind good sir
All in a day's work... :cool:
NERVUN
06-02-2007, 07:36
Nice.
Naturality
06-02-2007, 07:36
All I get is a blank page with 200 in upper left corner.. is it my browser? Firefox Mozilla
MrWho
06-02-2007, 07:37
...wow...very nice;)
Rhaomi
06-02-2007, 07:38
All I get is a blank page with 200 in upper left corner.. is it my browser? Firefox Mozilla
It works on my browser (Firefox 2.0). Maybe you don't have the right version of Java installed...

FYI, there are many, many pages that are too complex, image-heavy, or integrated for this to work. Inputting the code on these pages only shifts around the page elements a bit.
The Black Forrest
06-02-2007, 07:38
Works better with IE ;)
Naturality
06-02-2007, 07:39
Maybe you don't have the right version of Java installed...


Yep, that's probably it.. it says Java void or something. I'll upgrade my java! It won't screw up anything will it? I don't even know what java is for. As long as it doesn't mess up my gaming .. I'm ok.
CthulhuFhtagn
06-02-2007, 07:42
Awesome. I got over a hundred images to orbit on another board.
Posi
06-02-2007, 07:43
Yep, that's probably it.. it says Java void or something. I'll upgrade my java! It won't screw up anything will it? I don't even know what java is for. As long as it doesn't mess up my gaming .. I'm ok.

Javascript != Java
Naturality
06-02-2007, 07:44
I got it working on IE. Neat. Went to the Zone and did it.. pretty image heavy.. but it worked.
Kyronea
06-02-2007, 07:52
Thank you, Rhaomi, for pointing out something I already knew about for once. Made me feel a little less ignorant than you usually make me feel. :p
Ginnoria
06-02-2007, 08:13
Trippy ...
Yaltabaoth
06-02-2007, 08:43
i'll never view porn the same way again...
Grape-eaters
06-02-2007, 08:46
Thank you. Thats pretty sick. Might have to show this around to some friends. While they are on acid.


Fun stuff.
Posi
06-02-2007, 08:46
i'll never view porn the same way again...
Porn is best when it orbits.
Boonytopia
06-02-2007, 09:37
Cool. :cool:
Cameroi
06-02-2007, 09:38
i'm always worried about something like this messing something up for someone somewhere. i did copy the script and save it as a text file, but i'm seriously hesitent about actualy using it.

like if everybody did this would it mess up something somewhere?

are we unwittingly being encouraged to participate in something that might have resaults we wouldn't have choosen had we known?

i AM curious, but i was also born paranoid.

i mean ok, so i get the impression there won't be any dire consiquences on my own machine. but is that even an impression i can count upon?

and even if it is, what am i doing to the rest of the net, or my isp, or who knows what all else, if i run this thing?

=^^=
.../\...
Posi
06-02-2007, 09:45
i'm always worried about something like this messing something up for someone somewhere. i did copy the script and save it as a text file, but i'm seriously hesitent about actualy using it.

like if everybody did this would it mess up something somewhere?

are we unwittingly being encouraged to participate in something that might have resaults we wouldn't have choosen had we known?

i AM curious, but i was also born paranoid.

i mean ok, so i get the impression there won't be any dire consiquences on my own machine. but is that even an impression i can count upon?

and even if it is, what am i doing to the rest of the net, or my isp, or who knows what all else, if i run this thing?

=^^=
.../\...

All you are doing is telling your browser to move the images on the page in a circle. It is the same thing that gets the pop-down menus to work on this site (and most others actually).
Chingie
06-02-2007, 09:58
what am i doing to the rest of the net, or my isp, or who knows what all else, if i run this thing?

Don't do it, it will send all your information to the government and thought police.
Khazistan
06-02-2007, 10:40
Works better with IE ;)

Whats the difference between the effects?
The Potato Factory
06-02-2007, 10:45
*goes to Freeones*

Orbiting porn. Sir, I am truly in your debt.
[NS]Fried Tuna
06-02-2007, 11:35
Whats the difference between the effects?

Actually, what makes it not work for Firefox is if you set your address bar to open in a new tab it just prints 200.
Hamilay
06-02-2007, 11:47
That's awesome.
Damor
06-02-2007, 12:22
If the original script doesn't work, try:

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.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);
It's slightly more standards compliant.
Pure Metal
06-02-2007, 12:36
Step 1: Go to any website. This works best on pages with a few isolated images -- for instance, a StumbleUpon (http://www.stumbleupon.com/url/www.retrogismo.com/crazy.htm) page (where I found this), or certain types of forums (http://www.colboard.com/) (not NSG, though -- too image-heavy)

Step 2: Clear the address bar

Step 3: Paste this in its place:



Step 4: Press enter and enjoy...

hehe very cool :)

reminds me a bit of this http://www.dynamicdrive.com/dynamicindex10/circlemsg.htm (IE only)
SimNewtonia
06-02-2007, 14:36
If the original script doesn't work, try:

It's slightly more standards compliant.

Works properly on my Firefox, thanks (the other one wasn't working right).

Interesting.
Ifreann
06-02-2007, 14:39
I've seen it before, probably. The st00pid library computers here hide the adress bar and other things, to limit interweb use. As you can see, it hasn't stopped me totally. Though I came here by the scenic route, via /.
Damor
06-02-2007, 14:41
Works properly on my Firefox, thanks (the other one wasn't working right).

Interesting.The difference lies in that the DOM-standard requires units for the 'left' and 'top' properties. Some browsers are less fussy about it, and so encourage bad programming.

If you want to see other things orbit, you could try:
javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=400; y4=200; x5=400; y5=200; DI=document.getElementsByTagName("A"); 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()',50); void(0);
Mooseica
06-02-2007, 15:11
Hehehe - try it on a google image search for pie. So many flying pies! It's like a pie heaven!

Maybe it'd be good with pigs...
German Nightmare
06-02-2007, 15:29
Hehehe, floating boobies!!!
Rhaomi
06-02-2007, 17:57
If you want to see other things orbit, you could try:

Awesome! It works just about everywhere now. :cool:
Eltaphilon
06-02-2007, 18:09
It's so...hypnotic...
The Parkus Empire
07-02-2007, 08:53
Incredible.... Full marks for this one pal!
Euroslavia
07-02-2007, 09:29
Wow, that's pretty awesome!
Damor
07-02-2007, 10:13
Here's a script that does something slightly different with moving images around. If you do it on a google image search it should be obvious what exactly it does.

javascript: if(! document.swapNode){Node.prototype.swapNode = function (node) { var nextSibling = this.nextSibling; var parentNode = this.parentNode; node.parentNode.replaceChild(this, node); parentNode.insertBefore(node, nextSibling); };}DI=document.getElementsByTagName("img"); DIL=DI.length; function A(){for(i=0; i<DIL;i++){DI[i].swapNode(DI[((i+1) % DIL)]);}}setInterval('A()',100); void(0);

And of course, like before, you can adapt it to do it with other html elements (although if they're nested you may get problems with it working)

a more subtle alternative (all images change size according to where they move)
javascript: DI=document.getElementsByTagName("img"); DIL=DI.length; for(i=0; i<DIL;i++){ DI[i].style.width=String(DI[i].width).replace(/[a-zA-Z]/, '')+'px'; DI[i].style.height= String(DI[i].height).replace(/[a-zA-Z]/, '')+'px';}function A(){ var src = DI[0].src; for(i=0; i<DIL-1;i++) { DI[i].src = DI[i+1].src; } DI[DIL-1].src=src; }setInterval('A()',200);void(0);