<div class="codetitle"> <span><a style="CURSOR: pointer" data="94454" class="copybut" id="copybut94454" onclick="doCopy('code94454')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code94454"> <br><a href="picName.jpg" id="pic1" onclick="savepic();return false;" style="cursor:hand">点击下载</a> <br> </div> <br><div class="codetitle"> <span><a style="CURSOR: pointer" data="86168" class="copybut" id="copybut86168" onclick="doCopy('code86168')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code86168"> <br><script type="text/javascript"> <BR>function savepic() { <BR>if (document.all.a1 == null) { <BR>objIframe = document.createElement("IFRAME"); <BR>document.body.insertBefore(objIframe); <BR>objIframe.outerHTML = "<iframe name=a1 style='width:400px;hieght:300px' src=" + imageName.href + ">"; <BR>re = setTimeout("savepic()", 1) <BR>} <BR>else { <BR>clearTimeout(re) <BR>pic = window.open(imageName.href, "a1") <BR>pic.document.execCommand("SaveAs") <BR>document.all.a1.removeNode(true) <BR>} <BR>} <BR></script> <br> </div>