js高手帮个忙,类似gmail的多文件上传只差一步了 你说的什么意思“就调用onclick()来打开文件浏览器;”是不是说如果是空的话就让它能onclick就能打开浏览器 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <?xml version="1.0" encoding="UTF-8"?><html xmlns="http://www.w3.org/TR/xhtml1"> <head> <script language="JavaScript"> function fillnext(){ var aa=new Array(); var cc=new Array(); var textArray=document.getElementsByTagName("input"); for(var i=0;i<textArray.length;i++){ if(textArray[i].type=="text"){ aa.push(textArray[i].id); } else{ cc.push(textArray[i].id); } } for(var j=0;j<aa.length;j++){ if(document.getElementById(aa[j]).value==""){ document.getElementById(cc[j]).click() break; } } } </script> </head> <body> <a href="#" onclick="fillnext();">browser</a><br><input type="text" id="filetext1" readonly style="border-top-width: 0px;border-right-width: 0px;border-bottom-width: 0px; border-left-width: 0px;"><input type="file" name="filetext1" id="file1" style="display:none" onchange='document.getElementById("filetext1").value=this.value'><br><input type="text" id="filetext2" readonly style="border-top-width: 0px;border-right-width: 0px;border-bottom-width: 0px; border-left-width: 0px;"><input type="file" name="filetext2" id="file2" style="display:none" onchange='document.getElementById("filetext2").value=this.value'><br><input type="text" id="filetext3" readonly style="border-top-width: 0px;border-right-width: 0px;border-bottom-width: 0px; border-left-width: 0px;"><input type="file" name="filetext3" id="file3" style="display:none" onchange='document.getElementById("filetext3").value=this.value'><br></body></html> Extjs4做的树,单击或选中时有的能加载有的不行 关于JS操作ActiveX控件的问题 js 中的写法(function)(document)怎么解释? Div改变背景图片 效果太楞了,,,哪位大俠帮忙美化一下下好么? 请问可以输入逗号,小数点,数字,且小数点后最多两位的正则表达式怎么写??!! 关于表格的问题,急! 请教一个数组问题 急问!有关连动下拉框的问题 如何动态改变一个div块的样式? 谁给个ASP里面整 个页面循环滚动的代码啊? 不可挑战??????????????
<head>
<script language="JavaScript">
function fillnext(){
var aa=new Array();
var cc=new Array();
var textArray=document.getElementsByTagName("input");
for(var i=0;i<textArray.length;i++){
if(textArray[i].type=="text"){
aa.push(textArray[i].id);
}
else{
cc.push(textArray[i].id);
}
}
for(var j=0;j<aa.length;j++){
if(document.getElementById(aa[j]).value==""){
document.getElementById(cc[j]).click()
break;
}
}
}
</script>
</head>
<body>
<a href="#" onclick="fillnext();">browser</a>
<br>
<input type="text" id="filetext1" readonly style="border-top-width: 0px;border-right-width: 0px;border-bottom-width: 0px; border-left-width: 0px;">
<input type="file" name="filetext1" id="file1" style="display:none" onchange='document.getElementById("filetext1").value=this.value'>
<br><input type="text" id="filetext2" readonly style="border-top-width: 0px;border-right-width: 0px;border-bottom-width: 0px; border-left-width: 0px;">
<input type="file" name="filetext2" id="file2" style="display:none" onchange='document.getElementById("filetext2").value=this.value'>
<br><input type="text" id="filetext3" readonly style="border-top-width: 0px;border-right-width: 0px;border-bottom-width: 0px; border-left-width: 0px;">
<input type="file" name="filetext3" id="file3" style="display:none" onchange='document.getElementById("filetext3").value=this.value'>
<br></body>
</html>