Friday 19 August 2011

Move pictures in a website with mouse pointer

This is a simple technique. Using this technique you can move pictures in any websites or blogs with  mouse pointer.
                                                                          
Open the website or blog.
Just copy the code given below
Then paste it in the address bar.
Press enter.
That's it.



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)

0 comments:

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More