代码改变世界

IE地址栏javascript代码~

2013-01-18 17:38  Andy Ge  阅读(389)  评论(0编辑  收藏  举报
完全打开页面后,在该页的在地址栏或按Ctrl+O输入以下代码,回车!
 
1.显示网页中的所有图片
 
javascript:jannick='';for%20(i7M1bQz=0;i7M1bQz<document.images.length;i7M1bQz++){jannick+='<img%20src='+document.images[i7M1bQz].src+'><br>'};if(jannick!=''){document.write('<center>'+jannick+'</center>');void(document.close())}else{alert('No%20images!')}
 
2.显示网页中除图片的其他
 
javascript:for(jannick=0;jannick<document.images.length;jannick++){void(document.images[jannick].style.visibility='hidden')}
 
3.网页缩小0.5倍
 
javascript:void(s=document.body.style);void(z=s.getAttribute('zoom'));if(z){s.setAttribute('zoom',(parseInt(z)-50)+'%');}else s.setAttribute('zoom','50%')
 
4.网页放大1.5倍
 
javascript:void(s=document.body.style);void(z=s.getAttribute('zoom'));if(z){s.setAttribute('zoom',(parseInt(z)+50)+'%');}else s.setAttribute('zoom','150%')
 
5.显示网页源代码(对于加密过的可以直接显示其加密前的源代码)
 
javascript:jannick=document.documentElement.outerHTML;document.write('<body></body>');document.body.innerText=jannick;
 
6.显示当前网页的COOKIE
 
javascript:alert(document.cookie)
 
7.让网页上的图片全部飞起来
 
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 jannick(){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('jannick()',5); void(0);