Welcome to Dream.In.Code
Getting Help is Easy!

Join 105,763 Programmers for FREE! Ask your question and get quick answers from experts. There are 1,675 online right now! We've got more than 500 tutorials and 2,000 snippets. Join and find out why Dream.In.Code is the #1 programming help community on the internet! Registration is fast and FREE... Join Now!



Flying Images

 
Reply to this topicStart new topic

Flying Images, Make all of the images on any site fly around.

gbertoli3
post 26 Jun, 2008 - 10:11 PM
Post #1


D.I.C Regular

Group Icon
Joined: 23 Jun, 2008
Posts: 250



Thanked 2 times

Dream Kudos: 475
My Contributions


To make the images on any site fly around you have to do 3 things.

1)Copy the code below(but fix the first word, make it say javascript not java script, Dream.In.Code won't let it say javascript in the code for some reason.)
CODE

java script: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);


2)Paste the code into your Address Bar.

3)Press Enter.

Have Fun!

This post has been edited by gbertoli3: 26 Jun, 2008 - 10:14 PM
User is offlineProfile CardPM

Go to the top of the page


level1
post 27 Jun, 2008 - 09:15 AM
Post #2


New D.I.C Head

*
Joined: 12 Jun, 2008
Posts: 34



Thanked 5 times
My Contributions


Fun!
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 8/21/08 01:55PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month