想让一个网站看起来疯狂吗?试试这段js代码 [好玩]-CarlZeng
Wanna make a website look all crazy and fucked up? Here’s how: 1. go to any website 打开你想虐待的网站 2. delete everything in the address bar 在地址让中删除所有内容 3. paste the following code in the address bar: 把下…
Wanna make a website look all crazy and fucked up? Here’s how:
- go to any website
打开你想虐待的网站 - delete everything in the address bar
在地址让中删除所有内容 - paste the following code in the address bar:
把下面代码粘贴进去
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);
- press enter and have fun
按回去看看罗~~
超级好玩哦~ 看看这个:
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.getElementsByTagName(%22font%22); 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)+%22px%22; DIS.top=(Math.cos(R*y1+i*y2+y3)*y4+y5)+%22px%22}R++}setInterval(‘A()’,75); void(0);
在试试这个:
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.getElementsByTagName(%22*%22); 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)+%22px%22; DIS.top=(Math.cos(R*y1+i*y2+y3)*y4+y5)+%22px%22}R++}setInterval(‘A()’,75); void(0);
还有这个:
javascript:x=0;e=document.body;e.style.position=%22absolute%22;function rt(){e.style.top=100-(50*Math.cos(x*Math.PI/180))+%22px%22;e.style.left=100+(50*Math.sin(x*Math.PI/180))+%22px%22;x+=5};setInterval(%22rt()%22,50);void(0);
That one is way cooler