http://community.csdn.net/Expert/topic/3816/3816662.xml?temp=.3185999
<textarea name="t1" rows=8 cols=60>
</textarea>
<input type=button value='insertPic' οnclick="pastePic();">
<script>
function pastePic(){
dv1.innerHTML="";
var o=document.body.createTextRange();
o.moveToElementText(dv1);
o.execCommand("paste");
var picUrl=getPicUrl(dv1.innerHTML);
obj=document.all("t1");
o=document.createElement("IMG");
o.src=picUrl;
obj.appendChild(o);
dv1.innerHTML="";
}
function getPicUrl(str)
{
var re;
re=/(.*?)<img(.*?)src="(.*?)"(.*?)>(.*)/gi;
return str.replace(re,"$3");
}
</script>
<div id="dv1" style="display:"></div>