⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ubb.asp

📁 有很多功能的留言版,很容易上手,有自动添加图片、表情。管理员功能也强大
💻 ASP
字号:
<Script Language="JScript" Runat=Server>

$UBBCode = 0               // 打开或关闭UBB代码功能.1(关闭).0(打开)
$html    = 0               // 打开或关闭HTML代码功能.1(打开).0(关闭)

function Autolink(temp) {


        if (!$UBBCode){ // UBB 代码的支持,这里仅仅提供了一些常用的代码。
	    	    temp = temp.replace(/(^|\s)(http|https|ftp)(:\/\/[^\";,<>]+)/ig, "<a href=\"$2$3\" target=_blank><u>$2$3</u></a>");
	    	    temp = temp.replace(/([^\//]])(www\.[^\";,<>]+)/ig, "<a href=\"http:\/\/$2\" target=_blank><u>$2</u></a>");
	    		temp = temp.replace(/(^|\s)(www\.[^\";,<>&]+)/ig, "<a href=\"http:\/\/$2\" target=_blank><u>$2</u></a>");
                temp = temp.replace(/(\[URL\])(http|https|ftp)(:\/\/\S+)(\[\/URL\])/ig, "<A HREF=\"$2$3\" TARGET=_blank><u>$2$3</u></A>");
                temp = temp.replace(/(\[URL\])(\S+)(\[\/URL\])/ig, " <A HREF=\"http:\/\/$2\" TARGET=_blank><u>$2</u></A>");
                temp = temp.replace(/(\[URL=)(http|https|ftp)(:\/\/\S+)(\])(.+)(\[\/URL\])/ig, "<A HREF=\"$2$3\" TARGET=_blank><u>$5</u></A>");
                temp = temp.replace(/(\[email=)(\S+)(\])(.+)(\[\/email\])/ig, "<A HREF=\"http:\/\/$2\" TARGET=_blank><u>$4</u></A>");
                temp = temp.replace(/(\[URL=)(\S+)(\])(.+)(\[\/URL\])/ig, "<a href=\"http:\/\/$2\" TARGET=_blank><u>$4</u></A>");
				temp = temp.replace(/(\[img\])(\S+)(\[\/img\])/ig, "<img src=\"$2\" alt=\"$2\">");
                temp = temp.replace(/(\[code\])(.+)(\[\/code\])/ig, "<BR><BLOCKQUOTE><strong>Code</strong>:<HR Size=1>$2<HR SIZE=1><\/BLOCKQUOTE>");
                temp = temp.replace(/(\[QUOTE\])(.+)(\[\/QUOTE\])/ig, "<BR><BLOCKQUOTE><strong>引用</strong>:<HR Size=1>$2<HR SIZE=1><\/BLOCKQUOTE>");
                temp = temp.replace(/(\[color=)(\S+)(\])(.+)(\[\/color\])/ig, "<font color=\"$2\">$4<\/font>");
                temp = temp.replace(/(\[span=)(\S+),(\S+)(\])(.+)(\[\/span\])/ig, "<span style=\"background\-color:$2\;color:$3\">$5<\/span>");
                temp = temp.replace(/(\[glow=)(\S+)(,\S+)(,\S+)(\])(.+)(\[\/glow\])/ig, "<table width=$2 style=\"filter:glow\(color=$3\,strength=$4\)\">$6<\/table>");
                temp = temp.replace(/(\[list\])(.+)(\[\/list\])/ig, "<UL TYPE=SQUARE>$2<\/UL>");
                temp = temp.replace(/(\[list=A\])(.+)(\[\/list\])/ig, "<ol type=A>$2<\/ol>");
                temp = temp.replace(/(\[list=1\])(.+)(\[\/list\])/ig, "<ol type=1>$2<\/ol>");
                temp = temp.replace(/(\[center\])(.+)(\[\/center\])/ig, "<CENTER>$2<\/CENTER>");
                temp = temp.replace(/(\[fly\])(.+)(\[\/fly\])/ig, "<marquee behavior=alternate>$2<\/marquee>");
                temp = temp.replace(/(\[move\])(.+)(\[\/move\])/ig, "<marquee>$2<\/marquee>");
                temp = temp.replace(/(\[i\])(.+)(\[\/i\])/ig, "<I>$2<\/I>");
                temp = temp.replace(/(\[b\])(.+)(\[\/b\])/ig, "<B>$2<\/B>");
                temp = temp.replace(/(\[u\])(.+)(\[\/u\])/ig, "<U>$2<\/U>");
                temp = temp.replace(/(\[\*\])/ig, "<LI>");
        }
	return (temp);
}
</Script>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -