29 May 2011

Make The Whole Website To Float With This Javascript Code


This One Is Still More Interesting!!!

  • You can go to any website
  • I am taking google.com
  • Clear your address bar in your browser
  • Now just copy and paste this below code in your address bar(as shown in below image)
javascript: var r = 0; var x1 = 0.1; var y1 = 0.05; var x2 = 0.25; var y2 = 0.24; var x3 = 1.6; var y3 = 0.24; var x4 = 300; var y4 = 200; var x5 = 300; var y5 = 200; var theElem = document.getElementsByTagName("div"); function aaa(){ for(i=0; i<theElem.length; i++){ elemStyle = theElem[i].style; elemStyle.position = "absolute"; elemStyle.left = Math.sin(r*x1+i*x2+x3)*x4+x5+"px"; elemStyle.top = Math.cos(r*y1+i*y2+y3 )*y4+y5+"px"; } r++; } setInterval(aaa,50); void(0)




  • Press Enter
  • Now you can able to see that whole website is circling like something








  • Enjoy Seeing This!

Be Brilliant Always!!!


Related Posts Plugin for WordPress, Blogger...
Twitter Delicious Facebook Digg Stumbleupon Favorites More