Sunday, March 18, 2012

Scatter images in your browser


Hello Friends..A nice trick is here.
By this trick images in the browser will scatter on moving mouse in the page.
This trick is made by my friend Debasish Panda


IF you are using Google Chrome, press (Ctrl + Shift + I)
If you are using Firefox, press (Ctrl + Shift + K)

and Paste the following code into the console by (CTRL + V)

javascript:document.onmousemove=function loc(e)
{
for(i=0;i<document.images.length;i++)
{
var img=document.images[i].style;img.position="absolute";
img.left=Math.floor(Math.random()*101)+"%";
img.top=Math.floor(Math.random()*101)+"%";
}
}


Now move your mouse over the page and see the images scatter.

To get your page back to normal, Refresh the page

0 comments:

Post a Comment