<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
</head>
<script>
function upFile()
{
document.getElementById("browFile").click();
}
function addFile(obj)
{
var items = document.createElement("option");
items.value = obj.value;
items.text = obj.value.split("//")[obj.value.split("//").length - 1];
document.getElementById("fileList").add(items);
}
</script>
<body>
<select id="fileList" multiple style="height:300px; width:300px;">
</select>
<input type="Button" value="添加" onclick="upFile()">
<input style="display:none;" type="File" id="browFile" onchange="addFile(this)">
</body>
</html>