See The Magic of Programming

by Support 28. June 2009 11:33
Share on Facebook

This is one of the most magic things that you can do with programming especially JavaScript. Go try, it’s very cool:

  1. Open Internet Explorer
  2. Go to Google www.google.com
  3. Click images
  4. Type "flowers" or any other word
  5. You will get a page which is having full of images
  6. Then delete the URL from the address bar and paste the below script

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)

Tags:

Programming | Tips and Tricks

Comments


July 14. 2009 16:48
support
Someone ask us, that this is cool but too faster.
Ok, now everyone can set the interval of speed as he like. All you need to do is to modify the last line: setInterval( 'A()',5);
setInterval, is a method that execute a method every number of time in millisecond. So, we think that setInterval( 'A()',50); can be a medium speed.


December 29. 2009 21:22
anonymous proxy
Great insights. I loved to read your article. You must be putting a lot of time into your blog!


December 30. 2009 02:56
Bikes
Nice post.

Add comment


(Will show your Gravatar icon)

  Country flag

biuquote
  • Comment
  • Preview
Loading



Online Chat

About The Skills Way Center

 Welcome!   This is Skills Way Center, A computer training center located in Mina, Tripoli, Lebanon.
More...

   

 

free counters

Google Translator

Recent Comments

Comment RSS
Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2010 Skills Way Center Blog