PDA

View Full Version : Something to try...



DigitalBacon
10-21-2006, 02:26 AM
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);


Paste that into your address bar and nothing else....:dunno:

(FR)DeadlyMarauder28
10-21-2006, 02:49 AM
I think Doc posted this sometime ago:dunno:

Noetic
10-21-2006, 02:59 AM
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);


Paste that into your address bar and nothing else....:dunno:

Whats this supposed to do, i pasted it in and hit go, nothing loads.. But i do see "error on page" in the status bar. have me curious now.

kem$
10-21-2006, 04:54 AM
nothing happens.. lol.

DigitalBacon
10-21-2006, 04:57 AM
Hmm maybe it's because im using IE? works for me >_<

kem$
10-21-2006, 07:45 AM
I tried it in IE too.. same result.

Blis
10-21-2006, 09:25 AM
i get nothing. Whats supposed to happen.

vortex19103
10-21-2006, 10:16 AM
I get same error,

Line 1
Char 316
Error Expected ";"

make sure it works, and do you have to have sun java installed?

Gruthar
10-21-2006, 11:22 PM
I don't know if IE has native JScript support or if you need to install the Java runtime. Either way, I fixed the code for ya. Works on my terminal at work, which I don't think has Java on it. Here it is all on one line (this makes my inner programmer cringe on so many levels). Stick that in your addy bar.

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);

Here it is properly formatted (edit: NM, it ate my spacing)

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);

Lt.Res
10-21-2006, 11:43 PM
here you go

javascript:R=0;x1=.1;y1=.05;x2=.25;y2=.24;x3=1.6;y 3=.24;x4=300;y4=200;x5=300;y5=200;DI=document.getE lementsByTagName("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);

Gruthar
10-22-2006, 12:04 AM
Muahahaha, beat you to the correction! Plus, there's still a bug in your code, Res. :D

vortex19103
10-22-2006, 12:12 AM
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);



This one works, thanks Gruther...go to this page(http://www.java.com/en/download/help/testvm.xml), then copy/paste above to address bar and hit go.

or this site...http://javaboutique.internet.com/

Blis
10-22-2006, 12:28 AM
lol thats pretty cool

be carefull of pressing backpage once youve done it though if you have anything important in your browser.It hung my firefox.I'd just uploaded an 80 meg file and had yet to copy the link for it :/
T'was on another tab and i couldnt get to it

Lt.Res
10-23-2006, 10:13 AM
Muahahaha, beat you to the correction! Plus, there's still a bug in your code, Res.

actaully i just took out all the spaces in yours cus it wouldn't work for me
and mine worked fine..... muhahhaaha :lol: