js 上传图片预览
<script language='javascript'>
function show(){
var p=document.getElementById("file1").value;
document.getElementById("s").innerHTML="<input type=image id=pic width=150 height=100 /> ";
document.getElementById("pic").src=p;
//alert(p);
}
</script>
<input type="file" name="file1" id="file1" onpropertychange="show();" /> <span id="s"></span>


浙公网安备 33010602011771号