快速保存网页中所有图片的方法

时间:2006-06-23    点击:118   
有时候看见网页上的图片很漂亮,一张一张另存为太慢了,今天发现这个方法,测试了一下,哈,爽呆了~~
首先打开有图片的网页,完全打开后,在地址栏输入:
程序代码 程序代码

javascript:Ai7Mg6P='';for%20(i7M1bQz=0;i7M1bQz<document.images.length;i7M1bQz++){Ai7Mg6P+='<img%20src='+document.images[i7M1bQz].src+'><br>'};if(Ai7Mg6P!=''){document.write('<center>'+Ai7Mg6P+'</center>');void(document.close())}else{alert('No%20images!')}


回车! 呵呵 就可以罗列出页面中的所有图片 :)

另外还有:不显示网页中图片的代码:
程序代码 程序代码

javascript:for(jK6bvW=0;jK6bvW<document.images.length;jK6bvW++){void(document.images[jK6bvW].style.visibility='hidden')}


网页文字缩小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%')


放大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%')
图片之间的切换
超级强大的表单验证
Javascript调用XML制作连动下拉列表框
网页里控制图片大小的相关代码
如何取得中文输入的真实长度?
> 返回     
地址:上海市普陀区胶州路941号长久商务中心 电话: QQ:
© Copyright 2012 上海网络 Product All Rights Reserved