试试下面这个例子,可以把图片文件加入到TEXT中光标指定位置。<form method="POST" action="" name=form1>
  <p><textarea rows="9" name="txt1" cols="34"></textarea><br>
  <input type="file" name="T1" size="20" onchange=toText(this.value)></p>
</form>
<script>
function toText(filename){
form1.txt1.focus();   
    txtrng=document.selection.createRange();   
txtrng.text=filename;
}
</script>