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

📄 post.jsp

📁 LyBBS基于Struts1.3/Ajax的架构
💻 JSP
📖 第 1 页 / 共 4 页
字号:
         if (helpstat) {
           alert("<bean:message key="jsp.post.advpost.rm"/>");
         }
         else if (basic) {
           lycode("rm","380,72","","");
         }
         else {
           lycode("rm","380,72","<bean:message key="jsp.post.advpost.rm"/>","http://");
         }
       }
       function mp() {
         if (helpstat) {
           alert("<bean:message key="jsp.post.advpost.wmphelp"/>");
         }
         else if (basic) {
           lycode("mp","380,72","","");
         }
         else {
           lycode("mp","380,72","<bean:message key="jsp.post.advpost.wmp"/>","http://");
         }
       }
       function qt() {
         if (helpstat) {
           alert("<bean:message key="jsp.post.advpost.qthelp"/>");
         }
         else if (basic) {
           lycode("qt","380,72","","");
         }
         else {
           lycode("qt","380,72","<bean:message key="jsp.post.advpost.qt"/>","http://");
         }
       }
       function email() {
         if (helpstat) {
           alert("<bean:message key="jsp.post.advpost.emailhelp"/>");
         }
         else if (basic) {
           lycode("email","","","");
         }
         else {
           lycode("email","","<bean:message key="jsp.post.advpost.email"/>","");
         }
       }
       function showsize(size) {
         if (helpstat) {alert("<bean:message key="jsp.post.advpost.sizehelp"/>");
         }
         else if (basic) {
           lycode("size",size,"","");
         }
         else {
           lycode("size",size,"<bean:message key="jsp.post.advpost.size"/>",word);
         }
       }
       function bold() {
         if (helpstat) {alert("<bean:message key="jsp.post.advpost.boldhelp"/>");
         }
         else if (basic) {
           lycode("b","","","");
         }
         else {
           lycode("b","","<bean:message key="jsp.post.advpost.bold"/>",word);
         }
       }
       function italicize() {
         if (helpstat) {
           alert("<bean:message key="jsp.post.advpost.italichelp"/>");
         } else if (basic) {
           lycode("i","","","");
         } else {
           lycode("i","","<bean:message key="jsp.post.advpost.italic"/>",word);
         }
       }
       function underline() {
         if (helpstat) {
           alert("<bean:message key="jsp.post.advpost.underlinehelp"/>");
         } else if (basic) {
           lycode("u","","","");
         } else {
           lycode("u","","<bean:message key="jsp.post.advpost.underline"/>",word);
         }
       }
       function quoteme() {
         if (helpstat){
           alert("<bean:message key="jsp.post.advpost.quotehelp"/>");
         }
         else if (basic) {
           lycode("quote","","","");
         } else {
           lycode("quote","","<bean:message key="jsp.post.advpost.quote"/>",word);
         }
       }
       function setsound() {
         if (helpstat) {
           alert("<bean:message key="jsp.post.advpost.soundhelp"/>");
         } else if (basic) {
           lycode("sound","","","");
         } else {
           lycode("sound","","<bean:message key="jsp.post.advpost.sound"/>","http://");
         }
       }
       function showcolor() {
         var buttonElement = document.getElementById('forecolor');
         var wleft=getOffsetLeft(buttonElement);
         var wtop=getOffsetTop(buttonElement) + buttonElement.offsetHeight;
         window.open("bbs_commonForward.do?forward=selectcolor", "color", "statusbar=no,menubar=no,toolbar=no,scrollbars=no,resizable=no,width=285,height=248,left="+wleft+",top="+wtop);
       }
       function setColor(color){
         if (color!=null)  {
           if (helpstat) {
             alert("<bean:message key="jsp.post.advpost.colorhelp"/>");
           }
           else if (basic) {
             lycode("color",color,"","");
           } else {
             lycode("color",color,"<bean:message key="jsp.post.advpost.color"/>"+color,word);
           }
         }
       }
       function setfly() {
         if (helpstat){
           alert("<bean:message key="jsp.post.advpost.flyhelp"/>");
         } else if (basic) {
           lycode("fly","","","");
         } else {
           lycode("fly","","<bean:message key="jsp.post.advpost.fly"/>",word);
         }
       }
       function move() {
         if (helpstat) {
           alert("<bean:message key="jsp.post.advpost.movehelp"/>");
         } else if (basic) {
           lycode("move","","","");
         } else {
           lycode("move","","<bean:message key="jsp.post.advpost.move"/>",word);
         }
       }
       function center() {
         if (helpstat) {
           alert("<bean:message key="jsp.post.advpost.alignhelp"/>");
         } else if (basic) {
           lycode("align","center","","");
         } else {
           lycode("align","center","<bean:message key="jsp.post.advpost.alignhelp"/>",word);
         }
       }
       function hyperlink() {
         if (helpstat) {
           alert("<bean:message key="jsp.post.advpost.linkhelp"/>");
         } else if (basic) {
           lycode("url","","","");
         } else {
           lycode("url","","<bean:message key="jsp.post.advpost.linkhelp"/>",word);
         }
       }
       function image() {
         if (helpstat){
           alert("<bean:message key="jsp.post.advpost.imagehelp"/>");
         } else if (basic) {
           lycode("img","","","");
         } else {
           lycode("img","","<bean:message key="jsp.post.advpost.image"/>","http://");
         }
       }
       function showcode() {
         if (helpstat) {
           alert("<bean:message key="jsp.post.advpost.codehelp"/>");
         } else if (basic) {
           lycode("code","","","");
         } else {
           lycode("code","","<bean:message key="jsp.post.advpost.code"/>","");
         }
       }
       function list() {
         if (helpstat) {
           alert("<bean:message key="jsp.post.advpost.listhelp"/>");
         } else if (basic) {
           lycode("list","","","\r[*]\r[*]\r[*]");
         } else {
           txt=prompt("<bean:message key="jsp.post.advpost.list"/>","");               
           while ((txt!="")) {txt=prompt("<bean:message key="jsp.post.advpost.listerror"/>",""); }
           if (txt!=null) {if (txt=="") {AddTxt="\r[list]\r\n";} else {AddTxt="\r[list="+txt+"]\r";} txt="1";
           while ((txt!="") && (txt!=null)) {txt=prompt("<bean:message key="jsp.post.advpost.listitem"/>",""); 
           if (txt!="") {AddTxt+="[*]"+txt+"[/*]\r"; }} AddTxt+="[/list]\r\n";AddText(AddTxt); }
         }
       }
       function showfont(font) {
         if (helpstat){
           alert("<bean:message key="jsp.post.advpost.fonthelp"/>");
         } else if (basic) {
           lycode("face",font,"","");
         } else {
           lycode("face",font,"<bean:message key="jsp.post.advpost.font"/>"+font,word);
         }  
       }
       function setswf() {
         if (helpstat){
           alert("<bean:message key="jsp.post.advpost.flashhelp"/>");
         } else if (basic) {
           lycode("swf","","","");
         } else {
           lycode("swf","","<bean:message key="jsp.post.advpost.flash"/>","http://");
         }  
       }
       function inputs(str){document.REPLIER.icon.value=str;}
       function checklength(){alert("<bean:message key="jsp.post.content.length"/> "+theform.content.value.length+" <bean:message key="common.lybbs.byte"/>");}
       function enable(btn){btn.filters.gray.enabled=0;}
       function disable(btn){btn.filters.gray.enabled=1;}
       function openHtmlEditor(){
         newwin=window.open('bbs_commonForward.do?forward=postHtml','htmlEditor','width=696,height=420,left=150,top=100');
         newwin.focus();
       }
     </SCRIPT>
