哈哈,搞定啦....<input style="display:none;" type="file" id="filelist">
<input type=button onclick="filelist.click();this.path=filelist.value;alert(this.path)" value="找文件">散分,有更好的解决方法,给50分.
<input type=button onclick="filelist.click();this.path=filelist.value;alert(this.path)" value="找文件">散分,有更好的解决方法,给50分.
function window.onload(){
t.focus();
var WshShell=new ActiveXObject("WScript.Shell")
WshShell.sendKeys("d:\\4.gif")
}
</script>
<input id=t type=file>
var path=null;
</script>
<input type=file onchange="path=this.value;">
new ActiveXObject("shell.application").BrowseForFolder(0, "My Programs", 0, "C:\Program Files")
</script>