源代码由meizz(梅花雪) 提出,原文见:
http://community.csdn.net/Expert/topic/3811/3811571.xml?temp=.7770502
略微修改了一下:
<img src="1.jpg">
<SCRIPT LANGUAGE="JavaScript">
document.ondblclick = function()
{
var e = window.event.srcElement;
if(e.tagName=="IMG")
{
var win=window.open(e.src, "_blank", "top=1200px,left=1200px");
win.document.execCommand('SaveAs');
win.opener=null;
win.close();
}
}
</SCRIPT>
双击图片弹出图片另存为对话框
最新推荐文章于 2023-05-04 08:15:00 发布