第2个回答 2009-09-06
<input id="FileUpload1" type="file" runat="server" onChange="selectimage(this)" />
<img id="imageview" runat="server" src="" style="display:none" alt="暂无图片" />
function selectimage(imageurl)
{
var imageview=document.getElementById("imageview");
imageview.style.display="block";
imageview.src=imageurl.value;
}本回答被提问者采纳