📄 htmleditor.asp
字号:
<% Sub htmlEditor(HtmlBodyUrl)%>
<style type="text/css">
<!--
.imgButton{
cursor:hand;
}
.dUp
{
border-left: 1Px solid rgb(233,244,249);
border-right: 1px solid rgb(12,12,12);
border-bottom: 1px solid rgb(12,12,12);
border-top: 1px solid rgb(233,244,249);
cursor:hand;
}
.dDown
{
border-style: groove;
border-width: 1;
padding: 1;
cursor:hand;
}
.dNone
{
border-top: 1Px solid rgb(208,208,208);
border-left: 1px solid rgb(208,208,208);
border-bottom: 1px solid rgb(208,208,208);
border-right: 1px solid rgb(208,208,208);
cursor:hand;
}
.DownUp
{ border-top: 1Px solid rgb(208,208,208);
border-left: 1px solid rgb(208,208,208);
border-bottom: 1px solid rgb(208,208,208);
border-right: 1px solid rgb(208,208,208);
behavior:url(HtmlEditor/DownUp.htc)
}
.Up
{
border-left: 1Px solid rgb(233,244,249);
border-right: 1px solid rgb(12,12,12);
border-bottom: 1px solid rgb(12,12,12);
border-top: 1px solid rgb(233,244,249);
cursor:hand;
behavior:url(HtmlEditor/DownUp.htc)
}
.Down
{
border-style: groove;
border-width: 1;
padding: 1;
cursor:hand;
behavior:url(HtmlEditor/DownUp.htc)
}
.None
{
border-top: 1Px solid rgb(208,208,208);
border-left: 1px solid rgb(208,208,208);
border-bottom: 1px solid rgb(208,208,208);
border-right: 1px solid rgb(208,208,208);
cursor:hand;
behavior:url(HtmlEditor/DownUp.htc)
}
-->
</style>
<tr>
<td valign="top" class="tdbg2">文章内容:</td>
<td colspan="3" class="tdbg2">
<SCRIPT LANGUAGE="JScript.Encode" src="HtmlEditor/LatticeEditor.js"></SCRIPT>
<table border="0" cellpadding="2" cellspacing="0" bgcolor="#d0d0c8" width="100%">
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" bgcolor="#d0d0c8" id="toolbar" width="100%">
<tr id="toolrow2">
<td>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="4"><IMG src="HtmlEditor/separator.gif" width="4" height="18"></td>
<td id="cell_btn_save" valign="middle" align="center" width="18"><i><img border="0" UNSELECTABLE = "on" id = "btn_save" name = "btn_save" class="imgButton" src="HtmlEditor/btn_save.gif" onMouseOver="changebutton(this.name,2);" onMouseOut = "changebutton(this.name,0);" onMouseDown = "changebutton(this.name,3);" onMouseUp = "btncommand(this.name);" onDragStart = "btncommand(this.name);" alt="保存文件"></i></td>
<td width="6"><IMG src="HtmlEditor/separator.gif" width="4" height="18"></td>
<td id="cell_btn_cut" valign="middle" align="center" width="18"><i><img border="0" UNSELECTABLE = "on" id = "btn_cut" name = "btn_cut" class="imgButton" src="HtmlEditor/btn_cut.gif" onMouseOver="changebutton(this.name,2);" onMouseOut = "changebutton(this.name,0);" onMouseDown = "changebutton(this.name,3);" onMouseUp = "btncommand(this.name);" onDragStart = "btncommand(this.name);" alt="剪切"></i></td>
<td id="cell_btn_copy" valign="middle" align="center" width="18"><i><img border="0" UNSELECTABLE = "on" id = "btn_copy" name = "btn_copy" class="imgButton" src="HtmlEditor/btn_copy.gif" onMouseOver="changebutton(this.name,2);" onMouseOut = "changebutton(this.name,0);" onMouseDown = "changebutton(this.name,3);" onMouseUp = "btncommand(this.name);" onDragStart = "btncommand(this.name);" alt="复制"></i></td>
<td id="cell_btn_paste" valign="middle" align="center" width="18"><i><img border="0" UNSELECTABLE = "on" id = "btn_paste" name = "btn_paste" class="imgButton" src="HtmlEditor/btn_paste.gif" onMouseOver="changebutton(this.name,2);" onMouseOut = "changebutton(this.name,0);" onMouseDown = "changebutton(this.name,3);" onMouseUp = "btncommand(this.name);" onDragStart = "btncommand(this.name);" alt="粘贴"></i></td>
<td width="6"><IMG src="HtmlEditor/separator.gif" width="4" height="18"></td>
<td id="cell_btn_undo" valign="middle" align="center" width="18"><i><img border="0" UNSELECTABLE = "on" id = "btn_undo" name = "btn_undo" class="imgButton" src="HtmlEditor/btn_undo.gif" onMouseOver="changebutton(this.name,2);" onMouseOut = "changebutton(this.name,0);" onMouseDown = "changebutton(this.name,3);" onMouseUp = "btncommand(this.name);" onDragStart = "btncommand(this.name);" alt="撤消"></i></td>
<td id="cell_btn_redo" valign="middle" align="center" width="18"><i><img border="0" UNSELECTABLE = "on" id = "btn_redo" name = "btn_redo" class="imgButton" src="HtmlEditor/btn_redo.gif" onMouseOver="changebutton(this.name,2);" onMouseOut = "changebutton(this.name,0);" onMouseDown = "changebutton(this.name,3);" onMouseUp = "btncommand(this.name);" onDragStart = "btncommand(this.name);" alt="恢复"></i></td>
<td width="6"><IMG src="HtmlEditor/separator.gif" width="4" height="18"></td>
<td width="18"><IMG src="HtmlEditor/btn_delete.gif" width="16" height="16" class="DownUp" alt="删除" onclick="doFormat('Delete','','')"></td>
<td width="18"><IMG src="HtmlEditor/btn_unformat.gif" class="DownUp" onclick="doFormat('RemoveFormat','','')" alt="去除格式" ></td>
<td id="cell_btn_find" valign="middle" align="center" width="18"><i><img border="0" UNSELECTABLE = "on" id = "btn_find" name = "btn_find" class="imgButton" src="HtmlEditor/btn_find.gif" onMouseOver="changebutton(this.name,2);" onMouseOut = "changebutton(this.name,0);" onMouseDown = "changebutton(this.name,3);" onMouseUp = "btncommand(this.name);" onDragStart = "btncommand(this.name);" alt="查找"></i></td>
<td width="6"><IMG src="HtmlEditor/separator.gif" width="4" height="18"></td>
<td id="cell_btn_table" valign="middle" align="center" width="18"><i><img border="0" UNSELECTABLE = "on" id = "btn_table" name = "btn_table" class="imgButton" src="HtmlEditor/btn_table.gif" onMouseOver="changebutton(this.name,2);" onMouseOut = "changebutton(this.name,0);" onMouseDown = "changebutton(this.name,3);" onMouseUp = "btncommand(this.name);" onDragStart = "btncommand(this.name);" alt="插入表格"></i></td>
<td id="cell_btn_image" valign="middle" align="center" width="18"><i><img border="0" UNSELECTABLE = "on" id = "btn_image" name = "btn_image" class="imgButton" src="HtmlEditor/btn_image.gif" onMouseOver="changebutton(this.name,2);" onMouseOut = "changebutton(this.name,0);" onMouseDown = "changebutton(this.name,3);" onMouseUp = "btncommand(this.name);" onDragStart = "btncommand(this.name);" alt="插入图像"></i></td>
<td id="cell_btn_hyperlink" valign="middle" align="center" width="18"><i><img border="0" UNSELECTABLE = "on" id = "btn_hyperlink" name = "btn_hyperlink" class="imgButton" src="HtmlEditor/btn_hyperlink.gif" onMouseOver="changebutton(this.name,2);" onMouseOut = "changebutton(this.name,0);" onMouseDown = "changebutton(this.name,3);" onMouseUp = "btncommand(this.name);" onDragStart = "btncommand(this.name);" alt="建立超链接"></i></td>
<td id="cell_btn_unlink" valign="middle" align="center" width="18"><i><img border="0" UNSELECTABLE = "on" id = "btn_unlink" name = "btn_unlink" class="imgButton" src="HtmlEditor/btn_unlink.gif" onMouseOver="changebutton(this.name,2);" onMouseOut = "changebutton(this.name,0);" onMouseDown = "changebutton(this.name,3);" onMouseUp = "btncommand(this.name);" onDragStart = "btncommand(this.name);" alt="移除超链接"></i></td>
<td id="cell_btn_hr" valign="middle" align="center" width="18"><i><img border="0" UNSELECTABLE = "on" id = "btn_hr" name = "btn_hr" class="imgButton" src="HtmlEditor/btn_hr.gif" onMouseOver="changebutton(this.name,2);" onMouseOut = "changebutton(this.name,0);" onMouseDown = "changebutton(this.name,3);" onMouseUp = "btncommand(this.name);" onDragStart = "btncommand(this.name);" alt="插入水平线"></i></td>
<td id="cell_btn_special" valign="middle" align="center" width="18"><i><img border="0" UNSELECTABLE = "on" id = "btn_special" name = "btn_special" class="imgButton" src="HtmlEditor/btn_special.gif" onMouseOver="changebutton(this.name,2);" onMouseOut = "changebutton(this.name,0);" onMouseDown = "changebutton(this.name,3);" onMouseUp = "btncommand(this.name);" onDragStart = "btncommand(this.name);" alt="插入特殊字符"></i></td>
<td width="6"><IMG src="HtmlEditor/separator.gif" width="4" height="18"></td>
<td id="cell_btn_fontcolor" width="18"><img border="0" UNSELECTABLE = "on" id = "btn_fontcolor" name = "btn_fontcolor" class="imgButton" src="HtmlEditor/btn_fontcolor.gif" onMouseOver="changebutton(this.name,2);" onMouseOut = "changebutton(this.name,0);" onMouseDown = "changebutton(this.name,3);" onMouseUp = "btncommand(this.name);" onDragStart = "btncommand(this.name);" alt="字体颜色"></td>
<td id="cell_btn_fonthilight" width="18"><img border="0" UNSELECTABLE = "on" id = "btn_fonthilight" name = "btn_fonthilight" class="imgButton" src="HtmlEditor/btn_highlight.gif" onMouseOver="changebutton(this.name,2);" onMouseOut = "changebutton(this.name,0);" onMouseDown = "changebutton(this.name,3);" onMouseUp = "btncommand(this.name);" onDragStart = "btncommand(this.name);" alt="突出显示颜色"></td>
<td width="6"><IMG src="HtmlEditor/separator.gif" width="4" height="18"></td>
<td id="cell_btn_help" valign="middle" align="center" width="18"><i><img border="0" UNSELECTABLE = "on" id = "btn_help" name = "btn_help" src="HtmlEditor/btn_help.gif" class="DownUp" onclick="showHelp()" alt="帮助"></i></td>
<td width="4"><IMG src="HtmlEditor/separator.gif" width="4" height="18"></td>
<td >[<a href="?CatalogID=<%= Request("CatalogID")%>&editor=ubb">使用UBB编辑器</a>]</td>
<td id="cell_btn_about" valign="middle" align="center" > </td>
</tr>
</table>
</td>
</tr>
<tr id="toolrow2a">
<td><img vspace = "2" id="line2" border="0" src="HtmlEditor/line_divider.gif" width="6" height="2"></td>
</tr>
<tr id="toolrow3">
<td>
<table border="0" cellpadding="0" cellspacing="0" >
<tr>
<td width="4"><IMG src="HtmlEditor/separator.gif" width="4" height="18"></td>
<td id="cell_FontNameSelect"><select UNSELECTABLE = "on" size="1" id = "FontNameSelect" name="FontNameSelect" style="width: 75px" onChange = "btncommand('FontNameSelect');" onfocus = "this.options[0].text='(字体)';">
<option value="">(字体)</option>
<option value="宋体">宋体</option>
<option value="楷体_GB2312">楷体</option>
<option value="隶书">隶书</option>
<option value="黑体">黑体</option>
<option value="仿宋_GB2312">仿宋</option>
<option value="Arial">Arial</option>
<option value="Arial Black">Arial Black</option>
<option value="Arial Narrow">Arial Narrow</option>
<option value="Tahoma">Tahoma</option>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -