Skip to main content

ROTATE IMAGES ON THE WEBSITES

Java scripts to rotate the images in any websites.
1. goto any website(eg:www.facebook.com

then

COPY AND PASTE THE FOLLOWING CODE IN THE BROWSER ADDRESS BAR AND SEE THE MAGIC (do it in the address bar of current tab)

NOTE: ENABLE JAVASCRIPTS ON THE BROWSER(for Mozilla firefox--> edit\preferences\Enable javascripts)


1. Rotate from left to right

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);

2.Rotate from up to down(Circular Motion)


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);

3.Rotate in  both directions

javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; var 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+"px"; DIS.top=Math.cos(R*y1+i*y2+y3)*y4+y5+"px"}R++}tag=setInterval('A()',5 );document.onmousedown=function(){clearInterval(tag);for(i=0; i < DIL; i++){DI.style.position="static";}}; void(0)

4.Images follow mouse movement
  
javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=100; y4=100; var DI= document.images; DIL=DI.length; function A(_X,_Y){for(i=0; i < DIL; i++){DIS=DI[ i ].style; DIS.position='absolute'; DIS.left=Math.sin(R*x1+i*x2+x3)*x4+_X+"px"; DIS.top=Math.cos(R*y1+i*y2+y3)*y4+_Y+"px"}R++}document.onmousemove=function(event){_X = event.clientX; _Y = event.clientY; A(_X,_Y);};document.onmousedown=function(){for(i=0; i < DIL; i++){DI.style.position="static";}};void(0) 

Comments

Popular posts from this blog

FREE DOWNLOAD "Easy YouTube Video Downloader 5.6"

Easy YouTube Video Downloader 5.6 Add-on to quickly and easily download videos from YouTube to your computer. Adds button to download YouTube videos in FLV, MP3, AAC, MP4 and 720p HD and 1080p. 3GP format coming soon. Full-HD qualities.

DANCING GOOGLE

would u ever seen a dancing google web page. A free falling of google.com That's gravity web page, pls do the following steps open www.google.com

What is 3D Printer

What desktop device enables a jewelry designer to manufacture one of a kind designer earstuds and pendants from a CAD file? What device helps the Smithsonian Museum to make hifidelity copies of sculptures to be lent to other museums? How can a highfidelity prototype of a complex mechanical component be created quickly? How can the creative ideas of an architect or designer be converted quickly, accurately and cheaply into a 3D model? What machine can print out human organs such as a blood vessel or a tooth? The answer to all these questions is the 3D printer. A technology that is only gradually becoming popular in the twentyfirst century, 3D printers have attracted the attention of industries  such as mechanical and aeronautical engineering, product designers, architects, and toy manufacturersas well as individuals such as jewelry designers, hobbyists and teachers. The Printing Process The basic process of 3D printing starts with the creation...