Make everything rotate


SUBMITTED BY: Guest

DATE: Dec. 6, 2013, 11:46 a.m.

FORMAT: Text only

SIZE: 671 Bytes

HITS: 709

  1. This is a browser mod to make everything rotate in a cool way
  2. just copy the code into the url part of a bookmark and click the book mark
  3. also share with your friends :)
  4. 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)

comments powered by Disqus