一段有趣的js

随便进入一个网站,在地址栏中输入下面内容,看看会出现什么,哈哈,很经典啊

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);
感觉创意这段代码的人的想法很不错啊!

Categories

| | 评论(1)

1 Comments

yangcrab said:

有趣的代码,试过了,很好玩。拿去跟朋友们分享了~

Post a comment

关于此日记

此日记由Cnangel发表于2007年9月20日 15:58

此Blog上的上一篇日记Python学习

此Blog上的下一篇日记firefox插件集锦

主索引归档页可以看到最新的日记和所有日记。

2008年11月

Sun Mon Tue Wed Thu Fri Sat
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30            
Powered by Movable Type 4.21-zh-cn