JS部分:
function addFile(){
document.getElementById("file").click();
}
BODY部分:
<table width="100%" height="120">
<tr>
<td width="17%">
<img src="images/tx.jpg" id="imghead" width="127" height="167" οnclick="addFile()"/><br/>
</c:if>
<input type="file" id="file" name="file" value="123" οnchange="addIMG(this)" UNSELECTABLE="on"/>
</td>
</tr>
</table>