IE中直接运行显示当前网页中的图片 推荐

2022-01-11,,,,

jb51修正版
使用方法直接在已打开网页的IE地址栏中输入即可

1.显示网页中的所有图片
复制代码 代码如下:
javascript:s='';for (i=0;i<document.images.length;i++){s+='
'};if(s!=''){document.write(''+s+'');void(document.close())}else{alert('No images!')}

2.显示网页中除图片的其他
复制代码 代码如下:
javascript:for(i=0;i<document.images.length;i++){void(document.images[i].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:s=document.documentElement.outerHTML;document.write('');document.body.innerText=s;

以上就是IE中直接运行显示当前网页中的图片 推荐的详细内容,更多请关注本站其它相关文章!

《IE中直接运行显示当前网页中的图片 推荐.doc》

下载本文的Word格式文档,以方便收藏与打印。