Laden Sie das Formular mit Bildvorschehrungsfunktion hoch, der vollständige HTML -Code lautet wie folgt
<html>
<kopf>
<meta http-äquiv = content-type content = text/html; charSet = gb2312>
<title> Upload -Formular mit Bildvorschau -Funktion cuoxin.com </title>
<Script>
Funktion viewMypic (mypic, imgFile) {
if (imgFile.Value) {
mypic.src = imgFile.Value;
Mypic.Style.Display =;
mypic.border = 1;
}
}
</script>
</head>
<body>
<Center>
<form>
<Eingabe name = imgFile type = Datei id = imgFile size = 40 onchange = viewMypic (showImg, this.form.imgFile); />
<br />
</form>
<img name = showimg id = showimg src = style = display: keine; ALT = Preview Bild/
<br />
</div>
<div style = display: keine>
</div>
</center>
</body>
</html>