Simple JavaScript code written a long time ago allows page elements to rotate:
Copy and paste the following code in the address bar, and press enter (IE6 \ 7 \ 8 passed the test ):
Javascript: r = 100; shita = 0; function a (element, speed, size, position) {var ee = document. getElementsByTagName (element); if (! Ee) return false; setInterval (function () {for (I = 0; I <ee. length; I ++) {shita ++; shita = shita * speed; a = r * Math. sin (shita); B = r * Math. cos (shita); ee [I]. style. width = size; ee [I]. style. height = size; ee [I]. style. overflow = "hidden"; ee [I]. style. border = "solid 1px red"; ee [I]. style. position = "absolute"; ee [I]. style. top = B + r * position; ee [I]. style. left = a + r * position; }}, 100);} window. onload = a ("div", 1, 50, 1 );
The last four parameters of function a are:
1. tags to be rotated
2. Speed
3. Rotate the square size
4. Center Position of rotation (some problems)
From: GUI empire