<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>×ݺáHTTPͼƬÉÏ´«×é¼þÑÝʾ</title>
</head>
<body bgcolor="#666666">
¡¡
<form action="ImageUploadDealD2.jsp" method="post" enctype="multipart/form-data" name="frusub" id="frusub">
<div id=fileupload name=fileupload style="height:30">//关键的部分 div
<input type="file" name="file" onChange="" ><br>
<input type="file" name="file" onChange=""><br>
</div>
<input type="submit" name="Submit" value="Ìá½»"> <input type="button" name="button" value="Ìá½»" onclick=" _addfileinput(this)">
</form>
</body>
<Script>
function _addfileinput1(){
var fileinput = document.createElement("input");
fileinput.type= "file";
fileinput.value="";
fileupload.appendChild(fileinput);
}
function _addfileinput(){//很关键的部分 添加一个上传的控制栏
var divname = document.all.fileupload;
divname.innerHTML += "<input type='file' name='file'> <br>";
}
</script>
</html>