strIcons = "1" //允许笑脸转换
strSmile="1" //同上
ImgName="em"
picurl="/images/emot/"
function UBBCode(content,html){
content=content.replace("\\r","");
content=content.replace("\\n","");
return (trans(content));
}
function trans(strContent){
var re;
re=/\[IMG\](.+?)\[\/IMG\]/ig;
strContent=strContent.replace(re,"a href=$1 target=_blankdivIMG SRC=$1 border=0 alt=按此在新窗口浏览图片 onload=\"javascript:if(this.widthscreen.width*0.7)this.width=screen.width*0.7;\" galleryImg=no/div/a ");
re=/\[DIR=*([0-9...[ 查看全文 ]