Honda Accord Forum   News   Classifieds   Photo Gallery   Member List   Calendars   Search   Contact HAF   Sponsors  
  Forum FAQ   Accord History   Honda Accord Recalls   TSBs   Timeslips   Register   Login  

Pretty cool Java trick on your PC

  Printable Version
Honda Accord Forums >> General >> Off Topic >> Pretty cool Java trick on your PC Page: [1]
Login
Message << Older Topic   Newer Topic >>
Pretty cool Java trick on your PC - 10/11/2006 4:52:55 AM   
YeuEmMaiMai


Posts: 1822
Joined: 5/28/2006
Status: offline
copy and paste the following into your address 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);


It takes all of the pictures on the current page and rotates them around in a circle.....

_____________________________

Jesus is Salvation
White 2002 Acura CL type S. 68K and change

Criminals thrive upon the intolerence of society''s understanding.....and political correctness
Post #: 1
RE: Pretty cool Java trick on your PC - 10/11/2006 6:31:28 PM   
miki

 

Posts: 151
Joined: 8/3/2006
Status: offline
im stealing this

(in reply to YeuEmMaiMai)
Post #: 2
RE: Pretty cool Java trick on your PC - 10/11/2006 7:52:05 PM   
marbro


Posts: 1478
Joined: 1/16/2006
Status: offline
see if you can change that DIS.position='absolute' to DIS.position='random' lol

but java script is your friend when you dont have an active server

(in reply to miki)
Post #: 3
RE: Pretty cool Java trick on your PC - 10/12/2006 2:46:19 AM   
deserthonda



Posts: 3575
Joined: 12/3/2005
Status: offline
pretty cool YEU.........

_____________________________

No Year No Model in Your signature
No Help from me

Take a look in the DIY section before asking for help

Always Diagnose First,,, Before Replacing Parts


(in reply to YeuEmMaiMai)
Post #: 4
RE: Pretty cool Java trick on your PC - 10/12/2006 5:42:00 PM   
19Accord97

 


Posts: 3171
Joined: 3/5/2006
Status: offline
19Accord97's photo gallery
LMAO, Thats AWESOME! A little hard to hit the reply button though..... :p

Def. a keeper

_____________________________

Scopin out my old turf......

(in reply to deserthonda)
Post #: 5
RE: Pretty cool Java trick on your PC - 10/12/2006 7:43:31 PM   
deserthonda



Posts: 3575
Joined: 12/3/2005
Status: offline

quote:

ORIGINAL: YeuEmMaiMai

copy and paste the following into your address 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);

on the 3rd line ( DIS. left=.)...........change it to DIS.right=) and try it ..

It takes all of the pictures on the current page and rotates them around in a circle.....



_____________________________

No Year No Model in Your signature
No Help from me

Take a look in the DIY section before asking for help

Always Diagnose First,,, Before Replacing Parts


(in reply to YeuEmMaiMai)
Post #: 6
Login OR Register now to post a reply to this forum topic.
Page:   [1]

 
 
Honda Accord Forums >> General >> Off Topic
Jump to:




Featured Sponsors
Advertising Info

Top 10 Posters
wheelbrokera7085
sir_nasty6309
falkore245950
finch134309
00accordlx5s3815
deserthonda3575
live2rice3456
jimblake3285
19accord973171
smaglik2623

New Vendors
Sportwing
AMSOIL - Performance Oil Technology

Honda Accord Forum .com is not affiliated with or endorsed by Honda Motor Company.