<html>
<head>
<script language ="javascript" type="text/javascript">
function InsertPic(picpath)
{
var editor = document.getElementById('txtContent');
var img = document.createElement('img');
img.src = picpath;
editor.appendChild(img);
}
</script>
</head>
<body>
<div>
<img src="../images/brow1.gif" onclick="InsertPic(this.src);" />
<img src="../images/brow2.gif" onclick="InsertPic(this.src);"/>
<img src="../images/brow3.gif" onclick="InsertPic(this.src);"/>
<img src="../images/brow4.gif" onclick="InsertPic(this.src);"/>
</div>
<textarea id="txtContent" cols="150" rows="30" runat="server">向textarea插入图片:</textarea>
</body>
</html>