我也来写一段上传图片前的代码供大家参考一下
我也不详细的说明啦,不过我想出这代码还要谢谢 独孤求爱 写的那文章
<html>
<head>
<script language="vbscript">
sub thisform_onsubmit
me.action = "uppic.asp?picw="&me.zt.width&"&pich="&me.zt.height
end sub
</script>
</head>
<body>
<form method="post" name="thisform" action="" enctype="multipart/form-data">
<p><input type="file" name="f1" size="20" onchange="show()"></p>
<p><input type="submit" value="提交" name="b1" style="display:none">
</p>
<img src="" id="zt" style="visibility:hidden" onload="oksubmit()">
<script language="javascript">
function show()
{document.all.zt.src=document.thisform.f1.value;}
function oksubmit()
{thisform.b1.style.display = "";}</script>
</form></body></html>
图片上传前取得尺寸-ASP教程,ASP应用
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com 特别注意:本站所有转载文章言论不代表本站观点! 本站所提供的图片等素材,版权归原作者所有,如需使用,请与原作者联系。未经允许不得转载:IDC资讯中心 » 图片上传前取得尺寸-ASP教程,ASP应用
相关推荐
- 暂无文章
