您的位置:首页 > Web前端 > JavaScript

javascript预览图片,按比例控制图片大小

2007-04-03 00:17 357 查看
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>图片预览</title>
</script>

</head>

<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center"><img id="picpreview" alt='预览' /></td>
</tr>
<tr>
<td align="center"><form id="form1" name="form1" enctype="multipart/form-data" method="post" action="">
<label>update
<input type="file" id="uppic" name="uppic" onchange="javascript:PreviewPhotoatwidth(this,picpreview,260)" />
</label>
</form>
</td>
</tr>
<tr>
<td> </td>
</tr>
</table>
</body>
</html>

从一个CNBLOGS朋友那里找到 记下 分享
http://www.cnblogs.com/cowboy/archive/2006/10/14/390808.html
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: