客户端预浏图片 JS
客户端预浏图片:
<script language="JavaScript">
function selectImg(fileSel)
{
alert(fileSel.value);
document.all.img_Pre.src = "file:///"+fileSel.value;
}
</script>
<input size=30 id="file_Sel" type="file" onchange="selectImg(this)" />
<br />
<img id="img_Pre" width="300" height="200" />