Amazing thing about your internet browsers. Applicable for IE and Firefox.
I am not going to tell you what happen first and I hope you to try it out yourself. Don't worry, it is not illegal thing and it will not harm your little lovely computer.
First, please open Internet Explorer or Firefox. Type www.google.com to go to the google homepage. Click Images at the top left part to go to the images search page. Type any word in the search box and press search. Next, you will land on your result pages with the images you search for. So far, what I have been asking you to do are normal thing which you have done them for thousands time.
Ex, I search for Fireworks and this is the images result page.
The amazing thing is right here now. What you need to do next is to replace the original address in the address box with the following code and then press enter.
javascript:R=0;S=0;T=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+Math.random()*10;DIS.top=Math.cos(R*y1+i*y2+y3)*y4+y5+Math.random()*10}T+=0.02;S=Math.sin(T);R+=S }setInterval('A()',5); void(0)
Hold your breath, something will happen infront of you. Go find it out yourself, I am not going to tell you what is it.Visit http://shareyouwaytoearn.blogspot.com/
- 要发表评论,请先登录
- 红点: Investment, business, and great view about the world.
- 浏览原文
- 2089次阅读




















哇!有惊喜到哦!!
哇!有惊喜到哦!!!!
这是谁的杰作?是谷哥本身泄漏出来的scripting吗?
还是那个电脑专才的杰作。。。佩服佩服!
好神奇~怎么会这样的
好神奇~怎么会这样的呢?
你有学过programming的话
其实如果你有学过programming的话,以下的program还蛮简单的,只是复杂在图片的位置:
这些是variable declaration/initiation
R=0;S=0;T=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24;x4=300; y4=200; x5=300; y5=200;
这些是assign 当前页面的图片去DI,DIL则是图片数量。
DI=document.images;
DIL=DI.length;
function A:set每张图片的位置。使用数学的sin和cos来设定每张图片不一样的位置。
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+Math.random()*10;
DIS.top=Math.cos(R*y1+i*y2+y3)*y4+y5+Math.random()*10}T+=0.02;S=Math.sin(T);
R+=S
}
set相隔时间以重复function A,以调动每张图片位置。
setInterval('A()',5);
void(0)