📄 _ubbcode__jsp.java
字号:
com.caucho.vfs.Path resinHome = com.caucho.server.util.CauchoSystem.getResinHome();
com.caucho.vfs.MergePath mergePath = new com.caucho.vfs.MergePath();
mergePath.addMergePath(appDir);
mergePath.addMergePath(resinHome);
com.caucho.loader.DynamicClassLoader loader;
loader = (com.caucho.loader.DynamicClassLoader) getClass().getClassLoader();
String resourcePath = loader.getResourcePathSpecificFirst();
mergePath.addClassPath(resourcePath);
com.caucho.vfs.Depend depend;
depend = new com.caucho.vfs.Depend(appDir.lookup("forum/inc/ubbcode.jsp"), -7507747671965470120L, false);
com.caucho.jsp.JavaPage.addDepend(_caucho_depends, depend);
depend = new com.caucho.vfs.Depend(appDir.lookup("WEB-INF/tlds/LabelTag.tld"), 936435632544814250L, false);
com.caucho.jsp.JavaPage.addDepend(_caucho_depends, depend);
com.caucho.jsp.JavaPage.addDepend(_caucho_depends, new com.caucho.make.ClassDependency(com.redmoon.forum.ui.LabelTag.class, -398364840801018274L));
}
static {
try {
} catch (Exception e) {
e.printStackTrace();
throw new RuntimeException(e);
}
}
private final static char []_jsp_string23;
private final static char []_jsp_string16;
private final static char []_jsp_string21;
private final static char []_jsp_string22;
private final static char []_jsp_string38;
private final static char []_jsp_string10;
private final static char []_jsp_string2;
private final static char []_jsp_string5;
private final static char []_jsp_string15;
private final static char []_jsp_string28;
private final static char []_jsp_string6;
private final static char []_jsp_string24;
private final static char []_jsp_string9;
private final static char []_jsp_string33;
private final static char []_jsp_string26;
private final static char []_jsp_string20;
private final static char []_jsp_string41;
private final static char []_jsp_string1;
private final static char []_jsp_string32;
private final static char []_jsp_string12;
private final static char []_jsp_string7;
private final static char []_jsp_string18;
private final static char []_jsp_string43;
private final static char []_jsp_string31;
private final static char []_jsp_string17;
private final static char []_jsp_string4;
private final static char []_jsp_string36;
private final static char []_jsp_string29;
private final static char []_jsp_string39;
private final static char []_jsp_string37;
private final static char []_jsp_string11;
private final static char []_jsp_string19;
private final static char []_jsp_string30;
private final static char []_jsp_string42;
private final static char []_jsp_string27;
private final static char []_jsp_string35;
private final static char []_jsp_string13;
private final static char []_jsp_string40;
private final static char []_jsp_string34;
private final static char []_jsp_string44;
private final static char []_jsp_string25;
private final static char []_jsp_string3;
private final static char []_jsp_string0;
private final static char []_jsp_string8;
private final static char []_jsp_string14;
static {
_jsp_string23 = "\";\r\nvar error_no_moeny = \"".toCharArray();
_jsp_string16 = "\";\r\nvar error_no_gset = \"".toCharArray();
_jsp_string21 = "\";\r\nvar error_no_points = \"".toCharArray();
_jsp_string22 = "\";\r\nvar text_enter_money = \"".toCharArray();
_jsp_string38 = "\";\r\nvar text_url = \"".toCharArray();
_jsp_string10 = "\";\r\nvar text_enter_sw = \"".toCharArray();
_jsp_string2 = "\";\r\nvar text_enter_image = \"".toCharArray();
_jsp_string5 = "\";\r\nvar text_enter_ra = \"".toCharArray();
_jsp_string15 = "\";\r\nvar error_no_email = \"".toCharArray();
_jsp_string28 = "\";\r\nvar text_enter_usercp = \"".toCharArray();
_jsp_string6 = "\";\r\nvar text_enter_rm = \"".toCharArray();
_jsp_string24 = "\";\r\nvar text_enter_power = \"".toCharArray();
_jsp_string9 = "\";\r\nvar text_enter_mov = \"".toCharArray();
_jsp_string33 = "\";\r\nvar text_flash_info = \"".toCharArray();
_jsp_string26 = "\";\r\nvar text_enter_post = \"".toCharArray();
_jsp_string20 = "\";\r\nvar text_enter_points = \"".toCharArray();
_jsp_string41 = "\";\r\nvar text_media_size = \"".toCharArray();
_jsp_string1 = "\";\r\nvar text_enter_txt = \"".toCharArray();
_jsp_string32 = "\";\r\nvar text_code = \"".toCharArray();
_jsp_string12 = "\";\r\nvar error_no_url = \"".toCharArray();
_jsp_string7 = "\";\r\nvar text_enter_wmv = \"".toCharArray();
_jsp_string18 = "\";\r\nvar text_enter_guang1 = \"".toCharArray();
_jsp_string43 = "\";\r\nvar text_shockwave_info = \"".toCharArray();
_jsp_string31 = "\";\r\nvar wait_send = \"".toCharArray();
_jsp_string17 = "\";\r\nvar error_no_gtxt = \"".toCharArray();
_jsp_string4 = "\";\r\nvar text_enter_swf = \"".toCharArray();
_jsp_string36 = "\";\r\nvar text_rm_info = \"".toCharArray();
_jsp_string29 = "\";\r\nvar error_no_usercp = \"".toCharArray();
_jsp_string39 = "\";\r\nvar text_input = \"".toCharArray();
_jsp_string37 = "\";\r\nvar text_movie_size = \"".toCharArray();
_jsp_string11 = "\";\r\nvar text_enter_email = \"".toCharArray();
_jsp_string19 = "\";\r\nvar text_enter_guang2 = \"".toCharArray();
_jsp_string30 = "\";\r\nvar text_t = \"".toCharArray();
_jsp_string42 = "\";\r\nvar text_quicktime_info = \"".toCharArray();
_jsp_string27 = "\";\r\nvar error_no_post = \"".toCharArray();
_jsp_string35 = "\"\r\nvar text_flash_url = \"".toCharArray();
_jsp_string13 = "\";\r\nvar error_no_txt = \"".toCharArray();
_jsp_string40 = "\";\r\nvar text_media_info = \"".toCharArray();
_jsp_string34 = "\";\r\nvar text_flash_size = \"".toCharArray();
_jsp_string44 = "\";\r\n\r\nfunction commentWrite(NewCode) {\r\ndocument.frmAnnounce.Content.value+=NewCode;\r\ndocument.frmAnnounce.Content.focus();\r\nreturn;\r\n}\r\nfunction storeCaret(text) { \r\n if (text.createTextRange) {\r\n text.caretPos = document.selection.createRange().duplicate();\r\n }\r\n if(event.ctrlKey && window.event.keyCode==13){i++;if (i>1) {alert(wait_send);return false;}this.document.form.submit();}\r\n}\r\nfunction AddText(text) {\r\n if (document.frmAnnounce.Content.createTextRange && document.frmAnnounce.Content.caretPos) { \r\n var caretPos = document.frmAnnounce.Content.caretPos; \r\n caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ?\r\n text + ' ' : text;\r\n }\r\n else document.frmAnnounce.Content.value += text;\r\n document.frmAnnounce.Content.focus(caretPos);\r\n}\r\nfunction inputs(str)\r\n{\r\nAddText(str);\r\n}\r\nfunction Curl() {\r\n var FoundErrors = '';\r\n var enterURL = prompt(text_enter_url, \"http://\");\r\n var enterTxT = prompt(text_enter_txt, enterURL);\r\n if (!enterURL) {\r\n FoundErrors += \"\\n\" + error_no_url;\r\n }\r\n if (!enterTxT) {\r\n FoundErrors += \"\\n\" + error_no_txt;\r\n }\r\n if (FoundErrors) {\r\n alert(FoundErrors);\r\n return;\r\n }\r\n \r\n var temp = enterURL;\r\n var regwhich = new RegExp(\"http\",\"i\")\r\n enterURL = temp.replace(regwhich,\"hhttttpp\") // \u9632\u6b62\u5728fchar.ubb\u4e2d\u88ab\u91cd\u590d\u66ff\u6362\u5730\u5740\r\n \r\n var ToAdd = \"[URL=\"+enterURL+\"]\"+enterTxT+\"[/URL]\";\r\n document.frmAnnounce.Content.value+=ToAdd;\r\n document.frmAnnounce.Content.focus();\r\n}\r\n\r\nfunction Cimage() {\r\nvar FoundErrors = '';\r\nvar enterURL = prompt(text_enter_image, \"http://\");\r\nif (!enterURL) {\r\nFoundErrors += \"\\n\" + error_no_url;\r\n}\r\nif (FoundErrors) {\r\nalert(FoundErrors);\r\nreturn;\r\n}\r\n\r\nvar temp = enterURL;\r\nvar regwhich = new RegExp(\"http\",\"i\")\r\nenterURL = temp.replace(regwhich,\"hhttttpp\")//\u9632\u6b62\u5728fchar.ubb\u4e2d\u88ab\u91cd\u590d\u66ff\u6362\u5730\u5740\r\n\r\nvar ToAdd = \"[img]\"+enterURL+\"[/img]\";\r\ndocument.frmAnnounce.Content.value+=ToAdd;\r\ndocument.frmAnnounce.Content.focus();\r\n}\r\nfunction Cemail() {\r\nvar emailAddress = prompt(text_enter_email,\"\");\r\nif (!emailAddress) { alert(error_no_email); return; }\r\nvar ToAdd = \"[EMAIL]\"+emailAddress+\"[/EMAIL]\";\r\ncommentWrite(ToAdd);\r\n}\r\nfunction Ccode() {\r\nif (Code == 0) {\r\nToAdd = \"[CODE]\";\r\ndocument.form.code.value = text_code;\r\nCode = 1;\r\n} else {\r\nToAdd = \"[/CODE]\";\r\ndocument.form.code.value = text_code;\r\nCode = 0;\r\n}\r\ncommentWrite(ToAdd);\r\n}\r\nfunction Cquote() {\r\nfontbegin=\"[QUOTE]\";\r\nfontend=\"[/QUOTE]\";\r\nfontchuli();\r\n}\r\nfunction Cbold() {\r\nfontbegin=\"[B]\";\r\nfontend=\"[/B]\";\r\nfontchuli();\r\n}\r\nfunction Citalic() {\r\nfontbegin=\"[I]\";\r\nfontend=\"[/I]\";\r\nfontchuli();\r\n}\r\nfunction Cunder() {\r\nfontbegin=\"[U]\";\r\nfontend=\"[/U]\";\r\nfontchuli();\r\n}\r\nfunction Ccenter() {\r\nfontbegin=\"[center]\";\r\nfontend=\"[/center]\";\r\nfontchuli();\r\n}\r\nfunction Cstrike() {\r\nfontbegin=\"[strike]\";\r\nfontend=\"[/strike]\";\r\nfontchuli();\r\n}\r\n\r\nfunction money() {\r\nvar FoundErrors = '';\r\nvar entermoney =prompt(text_enter_money,\"1000\");\r\nif (!entermoney) {\r\nFoundErrors += \"\\n\" + error_no_money;\r\n}\r\nif (FoundErrors) {\r\nalert(FoundErrors);\r\nreturn;\r\n}\r\nvar ToAdd = \"[Money=\"+entermoney+\"][/Money]\";\r\ndocument.frmAnnounce.Content.value+=ToAdd;\r\ndocument.frmAnnounce.Content.focus();\r\n}\r\nfunction usercp() {\r\nvar FoundErrors = '';\r\nvar enterusercp =prompt(text_enter_usercp,\"1000\");\r\nif (!enterusercp) {\r\nFoundErrors += \"\\n\" + error_no_usercp;\r\n}\r\nif (FoundErrors) {\r\nalert(FoundErrors);\r\nreturn;\r\n}\r\nvar ToAdd = \"[UserCP=\"+enterusercp+\"][/UserCP]\";\r\ndocument.frmAnnounce.Content.value+=ToAdd;\r\ndocument.frmAnnounce.Content.focus();\r\n}\r\nfunction power() {\r\nvar FoundErrors = '';\r\nvar enterpower =prompt(text_enter_power,\"1000\");\r\nif (!enterpower) {\r\nFoundErrors += \"\\n\" + error_no_power;\r\n}\r\nif (FoundErrors) {\r\nalert(FoundErrors);\r\nreturn;\r\n}\r\nvar ToAdd = \"[Power=\"+enterpower+\"][/Power]\";\r\ndocument.frmAnnounce.Content.value+=ToAdd;\r\ndocument.frmAnnounce.Content.focus();\r\n}\r\nfunction article() {\r\nvar FoundErrors = '';\r\nvar enterpost =prompt(text_enter_post,\"1000\");\r\nif (!enterpost) {\r\nFoundErrors += \"\\n\" + error_no_post;\r\n}\r\nif (FoundErrors) {\r\nalert(FoundErrors);\r\nreturn;\r\n}\r\nvar ToAdd = \"[Post=\"+enterpost+\"][/Post]\";\r\ndocument.frmAnnounce.Content.value+=ToAdd;\r\ndocument.frmAnnounce.Content.focus();\r\n}\r\nfunction replyview() {\r\nvar ToAdd = \"[replyview][/replyview]\";\r\ndocument.frmAnnounce.Content.value+=ToAdd;\r\ndocument.frmAnnounce.Content.focus();\r\n}\r\nfunction Csound() {\r\nvar FoundErrors = '';\r\nvar enterURL = prompt(text_enter_sound, \"http://\");\r\nif (!enterURL) {\r\nFoundErrors += \"\\n\" + error_no_url;\r\n}\r\nif (FoundErrors) {\r\nalert(FoundErrors);\r\nreturn;\r\n}\r\nvar ToAdd = \"[SOUND]\"+enterURL+\"[/SOUND]\";\r\ndocument.frmAnnounce.Content.value+=ToAdd;\r\ndocument.frmAnnounce.Content.focus();\r\n}\r\n\r\nhelpstat = false;\r\nstprompt = true;\r\nbasic = false;\r\nfunction thelp(swtch){\r\n if (swtch == 1){\r\n basic = false;\r\n stprompt = false;\r\n helpstat = true;\r\n } else if (swtch == 0) {\r\n helpstat = false;\r\n stprompt = false;\r\n basic = true;\r\n } else if (swtch == 2) {\r\n helpstat = false;\r\n basic = false;\r\n stprompt = true;\r\n }\r\n}\r\n\r\nfunction Cswf() {\r\n if (helpstat){\r\n alert(text_flash_info);\r\n } else if (basic) {\r\n AddTxt=\"[flash=500,350][/flash]\";\r\n AddText(AddTxt);\r\n } else { \r\n txt2=prompt(text_flash_size,\"500,350\"); \r\n if (txt2!=null) {\r\n txt=prompt(text_flash_url, \"http://\");\r\n if (txt!=null) {\r\n var temp = txt;\r\n var regwhich = new RegExp(\"http\",\"i\")\r\n txt = temp.replace(regwhich,\"hhttttpp\")//\u9632\u6b62\u5728fchar.ubb\u4e2d\u88ab\u91cd\u590d\u66ff\u6362\u5730\u5740\r\n \r\n if (txt2==\"\") { \r\n AddTxt=\"[flash=500,350]\"+txt;\r\n AddText(AddTxt);\r\n AddTxt=\"[/flash]\";\r\n AddText(AddTxt);\r\n }else{\r\n AddTxt=\"[flash=\"+txt2+\"]\"+txt;\r\n AddText(AddTxt);\r\n AddTxt=\"[/flash]\";\r\n AddText(AddTxt);\r\n } \r\n } \r\n }\r\n }\r\n}\r\n\r\nfunction Crm() {\r\n if (helpstat) {\r\n alert(text_rm_info);\r\n } else if (basic) {\r\n AddTxt=\"[rm=500,350][/rm]\";\r\n AddText(AddTxt);\r\n } else { \r\n txt2=prompt(text_movie_size,\"500,350\"); \r\n if (txt2!=null) {\r\n txt=prompt(text_url, text_input);\r\n if (txt!=null) {\r\n var temp = txt;\r\n var regwhich = new RegExp(\"http\",\"i\")\r\n txt = temp.replace(regwhich,\"hhttttpp\")//\u9632\u6b62\u5728fchar.ubb\u4e2d\u88ab\u91cd\u590d\u66ff\u6362\u5730\u5740\r\n regwhich = new RegExp(\"ftp\",\"i\")\r\n txt = txt.replace(regwhich,\"ffttpp\")//\u9632\u6b62\u5728fchar.ubb\u4e2d\u88ab\u91cd\u590d\u66ff\u6362\u5730\u5740 \r\n if (txt2==\"\") {\r\n AddTxt=\"[rm=500,350]\"+txt;\r\n AddText(AddTxt);\r\n AddTxt=\"[/rm]\";\r\n AddText(AddTxt);\r\n } else {\r\n AddTxt=\"[rm=\"+txt2+\"]\"+txt;\r\n AddText(AddTxt);\r\n AddTxt=\"[/rm]\";\r\n AddText(AddTxt);\r\n } \r\n } \r\n }\r\n }\r\n}\r\n\r\nfunction Cwmv() {\r\n if (helpstat) {\r\n alert(text_media_info);\r\n } else if (basic) {\r\n AddTxt=\"[mp=500,350][/mp]\";\r\n AddText(AddTxt);\r\n } else { \r\n txt2=prompt(text_movie_size,\"500,350\"); \r\n if (txt2!=null) {\r\n txt=prompt(text_url, text_input);\r\n if (txt!=null) {\r\n var temp = txt;\r\n var regwhich = new RegExp(\"http\",\"i\")\r\n txt = temp.replace(regwhich,\"hhttttpp\")//\u9632\u6b62\u5728fchar.ubb\u4e2d\u88ab\u91cd\u590d\u66ff\u6362\u5730\u5740\r\n regwhich = new RegExp(\"ftp\",\"i\")\r\n txt = txt.replace(regwhich,\"ffttpp\")//\u9632\u6b62\u5728fchar.ubb\u4e2d\u88ab\u91cd\u590d\u66ff\u6362\u5730\u5740 \r\n if (txt2==\"\") {\r\n AddTxt=\"[mp=500,350]\"+txt;\r\n AddText(AddTxt);\r\n AddTxt=\"[/mp]\";\r\n AddText(AddTxt);\r\n } else {\r\n AddTxt=\"[mp=\"+txt2+\"]\"+txt;\r\n AddText(AddTxt);\r\n AddTxt=\"[/mp]\";\r\n AddText(AddTxt);\r\n } \r\n } \r\n }\r\n }\r\n}\r\n\r\nfunction Cmov() {\r\n if (helpstat) {\r\n alert(text_quicktime_info);\r\n } else if (basic) {\r\n AddTxt=\"[qt=500,350][/qt]\";\r\n AddText(AddTxt);\r\n } else { \r\n txt2=prompt(text_movie_size, \"500,350\"); \r\n if (txt2!=null) {\r\n txt=prompt(text_url, text_input);\r\n if (txt!=null) {\r\n var temp = txt;\r\n var regwhich = new RegExp(\"http\",\"i\")\r\n txt = temp.replace(regwhich,\"hhttttpp\")//\u9632\u6b62\u5728fchar.ubb\u4e2d\u88ab\u91cd\u590d\u66ff\u6362\u5730\u5740\r\n regwhich = new RegExp(\"ftp\",\"i\")\r\n txt = txt.replace(regwhich,\"ffttpp\")//\u9632\u6b62\u5728fchar.ubb\u4e2d\u88ab\u91cd\u590d\u66ff\u6362\u5730\u5740 \r\n if (txt2==\"\") {\r\n AddTxt=\"[qt=500,350]\"+txt;\r\n AddText(AddTxt);\r\n AddTxt=\"[/qt]\";\r\n AddText(AddTxt);\r\n } else {\r\n AddTxt=\"[qt=\"+txt2+\"]\"+txt;\r\n AddText(AddTxt);\r\n AddTxt=\"[/qt]\";\r\n AddText(AddTxt);\r\n } \r\n } \r\n }\r\n }\r\n}\r\n\r\nfunction Cdir() {\r\n if (helpstat) {\r\n alert(text_shockwave_info);\r\n } else if (basic) {\r\n AddTxt=\"[dir=500,350][/dir]\";\r\n AddText(AddTxt);\r\n } else { \r\n txt2=prompt(text_movie_size,\"500,350\"); \r\n if (txt2!=null) {\r\n txt=prompt(text_url, text_input);\r\n if (txt!=null) {\r\n if (txt2==\"\") {\r\n AddTxt=\"[dir=500,350]\"+txt;\r\n AddText(AddTxt);\r\n AddTxt=\"[/dir]\";\r\n AddText(AddTxt);\r\n } else {\r\n AddTxt=\"[dir=\"+txt2+\"]\"+txt;\r\n AddText(AddTxt);\r\n AddTxt=\"[/dir]\";\r\n AddText(AddTxt);\r\n } \r\n } \r\n }\r\n }\r\n}\r\n\r\nfunction Cra() {\r\nvar FoundErrors = '';\r\nvar enterURL = prompt(text_enter_ra, \"http://\");\r\nif (!enterURL) {\r\nFoundErrors += \"\\n\" + error_no_url;\r\n}\r\nif (FoundErrors) {\r\nalert(FoundErrors);\r\nreturn;\r\n}\r\nvar ToAdd = \"[RA]\"+enterURL+\"[/RA]\";\r\ndocument.frmAnnounce.Content.value+=ToAdd;\r\ndocument.frmAnnounce.Content.focus();\r\n}\r\n\r\nfunction Cfanzi() {\r\nfontbegin=\"[xray]\";\r\nfontend=\"[/xray]\";\r\nfontchuli();\r\n}\r\n\r\nfunction Cwma() {\r\nvar FoundErrors = '';\r\nvar enterURL = prompt(text_enter_wma, \"http://\");\r\nif (!enterURL) {\r\nFoundErrors += \"\\n\" + error_no_url;\r\n}\r\nif (FoundErrors) {\r\nalert(FoundErrors);\r\nreturn;\r\n}\r\nvar ToAdd = \"[wma]\"+enterURL+\"[/wma]\";\r\ndocument.frmAnnounce.Content.value+=ToAdd;\r\ndocument.frmAnnounce.Content.focus();\r\n}\r\n\r\n\r\nfunction Cmarquee() {\r\nfontbegin=\"[move]\";\r\nfontend=\"[/move]\";\r\nfontchuli();\r\n}\r\nfunction Cfly() {\r\nfontbegin=\"[fly]\";\r\nfontend=\"[/fly]\";\r\nfontchuli();\r\n}\r\n\r\nfunction paste(text) {\r\n if (opener.document.frmAnnounce.Content.createTextRange && opener.document.frmAnnounce.Content.caretPos) { \r\n var caretPos = opener.document.frmAnnounce.Content.caretPos; \r\n caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ?\r\n text + ' ' : text;\r\n }\r\n else opener.document.frmAnnounce.Content.value += text;\r\n opener.document.frmAnnounce.Content.focus(caretPos);\r\n}\r\n\r\nfunction showsize(size){\r\nfontbegin=\"[size=\"+size+\"]\";\r\nfontend=\"[/size]\";\r\nfontchuli();\r\n}\r\n\r\nfunction showfont(font){\r\nfontbegin=\"[face=\"+font+\"]\";\r\nfontend=\"[/face]\";\r\nfontchuli();\r\n}\r\n\r\nfunction showcolor(color){\r\nfontbegin=\"[color=\"+color+\"]\";\r\nfontend=\"[/color]\";\r\nfontchuli();\r\n}\r\n\r\nfunction fontchuli(){\r\nif ((document.selection)&&(document.selection.type == \"Text\")) {\r\nvar range = document.selection.createRange();\r\nvar ch_text=range.text;\r\nrange.text = fontbegin + ch_text + fontend;\r\n} \r\nelse {\r\ndocument.frmAnnounce.Content.value=fontbegin+document.frmAnnounce.Content.value+fontend;\r\ndocument.frmAnnounce.Content.focus();\r\n}\r\n}\r\n\r\nfunction Cguang() {\r\nvar FoundErrors = '';\r\nvar enterSET = prompt(text_enter_guang1, \"255,red,2\");\r\nvar enterTxT = prompt(text_enter_guang2, text_t);\r\nif (!enterSET) {\r\nFoundErrors += \"\\n\" + error_no_gset;\r\n}\r\nif (!enterTxT) {\r\nFoundErrors += \"\\n\" + error_no_gtxt;\r\n}\r\nif (FoundErrors) {\r\nalert(FoundErrors);\r\nreturn;\r\n}\r\nvar ToAdd = \"[glow=\"+enterSET+\"]\"+enterTxT+\"[/glow]\";\r\ndocument.frmAnnounce.Content.value+=ToAdd;\r\ndocument.frmAnnounce.Content.focus();\r\n}\r\n\r\nfunction Cying() {\r\nvar FoundErrors = '';\r\nvar enterSET = prompt(text_enter_guang1, \"255,blue,1\");\r\nvar enterTxT = prompt(text_enter_guang2, text_t);\r\nif (!enterSET) {\r\nFoundErrors += \"\\n\" + error_no_gset;\r\n}\r\nif (!enterTxT) {\r\nFoundErrors += \"\\n\" + error_no_gtxt;\r\n}\r\nif (FoundErrors) {\r\nalert(FoundErrors);\r\nreturn;\r\n}\r\nvar ToAdd = \"[SHADOW=\"+enterSET+\"]\"+enterTxT+\"[/SHADOW]\";\r\ndocument.frmAnnounce.Content.value+=ToAdd;\r\ndocument.frmAnnounce.Content.focus();\r\n}\r\n\r\nie = (document.all)? true:false\r\nif (ie){\r\nfunction ctlent(eventobject){if(event.ctrlKey && window.event.keyCode==13){this.document.frmAnnounce.submit();}}\r\n}\r\nfunction DoTitle(addTitle) { \r\nvar revisedTitle; \r\nvar currentTitle = document.frmAnnounce.topic.value; \r\nrevisedTitle = currentTitle+addTitle; \r\ndocument.frmAnnounce.topic.value=revisedTitle; \r\ndocument.frmAnnounce.topic.focus(); \r\nreturn; }\r\n\r\nfunction insertsmilie(smilieface){\r\n\r\n document.frmAnnounce.Content.value+=smilieface;\r\n}\r\nfunction gopreview()\r\n{\r\ndocument.forms[1].title.value=document.forms[0].subject.value;\r\ndocument.forms[1].body.value=document.forms[0].Content.value;\r\nvar popupWin = window.open('preview.asp', 'preview_page', 'scrollbars=yes,width=750,height=450');\r\ndocument.forms[1].submit()\r\n}\r\n\r\n// \u56de\u590d\u53ef\u89c1\r\nfunction replyCanSee(){\r\n fontbegin = \"[REPLY]\";\r\n fontend = \"[/REPLY]\";\r\n if ((document.selection)&&(document.selection.type == \"Text\")) {\r\n var range = document.selection.createRange();\r\n var ch_text=range.text;\r\n range.text = fontbegin + ch_text + fontend;\r\n }\r\n else {\r\n document.frmAnnounce.Content.value=fontbegin+document.frmAnnounce.Content.value+fontend;\r\n document.frmAnnounce.Content.focus();\r\n }\r\n}\r\n\r\nfunction canSee(moneyCode) {\r\n var FoundErrors = '';\r\n var enterpoints = prompt(text_enter_points,\"1000\");\r\n if (!enterpoints) {\r\n FoundErrors += \"\\n\" + error_no_points;\r\n }\r\n if (FoundErrors) {\r\n alert(FoundErrors);\r\n return;\r\n }\r\n\r\n fontbegin = \"[HIDE=\" + moneyCode + \",\"+enterpoints+\"]\";\r\n fontend = \"[/HIDE]\";\r\n if ((document.selection)&&(document.selection.type == \"Text\")) {\r\n var range = document.selection.createRange();\r\n var ch_text=range.text;\r\n range.text = fontbegin + ch_text + fontend;\r\n }\r\n else {\r\n document.frmAnnounce.Content.value=fontbegin+document.frmAnnounce.Content.value+fontend;\r\n document.frmAnnounce.Content.focus();\r\n }\r\n}\r\n\r\nfunction usePoint() {\r\n var ary = showModalDialog('point_sel.jsp',window.self,'dialogWidth:526px;dialogHeight:435px;status:no;help:no;');\r\n if (ary==null)\r\n return;\r\n \r\n var fontbegin = \"[point=\" + ary[0] + \",\" + ary[1] + \"]\";\r\n var fontend = \"[/point]\";\r\n if ((document.selection)&&(document.selection.type == \"Text\")) {\r\n var range = document.selection.createRange();\r\n var ch_text=range.text;\r\n range.text = fontbegin + ch_text + fontend;\r\n }\r\n else {\r\n document.frmAnnounce.Content.value=fontbegin+document.frmAnnounce.Content.value+fontend;\r\n document.frmAnnounce.Content.focus();\r\n }\r\n}\r\n\r\nfunction payme() {\r\n var ary = showModalDialog('point_sel.jsp',window.self,'dialogWidth:526px;dialogHeight:435px;status:no;help:no;');\r\n if (ary==null)\r\n return;\r\n \r\n var fontbegin = \"[payme=\" + ary[0] + \",\" + ary[1] + \"]\";\r\n var fontend = \"[/payme]\";\r\n if ((document.selection)&&(document.selection.type == \"Text\")) {\r\n var range = document.selection.createRange();\r\n var ch_text=range.text;\r\n range.text = fontbegin + ch_text + fontend;\r\n }\r\n else {\r\n document.frmAnnounce.Content.value=fontbegin+document.frmAnnounce.Content.value+fontend;\r\n document.frmAnnounce.Content.focus();\r\n }\r\n}\r\n".toCharArray();
_jsp_string25 = "\";\r\nvar error_no_power = \"".toCharArray();
_jsp_string3 = "\";\r\nvar text_enter_sound = \"".toCharArray();
_jsp_string0 = "\r\n\r\nvar Quote = 0;\r\nvar Bold = 0;\r\nvar Italic = 0;\r\nvar Underline = 0;\r\nvar Code = 0;\r\nvar Center = 0;\r\nvar Strike = 0;\r\nvar Sound = 0;\r\nvar Swf = 0;\r\nvar Ra = 0;\r\nvar Rm = 0;\r\nvar Marquee = 0;\r\nvar Fly = 0;\r\nvar fanzi=0;\r\nvar text_enter_url = \"".toCharArray();
_jsp_string8 = "\";\r\nvar text_enter_wma = \"".toCharArray();
_jsp_string14 = "\";\r\nvar error_no_title = \"".toCharArray();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -