一个简单问题求助(在线等待) <input type="button" id="test1" onclick="oDownload.startDownload('a.txt',onDownloadDone);" value="xxxxx"> 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <IE:Download ID="oDownload" STYLE="behavior:url(#default#download)" /><input type="file" id="file1"><input type="button" id="test1" onclick="Down();" value="xxxxx"><script> function Down() { var filename=file1.value; filename=filename.replace(/\\/g,'\\\\'); var s="oDownload.startDownload('"+filename+"',onDownloadDone)"; //alert(s); eval(s); } function onDownloadDone(ss) { alert(ss); }</script> 多谢,不过不是我想要的那种效果啊能不能把text.txt换成变量来表示比如说:aa="text.txt"onclick时先把aa="text1.txt"再进行操作如果可以,是不是要先定义aa? 解除jquery事件 extJS 表格加入超链接的问题 如何检测用户是否已经点击了GOOGLE的广告? 在网上搜了一个javascript做的日历但代码看不懂,望各位高手解释一下,谢谢!! 文件上传工具fckeditor有个问题(请帮忙,在线等待) 请rawjim接分 一个问题 大家帮我解决一下 我是菜鸟 各位帮忙 弹出窗口的问题 我想获得一个输入的字符串的宽度,有什么方法? 下拉式多层菜单 我需要个日历。当选择了日期以后,旁边的文本框自动显示出选择的日期 如何实现IE启动后就是全屏无编框的窗口 急急!ie版本的问题insertrow(),(在线等!)
<input type="file" id="file1">
<input type="button" id="test1" onclick="Down();" value="xxxxx">
<script>
function Down()
{
var filename=file1.value;
filename=filename.replace(/\\/g,'\\\\');
var s="oDownload.startDownload('"+filename+"',onDownloadDone)";
//alert(s);
eval(s);
}
function onDownloadDone(ss)
{
alert(ss);
}
</script>
能不能把text.txt换成变量来表示
比如说:
aa="text.txt"
onclick时
先把aa="text1.txt"
再进行操作如果可以,是不是要先定义aa?