View Full Version : A bit of javascripto
nebulus06
01-25-07, 09:12 PM
Alright copy paste this into your search bar press enter and enjoy:
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++}setInterv al('A()',5); void(0);
That one doesn't work on firefox. This will though:
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++}setI nterval('A()',5); void(0);
This is a fun mod on that code (Only works in firefox and maybe netscape):
javascript:function Mouse(evnt){y = evnt.pageY+4 - window.pageYOffset; x = evnt.pageX+1;} document.onmousemove=Mouse; R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=300; 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+x+'px'; DIS.top=Math.cos(R*y1+i*y2+y3)*y4+y+'px'}R++}setIn terval('A()',5); void(0);
Try it here:
http://smiley.onegreatguy.net/index.html?
grumperfish
01-28-07, 07:14 PM
Just posting to confirm that this:
That one doesn't work on firefox. This will though
does work in FF 2.x running noscript.
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.