关于一个上传的中文问题?在上传时不是有一个浏览的按钮吗?怎么变成英文的呀

wmlf 2005-01-04 05:50:04
我做了一个英文网站,一个图片上传的地方有一个浏览的按钮吗?怎么变成英文的呀
????????????????????????????
...全文
313 29 打赏 收藏 转发到动态 举报
写回复
用AI写文章
29 条回复
切换为时间正序
请发表友善的回复…
发表回复
nicepp 2005-06-06
  • 打赏
  • 举报
回复
t
wmlf 2005-01-21
  • 打赏
  • 举报
回复
Hozaka(空虚的狼)
你说额这个方法是不错
但是你有没有式过呢?
上面有两段代码一个是表单的页面
一个是图片上传的页面
你试试看行不行
我试的时候每次都要我点击两下才行
单质点击凉席以后页面提交出去的值为空呀!
wmlf 2005-01-21
  • 打赏
  • 举报
回复
我改怎么半呀!!!!!!!!!!!!!!!!
555555555555555555555555555
5555555555555555555555
Hozaka 2005-01-21
  • 打赏
  • 举报
回复
把真实的文件框隐藏起来,用文本框和按钮模拟一个文件框;
点击按钮,调用文件框的click事件;选择文件后,文件框产生onchange事件,把值传给文本框!
--------------------------------------------------

这个强!
wmlf 2005-01-21
  • 打赏
  • 举报
回复
不行呀.老大门
高手呢????
wmlf 2005-01-21
  • 打赏
  • 举报
回复
Hozaka(空虚的狼)
你说额这个方法是不错
但是你有没有式过呢?
上面有两段代码一个是表单的页面
一个是图片上传的页面
你试试看行不行
我试的时候每次都要我点击两下才行
单质点击凉席以后页面提交出去的值为空呀!
lwx139 2005-01-20
  • 打赏
  • 举报
回复
<meta http-equiv="Content-Type" content="text/html; charset=hz-gb-2312">
wmlf 2005-01-20
  • 打赏
  • 举报
回复
set upload=new upload_5xsoft
set file=upload.file("file")
fileext=right(lcase(trim(file.filename)),3)

if file.filesize<=0 then
response.write " Please select a file  <a href='upfile1.htm' style='color:red'>backtrack</a>"
response.End()
end if

if fileext<>"jpg" and fileext<>"gif" then
response.write "File type error. Support jpg and gif formats only  <a href='upfile.htm' style='color:red'>backtrack</a>"
response.end
end if

filename=year(date())&month(date())&day(date())&hour(time())&minute(time())&second(time())&"."&fileext

file.saveas server.MapPath(""&filename)
response.Write filename
session("filename")=filename
response.write "Upload successfully!"
response.write "<script language='javascript'>parent.add.image.value='"&filename&"';</script>"%>
按照上面那位大哥的方法
为什么我总是file.filesize=0
现在我得图片也不能上传了???
急呀
大哥门
qfacy 2005-01-19
  • 打赏
  • 举报
回复
强!
wmlf 2005-01-19
  • 打赏
  • 举报
回复
<form action="savefile1.asp" method="post" enctype="multipart/form-data" name="form1">
<input name="txt"> <input name="file" type="file" size="20"

onchange="document.all.txt.value=this.value" style="display:none"><input type="button"

value="english" onclick="document.all.file.click()">
<input name="Submit" type="submit" value="Upload" >
</form>
强哥不是给出答案了

这样的问题是解决了但是我的图片上传又有问题了呀
wmlf 2005-01-14
  • 打赏
  • 举报
回复
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title>上传文件</title>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
}
-->
</style>
<link href="../style.css" rel="stylesheet" type="text/css">
</head>

<body>
<form action="savefile1.asp" method="post" enctype="multipart/form-data" name="form1">
<input name="file" type="file" size="20">
<input name="Submit" type="submit" value="Upload" >
</form>
</body>
</html>
代码如上
但是页面的浏览还是中文的
那位帮忙看看
  • 打赏
  • 举报
回复
如果对方的操作系统是E文的,看着就是E文的了

要不试试用charset,改变一下语言对象,估计没用
mrshelly 2005-01-14
  • 打赏
  • 举报
回复
用E文IE就是E文了。
xelibri 2005-01-14
  • 打赏
  • 举报
回复
你要是说弹出的对话框....
xelibri 2005-01-14
  • 打赏
  • 举报
回复
<form action="savefile1.asp" method="post" enctype="multipart/form-data" name="form1">
<input name="txt"> <input name="file" type="file" size="20"

onchange="document.all.txt.value=this.value" style="display:none"><input type="button"

value="english" onclick="document.all.file.click()">
<input name="Submit" type="submit" value="Upload" >
</form>
强哥不是给出答案了
life360 2005-01-05
  • 打赏
  • 举报
回复
IE 版本不同 显示不同
德仔 2005-01-05
  • 打赏
  • 举报
回复
原来如此,学到一招了
AMinfo 2005-01-05
  • 打赏
  • 举报
回复
当你的操作系统为英文时,这个浏览按钮文字就自动变为英文了
cyj920 2005-01-04
  • 打赏
  • 举报
回复
谢谢李强!
lienzhu 2005-01-04
  • 打赏
  • 举报
回复
把真实的文件框隐藏起来,用文本框和按钮模拟一个文件框;
点击按钮,调用文件框的click事件;选择文件后,文件框产生onchange事件,把值传给文本框!
加载更多回复(9)

28,391

社区成员

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

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