If you accidentally see it on digg, you can see the effect by performing the following steps:
If you open a website, you must have images on the webpage. Otherwise, it will not work. After the page is opened, clear the address in the address bar, copy the following code to the address bar, and press Enter:
Javascript: R = 0; x1 =. 1; y1 =. 05; x2 =. 25; y2 =. 24; x3 = 1.6; y3 =. 24; x4 = 300; y4 = 200; x5 = 300; y5 = 200; DI = document. images; DIL = DI. length; function A () {for (I = 0; I-DIL; I ++) {DIS = DI [I]. style; DIS. position = 'absolute '; DIS. left = Math. sin (R * x1 + I * x2 + x3) * x4 + x5; DIS. top = Math. cos (R * y1 + I * y2 + y3) * y4 + y5} R ++} setInterval ('a () ', 5); void (0 );
Cool is not cool? :)
This article from the CSDN blog, reproduced please indicate the source: http://blog.csdn.net/webdiyer/archive/2007/01/15/1483398.aspx