设置file控件的按钮样式

网上找的,分享一下
<html>
<script>
function fclick(obj){
with(obj){
style.posTop
=event.y-offsetHeight/2
style.posLeft
=event.x-offsetWidth/2
}

}

</script>
<style>
input
{border:1px solid #333333;color:#666666;background:#eeeeee;font:normal 12px Tahoma;height:18px}
</style>
<br>
<br>
<br>
<table>
<tr>
<td>
<form method="post" action="" enctype="multipart/form-data">
<input id="f_file">&nbsp;<input type="button" onmouseover="fclick(t_file)" value="选择上传文件">
<br>
<input name="upload" type="file" style="position:absolute;filter:alpha(opacity=10);width:30px;" id="t_file" onchange="f_file.value=this.value" hidefocus>
<br><input type="submit" value="提交">
</form>
</tr>
</table>
</html>

posted on 2007-06-14 23:03 JGAO编程随笔 阅读(2466) 评论(3)  编辑  收藏

评论

# re: 设置file控件的按钮样式 2008-01-07 20:22 java123

import org.apache.commons.fileupload.disk.DiskFileItemFactory; 在哪个jar包里面?我找了半天也没找到啊  回复  更多评论   

# re: 设置file控件的按钮样式[未登录] 2008-02-14 12:26 jgao

哦,不好意思我这边说的是file控件的按钮样式
跟org.apache.commons.fileupload.disk.DiskFileItemFactory这个类没关系
至于这个类你可以另外去baidu或google搜索一下,就是个上传文件的东西  回复  更多评论   

# re: 设置file控件的按钮样式 2008-06-20 13:57 zyhomepage

学习!  回复  更多评论   


只有注册用户登录后才能发表评论。


网站导航:
 
<2007年6月>
272829303112
3456789
10111213141516
17181920212223
24252627282930
1234567

导航

统计

常用链接

留言簿(1)

随笔档案

搜索

最新评论

阅读排行榜

评论排行榜