📄 pic.asp
字号:
<!--#include file="conn.asp"-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>图片上传</title>
<script language="javascript">
function show(value)
{
var path='file:///'+value;
var pic="<img id=\"imgId\" height=\"180\" width=\"160\" src=\""+path+"\">";
document.getElementById("divpic").innerHTML=pic;
}
</script>
</head>
<body style="background-color:#FCEFDA;align:center;font-size:12px;" >
<form action="../upfile.asp" method="post" enctype="multipart/form-data" name="form1" id="form1">
请选择你要上传的图片:
<input name="file" type="file" size="20" onpropertychange="show(this.value)"/>
<input type="submit" name="Submit" value="上传" />
</form>
缩略图:
<div id="divpic" style="border:solid #000000 1px; width:160px; height:180px;">
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -