« 抗击惰性生活方式的方法 | Main | Microsoft PowerToys for Windows XP »

一段神奇的代码

先进入一个网站,比如:
http://www.google.com

然后把下面代码贴到浏览器地址栏,回车看看发生了什么?

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);

转载自:http://groups.google.com/group/mindex/browse_thread/thread/1bb545f6497ccc2c

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

About

This page contains a single entry from the blog posted on August 2, 2007 3:56 PM.

The previous post in this blog was 抗击惰性生活方式的方法.

The next post in this blog is Microsoft PowerToys for Windows XP.

Many more can be found on the main index page or by looking through the archives.

Creative Commons License
This weblog is licensed under a Creative Commons License.