求救~~~~~高手 返回值的问题

luxinke007 2005-10-24 05:43:27
<input name="Document" type="file" id="Document" >

我通过一个javascipt函数已经获取到了数据库中的Document的字符串值.
我想将这个值返回到file 标签上去.但是通过form.document.Document.value=Document语句来返回.却不行.请各位高手指教
...全文
137 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
xtpdcyygy 2005-10-24
  • 打赏
  • 举报
回复
UP
satans18 2005-10-24
  • 打赏
  • 举报
回复
<script>
function fclick(obj){
with(obj){
style.posTop=event.srcElement.offsetTop
var x=event.x-offsetWidth/2
if(x<event.srcElement.offsetLeft)x=event.srcElement.offsetLeft
if(x>event.srcElement.offsetLeft+event.srcElement.offsetWidth-offsetWidth)x=event.srcElement.offsetLeft+event.srcElement.offsetWidth-offsetWidth
style.posLeft=x
}
}
</script>
<style>
input{border:1px solid #333333;color:#666666;background:#eeeeee;font:normal 12px Tahoma;height:18px}
</style>
<form method="post" action="" enctype="multipart/form-data">
<input id="f_file"> <input type="button" onmouseover="fclick(t_file)" value="选择上传文件">
<input name="upload" type="file" style="position:absolute;filter:alpha(opacity=0);width:30px;" id="t_file" onchange="f_file.value=this.value" hidefocus>
</form>
ybfqlyq 2005-10-24
  • 打赏
  • 举报
回复
樓上正解。
建議加個文本框顯示
孟子E章 2005-10-24
  • 打赏
  • 举报
回复
type="file"类型 的input是只读的

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