javascript能否调用windows的saveas对话框来保存文件? 这个调用后弹出了保存当前html文档的对话框,那么其他文件的呢?比如图片? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <!-- 鼠标左键直接下载图片 --><iframe id="frame1" style="display:none"></iframe><script language="JScript">var n=0;function go(url){n==0?new function(){frames("frame1").location=url,n=1}:null;document.all("frame1").readyState!="complete"?setTimeout(go,10):so();function so(){frames("frame1").document.execCommand("SaveAs"),n=0};}</script><img src="images/title.gif" onclick="go(src)"> <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="1.jpg" oncontextmenu="getimg()"><iframe src="" name=show style="width:0;height:0"></iframe> 感谢 gaofaq(老高) 和 ghlfllz(风流浪子) 的回复,再请问一下readyStage属性以前没有用过,其作用是什么? http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/readystate_2.asp JQuery如何延迟页面刷新 JQuery效果 在vs2010里面编辑HTML页面时,没有对Navigator智能感知功能 想实现图片横向连续滚动,看看我的代码错在什么地方 javascript里左右键同时点击的事件是什么?或者怎么调用 xmlHttpRequest不要缓存 HTML如何在内容里面把\N换成<br> javascript文件冲突 救命:我验证Form表单的输入以后,指定target属性为_blank,却弹出2个窗口,请高人指教,不胜感激,代码如下: 我的爱机中了VBSCRIPT或JAVASCRIPT写的病毒 在线等待解决 请教checkbox一个问题!在线等!谢谢
<script language="JScript">
var n=0;
function go(url){
n==0?new function(){frames("frame1").location=url,n=1}:null;
document.all("frame1").readyState!="complete"?setTimeout(go,10):so();
function so(){frames("frame1").document.execCommand("SaveAs"),n=0};
}
</script>
<img src="images/title.gif" onclick="go(src)">
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="1.jpg" oncontextmenu="getimg()">
<iframe src="" name=show style="width:0;height:0"></iframe>