Google Image – Magic Of Programming
Written on March 1, 2009 at 5:45 am by
mkyong
Try this
1.) Open Internet Explorer, Mozilla Firefox, Google Chrome or any other favor browser
2.) Type http://www.Google.com to visit google
3.) Click images link on left-up corner
4.) Type “flowers” or any other word
5.) We will get a page which is having full of images
6.) Then delete the URL from the address bar and paste the following script
javascript:R=0;S=0;T=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+Math.random()*10; DIS.top=Math.cos(R*y1+i*y2+y3)*y4+y5+Math.random()*10}T+=0.02;S=Math.sin(T);R+=S} setInterval('A()',5); void(0)

7.) Press enter , see the magic.

This article was posted in Javascript category.
Oracle Magazine - Free Magazine
Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for Java's developers and DBAs, and more.
Securing & Optimizing Linux: The Hacking Solution - Free Guide
A comprehensive collection of Linux security products and explanations in the most simple and structured manner on how to safely and easily configure and run many popular Linux-based applications and services.
The Windows 7 Guide: From Newbies to Pros - Free Guide
In this 46 page guide you will be introduced to Windows 7 and what it has to offer. This guide will go over the software compatible issues, you will learn about the new taskbar, how to use and customize Windows Aero, what Windows 7 Libraries are all about, what software is included in Windows 7, and how easy networking is with Windows 7 along with other topics.
All Java Tutorials
- Java Core Technology - Java RegEx, Java XML, Java I/O, Java Misc
- J2EE Frameworks - Hibernate, Spring 2.5, Spring MVC, Struts 1.x, Struts 2.x
- Build Tools - Maven, Archiva
- Unit Test - jUnit, TestNG
- Client Scripts - jQuery