为什么错了?求解
<Script Language="JScript" Runat=Server>
$UBBCode = 0 // 打开或关闭UBB代码功能.1(关闭).0(打开)
function Autolink(temp) {
temp=patch(temp);
if (!$UBBCode){ // UBB 代码的支持,这里仅仅提供了一些常用的代码。
temp = temp.replace(/(^|\s)(http|https|ftp)(:\/\/[^\";,<>]+)/ig, "<a href=\"$2$3\" target=_blank>$2$3</a>");
temp = temp.replace(/([^\//]])(www\.[^\";,<>]+)/ig, "<a href=\"http:\/\/$2\" target=_blank>$2</a>");
temp = temp.replace(/(^|\s)(www\.[^\";,<>&]+)/ig, "<a href=\"http:\/\/$2\" target=_blank>$2</a>");
temp = temp.replace(/(\[URL\])(http|https|ftp)(:\/\/\S+)(\[\/URL\])/ig, "<A HREF=\"$2$3\" TARGET=_blank>$2$3</A>");
temp = temp.replace(/(\[URL\])(\S+)(\[\/URL\])/ig, " <A HREF=\"http:\/\/$2\" TARGET=_blank>$2</A>");
temp = temp.replace(/(\[URL=)(http|https|ftp)(:\/\/\S+)(\])(.+)(\[\/URL\])/ig, "<A HREF=\"$2$3\" TARGET=_blank>$5</A>");
temp = temp.replace(/(\[email=)(\S+)(\])(.+)(\[\/email\])/ig, "<A HREF=\"mailto:\$2\">$4</A>");
temp = temp.replace(/(\[email\])(\S+)(\[\/email\])/ig, "<A HREF=\"mailto:\$2\">$2</A>");
temp = temp.replace(/(\[URL=)(\S+)(\])(.+)(\[\/URL\])/ig, "<a href=\"http:\/\/$2\" TARGET=_blank>$4</A>");
temp = temp.replace(/(\[sound\])(\S+)(\[\/sound\])/ig, "<bgsound src=\"$2\" loop=-1 >");
temp = temp.replace(/(\[size=)(\S+)(\])(.+)(\[\/size\])/ig, "<font size=\"$2\">$4<\/font>");
temp = temp.replace(/(\[img\])(\S+)(\[\/img\])/ig, "<img src=\"$2\" alt=\"$2\">");
temp = temp.replace(/(\[e\])(\S+)(\[\/e\])/g, "<img src=\"$2\" alt=\"$2\">");
}
return (temp);
}
function patch(temp) {
temp = temp.replace(/</ig, "<");
temp = temp.replace(/>/ig, ">");
temp = temp.replace(/\r\n/ig, "<BR> ");
temp = temp.replace(/\n\r\n/ig, "<P>");
temp = temp.replace(/\n/ig, "<BR>");
temp = temp.replace(/\r/ig, "");
return (temp);
}
</Script>
为什么一个[e]1[/e]的时候好用 但是 [e]1[/e][e]1[/e]却不好用了
什么原因?
问题点数:0、回复次数:0Top




