如何用脚本控制在客户端保存网页中的图片 用xmlhttp﹐參考﹕http://www.csdn.com.cn/html/040531/2004414475486890.html 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 在图片上点右键实现保存该图片。前提,同域。<script>function getimg() {event.returnValue=false;show.window.location.href=event.srcElement.src;timer=setInterval(checkload,100)}function checkload(){if(show.readyState!="complete"){show.document.execCommand("SaveAs"); clearInterval(timer)}}</script><img src="csdn.gif" oncontextmenu="getimg()"><img src="aspplus2.gif" oncontextmenu="getimg()"><iframe src="" name=show style="width:0;height:0"></iframe> iframe问题 弹出层页面传值 javascript获取子节点的问题 救命啊,object对象中的MeterLibrary是怎么回事啊?? 怎样使一个TEXT控件有记忆功能 CSDN左边树形菜单的问题! 求Word在线编辑器,急!!! 怎么在关闭浏览器时弹出提示 ajax向后台提交数据不完整 js原型中一个奇怪的问题 有2个checkbox,怎样才能做到 至多只能选中一个checkbox?谢谢 请问怎样把javascript中的数组传递到同一个页面的session里面去
前提,同域。<script>
function getimg() {
event.returnValue=false;
show.window.location.href=event.srcElement.src;
timer=setInterval(checkload,100)
}
function checkload(){
if(show.readyState!="complete")
{show.document.execCommand("SaveAs");
clearInterval(timer)}
}</script>
<img src="csdn.gif" oncontextmenu="getimg()">
<img src="aspplus2.gif" oncontextmenu="getimg()">
<iframe src="" name=show style="width:0;height:0"></iframe>