Upload form of picture preview function

web front end seven thousand four hundred and sixty-four 14 years ago (2010-10-16)

Upload form of picture preview function.

 <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title> Image upload </title><script> function viewmypic(mypic,imgfile) { if (imgfile.value){ mypic.src=imgfile.value; mypic.style.display=""; mypic.border=1; } } </script> <center> <form> <input name="imgfile" type="file" id="imgfile" size="40" onchange="viewmypic(showimg,this.form.imgfile);" /><br /> </form><img name="showimg" id="showimg" style="display: none;" alt="Preview picture -- toyean. com" src="undefined"/><br/> <div style="display:none"> </div> </center>