设为首页收藏本站
鲜花(0) 鸡蛋(0)
发表于 2008-4-26 09:04 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有帐号?注册

x
完全打开页面后,在该页的在地址栏或按Ctrl+O输入以下代码,回车

1.显示网页中的所有图片
javascript:s=&#39;&#39;;for (i=0;i<document.images.length;i++){s+=&#39;<img src=&#39;+document.images
.src+&#39;><br>&#39;};if(s!=&#39;&#39;){document.write(&#39;<center>&#39;+s+&#39;</center>&#39;);void(document.close())}else{alert(&#39;No images!&#39;)}

2.显示网页中除图片的其他
javascript:for(i=0;i<document.images.length;i++){void(document.images
.style.visibility=&#39;hidden&#39;)}

3.网页缩小0.5倍
javascript:void(s=document.body.style);void(z=s.getAttribute(&#39;zoom&#39;));if(z){s.setAttribute(&#39;zoom&#39;,(parseInt(z)-50)+&#39;%&#39;);}else s.setAttribute(&#39;zoom&#39;,&#39;50%&#39;)

4.网页放大1.5倍
javascript:void(s=document.body.style);void(z=s.getAttribute(&#39;zoom&#39;));if(z){s.setAttribute(&#39;zoom&#39;,(parseInt(z)+50)+&#39;%&#39;);}else s.setAttribute(&#39;zoom&#39;,&#39;150%&#39;)

5.显示网页源代码(对于加密过的可以直接显示其加密前的源代码)
javascript:s=document.documentElement.outerHTML;document.write(&#39;<body></body>&#39;);document.body.innerText=s;

您需要登录后才可以回帖 登录 | 注册

本版积分规则


GMT+8, 2024-5-20 23:12 , Processed in 0.031126 second(s), 18 queries , Gzip On, Redis On.


快速回复 返回顶部 返回列表