|
|
| Author |
Message |
| killa |
This post is not being displayed .
|
 killa Won't Shut Up

Joined: 18 Oct 2004 Karma :  
|
 Posted: 13:09 - 19 May 2009 Post subject: HTML effect code? |
 |
|
Anyone remember that code that you paste into the address bar and it makes all your letters etc fly all over the place?  ____________________ Cleverly disguised as a responsible adult.
Bike:- Yamaha TRX850 | Killas Biking History | Killas Gaming History | Killas autmotive history |
|
| Back to top |
|
You must be logged in to rate posts |
|
 |
| Kickstart |
This post is not being displayed .
|
 Kickstart The Oracle

Joined: 04 Feb 2002 Karma :     
|
|
| Back to top |
|
You must be logged in to rate posts |
|
 |
| Fnatic |
This post is not being displayed .
|
 Fnatic World Chat Champion

Joined: 11 May 2008 Karma :  
|
|
| Back to top |
|
You must be logged in to rate posts |
|
 |
| mistergixer |
This post is not being displayed .
|
 mistergixer World Chat Champion

Joined: 15 Jun 2005 Karma :   
|
|
| Back to top |
|
You must be logged in to rate posts |
|
 |
| Kickstart |
This post is not being displayed .
|
 Kickstart The Oracle

Joined: 04 Feb 2002 Karma :     
|
|
| Back to top |
|
You must be logged in to rate posts |
|
 |
| killa |
This post is not being displayed .
|
 killa Won't Shut Up

Joined: 18 Oct 2004 Karma :  
|
 Posted: 11:41 - 20 May 2009 Post subject: |
 |
|
Hmm maybe java script i cant remember.
You just popped it in the address bar of any page and then everything went crazy.
There is a thread somewhere.... ____________________ Cleverly disguised as a responsible adult.
Bike:- Yamaha TRX850 | Killas Biking History | Killas Gaming History | Killas autmotive history |
|
| Back to top |
|
You must be logged in to rate posts |
|
 |
| Kickstart |
This post is not being displayed .
|
 Kickstart The Oracle

Joined: 04 Feb 2002 Karma :     
|
 Posted: 11:56 - 20 May 2009 Post subject: |
 |
|
Hi
Found this that does it with the images (not sure it works in all browsers)
| Code: |
javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; var 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++}tag=setInterval('A()',5 );document.onmousedown=function(){clearInterval(tag);for(i=0; i<DIL; i++){DI[i].style.position="static";}}; void(0)
|
All the best
Keith ____________________ Traxpics, track day and racing photographs - Bimota Forum - Bike performance / thrust graphs for choosing gearing |
|
| Back to top |
|
You must be logged in to rate posts |
|
 |
| Kickstart |
This post is not being displayed .
|
 Kickstart The Oracle

Joined: 04 Feb 2002 Karma :     
|
|
| Back to top |
|
You must be logged in to rate posts |
|
 |
| Charlie |
This post is not being displayed .
|
 Charlie World Chat Champion

Joined: 27 May 2007 Karma :   
|
 Posted: 12:40 - 20 May 2009 Post subject: |
 |
|
| Kickstart wrote: | | Code: | | javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; var 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++}tag=setInterval('A()',5 );document.onmousedown=function(){clearInterval(tag);for(i=0; i<DIL; i++){DI[i].style.position="static";}}; void(0) |
|
Works in Safari (although the Mac edition), I had forgotten how funny it was to do that.
| Kickstart wrote: | | Code: | | javascript: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) |
|
Doesn't work for me ____________________ Past: Honda x8rs, Honda City fly, Honda Hornet 250, Honda VFR750, Yamaha xt600e.
Current: Honda CBR929RR & Yamaha XT660Z Tenere |
|
| Back to top |
|
You must be logged in to rate posts |
|
 |
| Kickstart |
This post is not being displayed .
|
 Kickstart The Oracle

Joined: 04 Feb 2002 Karma :     
|
 Posted: 14:34 - 20 May 2009 Post subject: |
 |
|
Hi
Bit of a look round and it seems the 2nd one to shake the screen is using self.moveBy which seems to be disabled by default in some browsers.
Another image one:-
| Code: |
javascript:var iPX=new Array(); var iPY=new Array(); var iDir=new Array(); var ida=1.1; var DI; var DIL; setTimeout('B()',500); function B(){ DI=document.getElementsByTagName("img"); DIL=DI.length; for(i=0; i<DIL; i++) { iPX[ i ]=fPX(DI[i]); iPY[ i ]=fPY(DI[i]); iDir[ i ]=-1; } setInterval('A()',5); } function A(){ var tp,lp,DIS; for(i=0; i<DIL; i++) { DIS=DI[ i ].style; DIS.position='absolute'; tp=fPY(DI[i]);lp=fPX(DI[i]); if(iDir[ i ]==-1) { lp=parseInt(lp/ida); tp=parseInt(tp/ida); if(lp<20 || tp<20) iDir[ i ]=1; } else { lp=lp*ida; tp=tp*ida; if(lp>=iPX[ i ] || tp>=iPY[ i ]) {iDir[ i ]=-1;lp=iPX[ i ];tp=iPY[ i ];} } DIS.top=tp+"px";DIS.left=lp+"px"; } } function fPX(obj) { var curleft = 0; if(obj.offsetParent) while(1) { curleft += obj.offsetLeft; if(!obj.offsetParent) break; obj = obj.offsetParent; } else if(obj.x) curleft += obj.x; return curleft; } function fPY(obj) { var curtop = 0; if(obj.offsetParent) while(1) { curtop += obj.offsetTop; if(!obj.offsetParent) break; obj = obj.offsetParent; } else if(obj.y) curtop += obj.y; return curtop; }void(0);
|
All the best
Keith ____________________ Traxpics, track day and racing photographs - Bimota Forum - Bike performance / thrust graphs for choosing gearing |
|
| Back to top |
|
You must be logged in to rate posts |
|
 |
Old Thread Alert!
The last post was made 17 years, 130 days ago. Instead of replying here, would creating a new thread be more useful? |
 |
|
|