<form name=form1>
<span style="width: 230; overflow: hidden;">
<input type="file" name="file1" style="width: 300;">
</span>
<input type=button value=浏览 onclick="document.form1.file1.click()">
</form>
<span style="width: 230; overflow: hidden;">
<input type="file" name="file1" style="width: 300;">
</span>
<input type=button value=浏览 onclick="document.form1.file1.click()">
</form>
解决方案 »
- 有没有什么好的技术可以实现这样的效果(急!急!急!)
- 有关http和https的问题!~
- 求一字符串替换的js,在线等
- 用js调用的对联广告为什么现在Dreamweaver打不开?
- 可以设置鼠标的坐标位置吗?event.clientX不能写入。
- 天啊,IE5会不支持该脚本吗????
- 大侠:可输入的下拉列表框怎么实现
- 请好心人帮帮我,解析一下下面的方法的用法。
- 禁止用户输入其他东西,而只能输入数字
- 一个数组排序的问题
- 请问在javascript中如何把OLE自动化时间转换为Date型?
- <select><option 中怎么实现类似title 属性?>title</option></select>
<span style="width: 0; overflow: hidden;">
<input type="file" name="file1" style="width: 300;" onchange="document.forms[0].submit();">
</span><input type="submit" value="aaa" onclick="document.form1.file1.click();">
</form>
这样为什么不正确
正确的做法你可以document.createElement()创建出<input type=file>对象, 让用户一个个点击选中文件再上传.
Public Declare Function GetSaveFileName Lib "comdlg32.dll" Alias "GetSaveFileNameA" (pOpenfilename As OPENFILENAME) As Long