站内搜索: 请输入搜索关键词

当前页面: 开发资料首页Javascript 专题右击鼠标弹出图片另存为对话框

右击鼠标弹出图片另存为对话框

摘要: 右击鼠标弹出图片另存为对话框
<textarea readonly style="border:none;font-family:Courier New;line-height:150%;width:760px;overflow-y:visible">

<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>

<iframe src="" name=show style="width:0;height:0"></iframe>

利用一个框架保存图片,然后可以执行savaas命令

  
</td> </tr> </table> </textarea>
↑返回目录
前一篇: javascript实现通用表单验证函数
后一篇: 测上网速度,动态树