Browse按钮的文字是根据系统语言设置自动配置的。但操作系统语言是英文时,如何改变browse文字为“浏览”呢?
高手赐教!
高手赐教!
解决方案 »
- FileStream读取流时用相对路径为什么不可以?想用相对路径怎么办?
- 请高手们请进。。一个关于连接委托链表的问题
- ado.net操作oracle数据库时出错???
- VS中xml文件的中英文显示颜色不一样?
- 好心的同志们,一个多值传递的问题?请帮帮我哟!
- 初学.net,!treeview树形控件问题!
- 存储过程里面的回滚操作
- 请问怎样点treeview出现稍等,就像CSDN的treeview效果
- Microsoft Application Blocks for .NET 是啥意思?,再哪下载?
- 如何解决这个常见的问题。
- silverlight_chainer的安装
- 我建了一个解决方案,把一个Web应用加进去,可解决方案不见了怎么设置叫它显示出来,谢谢了
怎么实现?
<!--
function ShowBrowse()
{
var file1=document.getElementById("file1");
if(file1)
{
file1.click();
}
}
//-->
</SCRIPT>
<input id="file1" type="file" style="display:none" />
<button onclick="ShowBrowse()">浏览</button>
<!--
function ShowBrowse()
{
var file1=document.getElementById("file1");
if(file1)
{
file1.click();
}
} function ShowFilename(o)
{
var filename=document.getElementById("filename");
if(filename)
{
filename.value=o.value;
}
}
//-->
</SCRIPT>
<input id="file1" type="file" onpropertychange="ShowFilename(this);" style="display:none" />
<input id="filename" /><button onclick="ShowBrowse()"> 浏览... </button>
<head id="Head1" runat="server">
<title>无标题页</title>
<style type="text/css">
a.addfile
{
background-image: url(http://p.mail.163.com/js31style/lib/0703131650/163blue/f1.gif);
background-repeat: no-repeat;
background-position: -823px -17px;
display: block;
float: left;
height: 25px;
margin-top: -1px;
position: relative;
text-decoration: none;
top: 0pt;
width: 65px;
overflow:hidden;
}
a.addfile:hover
{
background-position: -911px -17px;
}
input.addfile
{
cursor: pointer !important;
height: 25px;
left: -6px;
filter: alpha(opacity=0);
position: absolute;
width: 0px;
z-index: -1;
}
</style>
</head>
<body>
<form id="form1" runat="server" enctype="multipart/form-data">
<div>
<a href="#" class="addfile" id="al">
<input id="my_file_element" class="addfile" runat="server" type="file" name="file_1" size="1" title="点击选择附件" />
</a>
</div>
</form>
</body>
</html>
你看看就知道该改什么了