运行代码
linuxpluto 老大,发帖的那个运行代码的runCode()函数怎么写的???
给个代码来看下~不是很明白
window.open(url,name,features)
应该是哪个部份???谢了~
谢谢啦~那个另存代码还有复制代码的功能该怎么写呢?
<iframe id=\"savemapframe\"></iframe>
<form id=\"form1\" name=\"form1\" method=\"post\" action=\"\">
<input type=\"text\" name=\"textfield\" size=50 value=\"http://www.bc-cn.net/bbs/UploadFace/24206.jpg\"/>
<input type=\"button\" name=\"button\" value=\"提交\" onclick=\"gooo(textfield.value)\"/>
</form>
<script>
var n=0;
function gooo(url){
n==0?new function(){frames(\"savemapframe\").src=url,n=1}:null;
document.all(\"savemapframe\").readyState!=\"complete\"?setTimeout(gooo,100):so();
function so(){frames(\"savemapframe\").document.execCommand(\"SaveAs\",false,\"文件名.gif\"),n=0};
}
</script>