JS代码:
function setImage(name){
document.getElementById("pic").src="picture/"+name;
document.getElementById("photo_id").value=name;
}
添加页面代码
图片:width="350px;" height="30px;"
marginheight="0" scrolling="no"
frameborder="0" >
图片:
下面是页面效果图:
单击浏览按钮,跳转页面代码:
enctype="multipart/form-data" name="imgForm">
name="tempImg" border="0" id="_upFile" />
Action里代