代码:
<textarea cols="50" rols="20" id="oTX"></textarea>
<script>
var str="<font color='red'>www.5dblog.com/vip/</font><font color='blue'>allinhands</font>";
oA=document.createElement('A');
oA.innerHTML=str;
oA.href="http://www.5dblog.com/vip/allinhands/";
document.all('oTX').appendChild(oA)
</script>