?? feedbackconfig.asp
字號:
<Script Language="JScript" Runat=Server>
$UBBCode = 0 // 打開或關閉UBB代碼功能.0(關閉).1(打開)
$imglink = 0 // 同樣的是為了打開或關閉帖圖功能
$html = 0 // 同樣的是為了打開或關閉HTML功能
$Smilies = 0 // 同樣的是為了打開或關閉表情功能
function Autolink(temp) {
temp=patch(temp);
temp=Smilies(temp);
if (!$imglink){
temp = temp.replace(/(http:\/\/)([\w\+\-\/\=\?\.\~]+\.(jpg|gif|pcx|bmp))/ig, "<HR SIZE=1 Noshade width=100% align=\"left\"><img src=\"\/\/$2\" alt=\"$2\">");
}
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(/(\[URL=)(\S+)(\])(.+)(\[\/URL\])/ig, "<A HREF=\"http:\/\/$2\" TARGET=_blank>$4</A>");
/*
temp = temp.replace(/(\[IMG\])(\S+)(\[\/IMG\])/ig, "<HR SIZE=1 Noshade width=100% align=\"left\"><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(/(\[COLOR=)(\S+)(\])(.+)(\[\/COLOR\])/ig, "<FONT COLOR=\"$2\">$4<\/FONT>");
temp = temp.replace(/(\[FACE=)(\S+)(\])(.+)(\[\/FACE\])/ig, "<FONT FACE=\"$2\">$4<\/FONT>");
temp = temp.replace(/(\[SIZE=)(\S+)(\])(.+)(\[\/SIZE\])/ig, "<FONT SIZE=\"$2\">$4<\/FONT>");
temp = temp.replace(/(\[list\])(.+)(\[\/list\])/ig, "<UL TYPE=SQUARE>$2<\/UL>");
temp = temp.replace(/(\[i\])(.+)(\[\/i\])/ig, "<I>$2<\/I>");
temp = temp.replace(/(\[\*\])/ig, "<LI>");
temp = temp.replace(/(\[b\])(.+)(\[\/b\])/ig, "<b>$2</b>");
temp = temp.replace(/(\w+\@\w+.[\w.]+)/ig, "<a href=\"mailto:$1\">$1</a>");
}
return (temp);
}
function Smilies(temp) {
if (!$Smilies){
temp = temp.replace(/\:\)/ig, "<img src=\icons\/smile.gif ALIGN=absmiddle>");
temp = temp.replace(/\:\(/ig, "<img src=\icons\/frown.gif ALIGN=absmiddle>");
temp = temp.replace(/\:D/g, "<img src=\icons\/biggrin.gif ALIGN=absmiddle>");
temp = temp.replace(/\<\;\)/ig, "\<\;\ )");
temp = temp.replace(/\>\;\)/ig, "\>\;\ )");
temp = temp.replace(/\;\)/ig, "<img src=\icons\/wink.gif ALIGN=absmiddle>");
temp = temp.replace(/\:o/g, "<img src=\icons\/redface.gif ALIGN=absmiddle>");
temp = temp.replace(/\:p/g, "<img src=\icons\/tongue.gif ALIGN=absmiddle>");
temp = temp.replace(/\:cool/ig, "<img src=\icons\/cool.gif ALIGN=absmiddle>");
temp = temp.replace(/\:rolleyes/g, "<img src=\icons\/rolleyes.gif ALIGN=absmiddle>");
temp = temp.replace(/\:mad/g, "<img src=\icons\/mad.gif ALIGN=absmiddle>");
temp = temp.replace(/\:eek/ig, "<img src=\icons\/eek.gif ALIGN=absmiddle>");
temp = temp.replace(/\:confused/ig, "<img src=\icons\/confused.gif ALIGN=absmiddle>");
}
return (temp);
}
function patch(temp) {
if (!$html){
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>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -