Google
 

Go Back   NackVision > General > Cool Things

Cool Things Share cool things you find on the internet here...

Reply
 
Thread Tools
Old 12-24-2006, 12:01 AM   #1
Brad
Your Myspace Friend
 
Brad's Avatar
 
Join Date: Nov 2005
Location: LA, CA
Posts: 801
Send a message via AIM to Brad Send a message via Yahoo to Brad
Rotating Images

This is a cool javascript to do it for fun.

Note: must use IE

* Go to any website or just go to homepage, http://NackVision.com

* copy the code below and paste in the address bar then press enter

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) 
__________________
Our
www.htmllive.com - Glitter and creative stuff
www.nack.us - Hot Graphics
(Offline)
 
Reply With Quote
Old 12-25-2006, 07:10 PM   #2
rubacz_21
Senior Member
 
rubacz_21's Avatar
 
Join Date: Sep 2006
Location: Dubai, U.A.E.
Posts: 128
Send a message via MSN to rubacz_21 Send a message via Yahoo to rubacz_21
Originally Posted by Brad View Post
This is a cool javascript to do it for fun.

Note: must use IE

* Go to any website or just go to homepage, http://NackVision.com

* copy the code below and paste in the address bar then press enter

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  
 

wow its cool
(Offline)
 
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Forum Jump


All times are GMT -7. The time now is 02:58 AM.