Today, when I was looking for information, I saw such a paragraphCodeVery interesting. If you are interested, try it.
Find a webpage with images (in fact, basically all websites have images), and enter the code in the address bar to run it to see what changes will happen on the webpage. Hey, it's interesting.
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 );
The purpose of this Code is to randomly move all the content with tags in the web page in the browser, so it is wrong to find a webpage with images to run this code, because if the images in the webpage are added from CSS, the code will not work anymore .... So you should find some web pages that use the label to call the image to test the code section .....