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

软件发布|下载排行|最新软件

当前位置:首页IT学院IT技术

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

  2020-05-11 我要评论
jb51修正版
使用方法直接在已打开网页的IE地址栏中输入即可

1.显示网页中的所有图片
复制代码 代码如下:

javascript:s='';for (i=0;i<document.images.length;i++){s+='<img src='+document.images[i].src+'><br>'};if(s!=''){document.write('<center>'+s+'</center>');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('<body></body>');document.body.innerText=s;


Copyright 2022 版权所有 软件发布 访问手机版

声明:所有软件和文章来自软件开发商或者作者 如有异议 请与本站联系 联系我们