📄 edit.jsp
字号:
function showfont(font) {
if (helpstat){
alert("字体标记\n给文字设置字体.\n用法: [face="+font+"]改变文字字体为"+font+"[/face]");
} else if (basic) {
lycode("face",font,"","");
} else {
lycode("face",font,"要设置字体的文字"+font,word);
}
}
function setswf() {
if (helpstat){
alert("Flash 动画\n插入 Flash 动画.\n用法: [swf]Flash 文件的地址[/swf]");
} else if (basic) {
lycode("swf","","","");
} else {
lycode("swf","","Flash 文件的地址","http://");
}
}
function inputs(str){document.REPLIER.icon.value=str;}
function checklength(){alert("您的文章目前有 "+theform.content.value.length+" 字节");}
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>
<font color=#000000>字体: </font>
<select onchange=showfont(this.options[this.selectedIndex].value) name=font>
<option value="宋体" selected>宋体</option>
<option value="楷体_GB2312">楷体</option>
<option value="新宋体">新宋体</option>
<option value="黑体">黑体</option>
<option value="隶书">隶书</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>
<font color=#000000>字号: </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>
</SELECT>
<img id="forecolor" onclick=showcolor() alt="颜色" src=<%=strOfficeStyle%>/bbs/images/btg/fgcolor.gif class="gray" onmouseover="enable(this)" onmouseout="disable(this)">
<br>
<IMG onclick=bold() height=22 alt="粗体字" src=<%=strOfficeStyle%>/bbs/images/btg/bold.gif width=23 class="gray" onmouseover="enable(this)" onmouseout="disable(this)">
<IMG onclick=italicize() height=22 alt="斜体字" src=<%=strOfficeStyle%>/bbs/images/btg/italicize.gif width=23 class="gray" onmouseover="enable(this)" onmouseout="disable(this)">
<IMG onclick=underline() height=22 alt="下划线" src=<%=strOfficeStyle%>/bbs/images/btg/underline.gif width=23 class="gray" onmouseover="enable(this)" onmouseout="disable(this)">
<IMG onclick=center() height=22 alt="居中" src=<%=strOfficeStyle%>/bbs/images/btg/center.gif width=23 class="gray" onmouseover="enable(this)" onmouseout="disable(this)">
<IMG onclick=hyperlink() height=22 alt="插入超级链接" src=<%=strOfficeStyle%>/bbs/images/btg/url.gif width=23 class="gray" onmouseover="enable(this)" onmouseout="disable(this)">
<IMG onclick=email() height=22 alt="插入邮件地址" src=<%=strOfficeStyle%>/bbs/images/btg/email.gif width=23 class="gray" onmouseover="enable(this)" onmouseout="disable(this)">
<IMG onclick=image() height=22 alt="插入图片" src=<%=strOfficeStyle%>/bbs/images/btg/image.gif width=23 class="gray" onmouseover="enable(this)" onmouseout="disable(this)">
<IMG onclick=setswf() height=22 alt="插入 Flash 动画" src=<%=strOfficeStyle%>/bbs/images/btg/swf.gif width=23 class="gray" onmouseover="enable(this)" onmouseout="disable(this)">
<IMG onclick=setsound() height=22 alt="插入声音" src=<%=strOfficeStyle%>/bbs/images/btg/sound.gif width=23 class="gray" onmouseover="enable(this)" onmouseout="disable(this)">
<IMG onclick=quoteme() height=22 alt="插入引用" src=<%=strOfficeStyle%>/bbs/images/btg/quote.gif width=23 class="gray" onmouseover="enable(this)" onmouseout="disable(this)">
<IMG onclick=setfly() height=22 alt="飞行字" src=<%=strOfficeStyle%>/bbs/images/btg/fly.gif width=23 class="gray" onmouseover="enable(this)" onmouseout="disable(this)">
<IMG onclick=move() height=22 alt="移动字" src=<%=strOfficeStyle%>/bbs/images/btg/move.gif width=23 class="gray" onmouseover="enable(this)" onmouseout="disable(this)">
<img onclick=rm() src=<%=strOfficeStyle%>/bbs/images/btg/rm.gif alt="插入 Real 音/视频" height=22 class="gray" onmouseover="enable(this)" onmouseout="disable(this)">
<img onclick=mp() src=<%=strOfficeStyle%>/bbs/images/btg/wm.gif alt="插入 WMP 音/视频" height=22 class="gray" onmouseover="enable(this)" onmouseout="disable(this)">
<img onclick=qt() src=<%=strOfficeStyle%>/bbs/images/btg/qt.gif alt="插入 QT 音/视频" height=22 class="gray" onmouseover="enable(this)" onmouseout="disable(this)">
<img onclick=viewlycode() width=23 height=22 alt="点这里查看 LyBBS 论坛所有的专用标签" src=<%=strOfficeStyle%>/bbs/images/btg/help.gif class="gray" onmouseover="enable(this)" onmouseout="disable(this)">
<IMG onclick=open_smilie_window(240,500) height=22 alt="插入表情代码" src=<%=strOfficeStyle%>/bbs/images/btg/smilie.gif width=23 class="gray" onmouseover="enable(this)" onmouseout="disable(this)"><br>
<TEXTAREA name=content rows=16 cols=96></TEXTAREA><br>
模式:
<input type="radio" name="mode" value="help" onClick="thelp(1)">帮助
<input type="radio" name="mode" value="prompt" CHECKED onClick="thelp(2)">完全
<input type="radio" name="mode" value="basic" onClick="thelp(0)">基本
[<a href="javascript:checklength(document.submitok);">查看文章长度</a>]
</td>
</tr>
<tr>
<td height="22" class="TableLabel">
<b>加入表情</b><br>点击表情图即可加入。</B>
</td>
<td height="22" class="TableData">
<a href="javascript:smilie('[em=01]');"><img src=<%=strOfficeStyle%>/bbs/images/emot/em01.gif border=0></a>
<a href="javascript:smilie('[em=02]');"><img src=<%=strOfficeStyle%>/bbs/images/emot/em02.gif border=0></a>
<a href="javascript:smilie('[em=03]');"><img src=<%=strOfficeStyle%>/bbs/images/emot/em03.gif border=0></a>
<a href="javascript:smilie('[em=04]');"><img src=<%=strOfficeStyle%>/bbs/images/emot/em04.gif border=0></a>
<a href="javascript:smilie('[em=05]');"><img src=<%=strOfficeStyle%>/bbs/images/emot/em05.gif border=0></a>
<a href="javascript:smilie('[em=06]');"><img src=<%=strOfficeStyle%>/bbs/images/emot/em06.gif border=0></a>
<a href="javascript:smilie('[em=07]');"><img src=<%=strOfficeStyle%>/bbs/images/emot/em07.gif border=0></a>
<a href="javascript:smilie('[em=08]');"><img src=<%=strOfficeStyle%>/bbs/images/emot/em08.gif border=0></a>
<a href="javascript:smilie('[em=09]');"><img src=<%=strOfficeStyle%>/bbs/images/emot/em09.gif border=0></a>
<a href="javascript:smilie('[em=10]');"><img src=<%=strOfficeStyle%>/bbs/images/emot/em10.gif border=0></a>
<a href="javascript:smilie('[em=11]');"><img src=<%=strOfficeStyle%>/bbs/images/emot/em11.gif border=0></a>
<a href="javascript:smilie('[em=12]');"><img src=<%=strOfficeStyle%>/bbs/images/emot/em12.gif border=0></a>
<a href="javascript:smilie('[em=13]');"><img src=<%=strOfficeStyle%>/bbs/images/emot/em13.gif border=0></a>
<a href="javascript:smilie('[em=14]');"><img src=<%=strOfficeStyle%>/bbs/images/emot/em14.gif border=0></a>
<a href="javascript:smilie('[em=15]');"><img src=<%=strOfficeStyle%>/bbs/images/emot/em15.gif border=0></a>
<a href="javascript:smilie('[em=16]');"><img src=<%=strOfficeStyle%>/bbs/images/emot/em16.gif border=0></a>
<a href="javascript:smilie('[em=17]');"><img src=<%=strOfficeStyle%>/bbs/images/emot/em17.gif border=0></a>
<a href="javascript:smilie('[em=18]');"><img src=<%=strOfficeStyle%>/bbs/images/emot/em18.gif border=0></a>
<a href="javascript:smilie('[em=19]');"><img src=<%=strOfficeStyle%>/bbs/images/emot/em19.gif border=0></a>
<a href="javascript:smilie('[em=20]');"><img src=<%=strOfficeStyle%>/bbs/images/emot/em20.gif border=0></a>
<a href="javascript:smilie('[em=21]');"><img src=<%=strOfficeStyle%>/bbs/images/emot/em21.gif border=0></a>
[<a href="javascript:open_smilie_window(240,500)">更多</a>]
</td>
</tr>
<tr>
<td height="22" class="TableLabel">
<b>选项</b>
<br>帖子发布相关选项功能。
</td>
<td height="22" class="TableData">
<select name=viewMode onChange="displayViewNumber()">
<option value=0>这个帖子所有用户都可以查看</option>
<option value=1>这个帖子只有注册用户可以查看</option>
<option value=2>这个帖子需要回复才能查看!</option>
<option value=3>这个帖子只有版主可以查看!</option>
<option value=7>这个帖子只有用户 ? 可以查看!</option>
<option value=4>这个帖子需要 ? 经验才可以查看!</option>
<option value=5>这个帖子需要 ? 威望才能查看!</option>
<option value=6>这个帖子需要 ? 金钱购买才能查看!</option>
</select>
<input type=text name=viewNumber value="" size=8 maxlength=8 style="DISPLAY: none">
<input type=text name=viewUserName value="" size=20 maxlength=20 style="DISPLAY: none">
<script language=JavaScript>
displayViewNumber();
</script>
<br>
<input type=checkbox name="showSign" value="1" checked>显示签名<br>
<input type=checkbox name="autoFilter" value="1" checked>自动替换文本中的合法URL?<br>
</td>
</tr>
<tr>
<td height="22" class="TableLabel">
<b>上传附件或图片</b><br><li>主题帖最大允许 <B>500</B>KB<li>回复帖最大允许 <B>500</B>KB
</td>
<td height="22" class="TableData">
<div style="margin-bottom:3px" id="attachList">
</div>
<input type="button" value="管理附件" onclick="manageAttachments('<%=site.bean.SitePara.strBBSUrl%>/bbs_upload.do?action=new&postAction=new&postID=0', 480, 480)">
<select>
<option value=#>支持类型:</option>
<option value=#>----------</option>
<option>jpg</option>
<option>gif</option>
<option>bmp</option>
<option>png</option>
<option>zip</option>
<option>rar</option>
<option>swf</option>
<option>doc</option>
<option>txt</option>
</select>
</td>
</tr>
<tr>
<td colspan="2" class="TableControl" align="center">
<input type=button name=submit1 value="发表" onclick="checkPost()"> <input type="reset" name="Clear" value="清除"> <input type="button" name="preview" value="预览" onClick="previewPost()">
</td>
</tr>
</table>
</form>
<script language="JavaScript">
function manageAttachments(url, width, height) {
window.open(url, "attachment", "statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=" + width + ",height=" + height);
}
function insertAttachment(fileName,fileRealName,fileExt) {
if(fileExt=="gif" || fileExt=="jpg" || fileExt=="jpeg" || fileExt=="bmp" || fileExt=="png") {
getActiveText();
AddText("\n此主题相关图片如下:\n");
lycode("img", "", "", "bbs_downloadAttachment.do?fileName="+fileName);
}
else if(fileExt=="swf") {
getActiveText();
AddText("\n");
lycode("swf", "", "", "bbs_downloadAttachment.do?fileName="+fileName);
}
else {
getActiveText();
AddText("\n");
lycode("img", "", "", "lybbs/icons/"+fileExt+".gif");
AddText("相关附件: ");
lycode("url", "bbs_downloadAttachment.do?fileName="+fileName, "", fileRealName);
}
setAccessary2('0');
}
function previewPost() {
if(theform.content.value=="") {
alert("Please input the content.");
theform.content.focus();
}
else {
if(theform.title!=null && theform.title.value!=null) {
document.preview.title.value=theform.title.value;
}
document.preview.content.value=theform.content.value;
if(theform.autoFilter!=null && theform.autoFilter.value=="1") {
document.preview.autoFilter.value="1";
}
if(theform.htmlSupport!=null && theform.htmlSupport.value=="1") {
document.preview.htmlSupport.value="1";
}
if(theform.accessary!=null) {
document.preview.accessary.value=theform.accessary.value;
}
document.preview.submit();
}
}
function insertAllAttachment(insertText) {
eval(insertText);
}
if(theform==null) init();
//setCurrentTitleImage
var currentTitleImage="";
setCurrentRadio(theform.titleImage,currentTitleImage);
//set supportHtml
function setSupportHtml() {
//< and < are same
if(theform.htmlSupport!=null && theform.content.value.length>0 && theform.content.value.indexOf("<")!=-1) {
//checked
theform.htmlSupport.checked=true;
}
}
setTimeout("setSupportHtml()",1000);
</script>
<div style="display:none;">
<form method=post name=preview action="<%=site.bean.SitePara.strBBSUrl%>/bbs_postPreview.do" target="_blank">
<input type=hidden name="title" value="">
<input type=hidden name="content" value="">
<input type=hidden name="autoFilter" value="0">
<input type=hidden name="htmlSupport" value="0">
<input type=hidden name="accessary" value="0">
</form>
</div>
<iframe src="<%=site.bean.SitePara.strBBSUrl%>/bbs_post.do?action=new&forumID=1" id="lybbs_Composition" name="lybbs_Composition" width=0 height=0></iframe>
<!-- 结束正文内容 -->
</div>
</div>
<!--end/content-->
<!--left-->
<div id="leftmenu">
<!--menu-->
<div id="tree1"></div>
<!--end/menu-->
</div>
<!--end/left-->
</div>
<script language="javascript" src="<%=strOfficeStyle%>/menu.jsp?iid=<%=request.getParameter("iid")%>"></script>
<%@ include file="../../bot.jsp"%>
<script language="javascript">
<!--
treeInit();
//-->
</script>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -