var msg=document.getElementsByName("h_post"); for(var i=0;i <msg.length;i++){var txt=document.getElementsByName("h_post")[i].innerHTML; txt=txt.replace(/\n/ig,''); txt=txt.replace(/\<a href="(.+?)">@(.+?)@(.+?)<\/a>/ig, ' <table width="100%"><tr><td><a style="margin-left:3px;" href="$1"><img src="$2" width="90px" height="60px" class="frame"/></a></td><td valign="top" width="205px"><a href="$1"><span>$3</span></a></td></tr></table>');
document.getElementsByName("h_post")[i].innerHTML=txt; }; 