<style>.gray {CURSOR:hand;filter:gray}</style>
&nbsp;<font color=#000000><bean:message key="jsp.post.font"/>:&nbsp;</font>
<select onchange=showfont(this.options[this.selectedIndex].value) name=font>
<option value="<bean:message key="jsp.post.font.song"/>" selected><bean:message key="jsp.post.font.song"/></option>
<option value="<bean:message key="jsp.post.font.kai"/>_GB2312"><bean:message key="jsp.post.font.kai"/></option>
<option value="<bean:message key="jsp.post.font.newsong"/>"><bean:message key="jsp.post.font.newsong"/></option>
<option value="<bean:message key="jsp.post.font.hei"/>"><bean:message key="jsp.post.font.hei"/></option>
<option value="<bean:message key="jsp.post.font.lu"/>"><bean:message key="jsp.post.font.lu"/></option>
<OPTION value=Arial>Arial</OPTION> 
<OPTION value=Georgia>Georgia</OPTION>
<OPTION value=Impact>Impact</OPTION>
<OPTION value=Tahoma>Tahoma</OPTION>
<OPTION value=Stencil>Stencil</OPTION>
<OPTION value=Verdana>Verdana</OPTION>
</SELECT>
&nbsp;&nbsp;<font color=#000000><bean:message key="jsp.post.size"/>:&nbsp;</font>
<SELECT onchange=showsize(this.options[this.selectedIndex].value) name=size>
<OPTION value=1>1</OPTION>
<OPTION value=2>2</OPTION>
<OPTION value=3 selected>3</OPTION>
<OPTION value=4>4</OPTION>
<OPTION value=5>5</OPTION>
<OPTION value=6>6</OPTION>
<OPTION value=7>7</OPTION>
</SELECT>
&nbsp;
<img id="forecolor" onclick=showcolor() alt="<bean:message key="jsp.post.color"/>" src=lybbs/btg/fgcolor.gif class="gray" onmouseover="enable(this)" onmouseout="disable(this)">
&nbsp;<br>
<IMG onclick=bold() height=22 alt="<bean:message key="jsp.post.advpost.boldins"/>" src=lybbs/btg/bold.gif width=23 class="gray" onmouseover="enable(this)" onmouseout="disable(this)">
<IMG onclick=italicize() height=22 alt="<bean:message key="jsp.post.advpost.italicins"/>" src=lybbs/btg/italicize.gif width=23  class="gray" onmouseover="enable(this)" onmouseout="disable(this)">
<IMG onclick=underline() height=22 alt="<bean:message key="jsp.post.advpost.underlineins"/>" src=lybbs/btg/underline.gif width=23  class="gray" onmouseover="enable(this)" onmouseout="disable(this)">

⌨️ 快捷键说明

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