点击下载 <script> <br> function savepic()<br> { <br> if(document.all.a1==null)<br> { <br> objIframe=document.createElement("IFRAME"); <br> document.body.insertBefore(objIframe); <br> objIframe.outerHTML= "<iframe name=a1 style='width:0;hieght:0' src=" pic1.href "></iframe>"; <br> re=setTimeout("savepic()",1) <br> } <br> else<br> { <br> clearTimeout(re) <br> pic = window.open(pic1.href,"a1") <br> pic.document.execCommand("SaveAs") <br> document.all.a1.removeNode(true) <br> }<br> } <br> </script>