页面导航: 首页网络编程JavaScript应用技巧 → 正文内容 IE中直接运行显示当前网页中的图片 推荐

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

发布:dxy 字体:[增加 减小] 类型:转载
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;

浏览次数:载入中... 打印本文关闭本文返回首页
·在百度中搜索关于“IE中直接运行显示当前网页中的图片 推荐”相关内容
·在谷歌中搜索关于“IE中直接运行显示当前网页中的图片 推荐”相关内容

文章评论

共有 位脚本之家网友发表了评论我来说两句

同 类 文 章
最 近 更 新
热 点 排 行