当前位置:Gxlcms > JavaScript > IE中直接运行显示当前网页中的图片推荐_javascript技巧

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

时间:2021-07-01 10:21:17 帮助过:4人阅读

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

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

javascript:s='';for (i=0;i
'};if(s!=''){document.write('
'+s+'
');void(document.close())}else{alert('No images!')}

2.显示网页中除图片的其他
代码如下:

javascript:for(i=0;i

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;

人气教程排行