<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')">복사 code<u></u></a> 코드는 다음과 같습니다.</span></div> <div class="codebody" id="code86168"><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 "></iframe>"; <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><br> </div>