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

📄 html_editor.jsp

📁 java 写的一个新闻发布系统
💻 JSP
📖 第 1 页 / 共 2 页
字号:
    document.mainForm.elements["_<%=theField.getID()%>"].value = "<HTML>" + txt + "</HTML>";}function changeConnectType() {    setHiddenValue(document.mainForm.Text1.value);    document.mainForm.submit();}//--></script><br><br><table border="0" cellpadding="0" cellspacing="0"><tr>    <td><table border="1" cellpadding="5" cellspacing="0" bgcolor="#4D4E6D" bordercolor="#B3D9FF">    <tr>        <td class="input">            <map name="colmap"><%    String hexNb[] = {"00", "33", "66", "99", "CC", "FF"};    byte R = 0;    byte G = 5;    byte B = 0;    String color;    for (int j = 1; j <= 56; j += 11) {        for (int i = 1; i <= 281; i += 8) {            color = "#" + hexNb[R] + hexNb[G] + hexNb[B];    %>            <area shape="rect"                  coords="<%=Integer.toString(i)%>, <%=Integer.toString(j)%>, <%=Integer.toString(i + 6)%>, <%=Integer.toString(j + 9)%>"                  href="javascript:setTextColor('<%=color%>')"                  alt="<%=color%>">    <%            if (B < 5) {                B++;            } else {                B = 0;                if (R < 5) {                    R++;                } else {                    R = 0;                    G--;                }            }        }    }%>            </map>            <img usemap="#colmap" src="<%=theURL%>/jahiatools/images/colortable.gif" border="0" width="289" height="67">            <img src="<%=theURL%>/jahiatools/images/pix.gif" border="0" width="75" height="3"><br>            <img src="<%=theURL%>/jahiatools/images/pix.gif" border="0" width="3" height="3"><br>            <select name="FontName" class="input">                <option value="Arial, Helvetica, sans-serif" selected>Arial, Helvetica, sans-serif</option>                <option value="Times New Roman, Times, serif">Times New Roman, Times, serif</option>                <option value="Courier New, Courier, mono">Courier New, Courier, mono</option>                <option value="Georgia, Times New Roman, Times, serif">Georgia, Times New Roman, Times, serif</option>                <option value="Verdana, Arial, Helvetica, sans-serif">Verdana, Arial, Helvetica, sans-serif</option>                <option value="Geneva, Arial, Helvetica, san-serif">Geneva, Arial, Helvetica, san-serif</option>            </select>            <img src="<%=theURL%>/jahiatools/images/pix.gif" border="0" width="7" height="1"            ><select name="FontSize" class="input">                <option value="1">1</option>                <option value="2" selected>2</option>                <option value="3">3</option>                <option value="4">4</option>                <option value="5">5</option>                <option value="6">6</option>                <option value="7">7</option>            </select>            <img src="<%=theURL%>/jahiatools/images/pix.gif" border="0" width="7" height="1"            ><input class="input" name="hexacolorcode" type="fontfix1" size="9" value="#000000" onChange="setTextColor(document.mainForm.hexacolorcode.value)"        ></td>    </tr></table>        </td>    </tr>    <tr>        <td><img src="<%=theURL%>/jahiatools/images/pix.gif" border="0" width="1" height="6"><br><a href="javascript:addText(9, 'link');" onmousedown="document.link.src='<%=theURL%>/jahiatools/images/html_editor/link_on.gif';" onmouseout="document.link.src='<%=theURL%>/jahiatools/images/html_editor/link_off.gif';"><img name="link" alt="Link" src="<%=theURL%>/jahiatools/images/html_editor/link_off.gif" width="33" height="33" border="0"></a><a href="javascript:addText(15, 'mail');" onmousedown="document.mail.src='<%=theURL%>/jahiatools/images/html_editor/mail_on.gif';" onmouseout="document.mail.src='<%=theURL%>/jahiatools/images/html_editor/mail_off.gif';"><img name="mail" alt="E-Mail" src="<%=theURL%>/jahiatools/images/html_editor/mail_off.gif" width="33" height="33" border="0"></a><!--<a href="javascript:addText(10, 'image');" onmousedown="document.image.src='<%=theURL%>/jahiatools/images/html_editor/image_on.gif';" onmouseout="document.image.src='<%=theURL%>/jahiatools/images/html_editor/image_off.gif';"><img name="image" alt="Image" src="<%=theURL%>/jahiatools/images/html_editor/image_off.gif" width="33" height="33" border="0"></a>--><a href="javascript:addTable('table');" onmousedown="document.table.src='<%=theURL%>/jahiatools/images/html_editor/table_on.gif';" onmouseout="document.table.src='<%=theURL%>/jahiatools/images/html_editor/table_off.gif';"><img name="table" alt="Table" src="<%=theURL%>/jahiatools/images/html_editor/table_off.gif" width="33" height="33" border="0"></a><a href="javascript:addHTML(UL, 'ul');" onmousedown="document.ul.src='<%=theURL%>/jahiatools/images/html_editor/ul_on.gif';" onmouseout="document.ul.src='<%=theURL%>/jahiatools/images/html_editor/ul_off.gif';"><img name="ul" alt="Bulleted List" src="<%=theURL%>/jahiatools/images/html_editor/ul_off.gif" width="33" height="33" border="0"></a><a href="javascript:addHTML(OL, 'ol');" onmousedown="document.ol.src='<%=theURL%>/jahiatools/images/html_editor/ol_on.gif';" onmouseout="document.ol.src='<%=theURL%>/jahiatools/images/html_editor/ol_off.gif';"><img name="ol" alt="Numbered List" src="<%=theURL%>/jahiatools/images/html_editor/ol_off.gif" width="33" height="33" border="0"></a>        </td>    </tr>    <tr>        <td height="204" valign="middle"><img src="<%=theURL%>/jahiatools/images/pix.gif" border="0" width="1" height="6"><br><a href="javascript:addText(11, 'font');" onmousedown="document.font.src='<%=theURL%>/jahiatools/images/html_editor/font_on.gif';" onmouseout="document.font.src='<%=theURL%>/jahiatools/images/html_editor/font_off.gif';"><img name="font" alt="Font" src="<%=theURL%>/jahiatools/images/html_editor/font_off.gif" width="20" height="16" border="0"></a><a href="javascript:addText(4, 'b');" onmousedown="document.b.src='<%=theURL%>/jahiatools/images/html_editor/b_on.gif';" onmouseout="document.b.src='<%=theURL%>/jahiatools/images/html_editor/b_off.gif';"><img name="b" alt="Bold" src="<%=theURL%>/jahiatools/images/html_editor/b_off.gif" width="20" height="16" border="0"></a><a href="javascript:addText(5, 'i');" onmousedown="document.i.src='<%=theURL%>/jahiatools/images/html_editor/i_on.gif';" onmouseout="document.i.src='<%=theURL%>/jahiatools/images/html_editor/i_off.gif';"><img name="i" alt="Italic" src="<%=theURL%>/jahiatools/images/html_editor/i_off.gif" width="20" height="16" border="0"></a><a href="javascript:addText(16, 'u');" onmousedown="document.u.src='<%=theURL%>/jahiatools/images/html_editor/u_on.gif';" onmouseout="document.u.src='<%=theURL%>/jahiatools/images/html_editor/u_off.gif';"><img name="u" alt="Underline" src="<%=theURL%>/jahiatools/images/html_editor/u_off.gif" width="20" height="16" border="0"></a><a href="javascript:addText(12, 'left');" onmousedown="document.left.src='<%=theURL%>/jahiatools/images/html_editor/left_on.gif';" onmouseout="document.left.src='<%=theURL%>/jahiatools/images/html_editor/left_off.gif';"><img name="left" alt="Align Left" src="<%=theURL%>/jahiatools/images/html_editor/left_off.gif" width="20" height="16" border="0"></a><a href="javascript:addText(13, 'center');" onmousedown="document.center.src='<%=theURL%>/jahiatools/images/html_editor/center_on.gif';" onmouseout="document.center.src='<%=theURL%>/jahiatools/images/html_editor/center_off.gif';"><img name="center" alt="Align Center" src="<%=theURL%>/jahiatools/images/html_editor/center_off.gif" width="20" height="16" border="0"></a><a href="javascript:addText(14, 'right');" onmousedown="document.right.src='<%=theURL%>/jahiatools/images/html_editor/right_on.gif';" onmouseout="document.right.src='<%=theURL%>/jahiatools/images/html_editor/right_off.gif';"><img name="right" alt="Align Right" src="<%=theURL%>/jahiatools/images/html_editor/right_off.gif" width="20" height="16" border="0"></a><a href="javascript:addText(17, 'justify');" onmousedown="document.justify.src='<%=theURL%>/jahiatools/images/html_editor/justify_on.gif';" onmouseout="document.justify.src='<%=theURL%>/jahiatools/images/html_editor/justify_off.gif';"><img name="justify" alt="Align Justify" src="<%=theURL%>/jahiatools/images/html_editor/justify_off.gif" width="20" height="16" border="0"></a><a href="javascript:addText(7, 'br');" onmousedown="document.br.src='<%=theURL%>/jahiatools/images/html_editor/br_on.gif';" onmouseout="document.br.src='<%=theURL%>/jahiatools/images/html_editor/br_off.gif';"><img name="br" alt="Break" src="<%=theURL%>/jahiatools/images/html_editor/br_off.gif" width="20" height="16" border="0"></a><a href="javascript:addText(6, 'p');" onmousedown="document.p.src='<%=theURL%>/jahiatools/images/html_editor/p_on.gif';" onmouseout="document.p.src='<%=theURL%>/jahiatools/images/html_editor/p_off.gif';"><img name="p" alt="Paragraph" src="<%=theURL%>/jahiatools/images/html_editor/p_off.gif" width="20" height="16" border="0"></a><a href="javascript:addText(8, 'hr');" onmousedown="document.hr.src='<%=theURL%>/jahiatools/images/html_editor/hr_on.gif';" onmouseout="document.hr.src='<%=theURL%>/jahiatools/images/html_editor/hr_off.gif';"><img name="hr" alt="Horizontal Rule" src="<%=theURL%>/jahiatools/images/html_editor/hr_off.gif" width="20" height="16" border="0"></a><a href="javascript:addText(18, 'space');" onmousedown="document.space.src='<%=theURL%>/jahiatools/images/html_editor/space_on.gif';" onmouseout="document.space.src='<%=theURL%>/jahiatools/images/html_editor/space_off.gif';"><img name="space" alt="Non-breaking Space" src="<%=theURL%>/jahiatools/images/html_editor/space_off.gif" width="20" height="16" border="0"></a><br><img src="<%=theURL%>/jahiatools/images/pix.gif" border="0" width="1" height="3"><br><textarea name="Text1" class="fontfix1" rows="10" cols="80"          onChange="displayHTML(document.mainForm.Text1.value);"          onClick="displayHTML(document.mainForm.Text1.value); storeCaret();"          onSelect="displayHTML(document.mainForm.Text1.value); storeCaret();"          onKeyUp="displayHTML(document.mainForm.Text1.value); storeCaret();"          wrap="soft"><%=theOldField%></textarea>        </td>    </tr>    <tr>        <td height="170" valign="bottom">            <a href="javascript:undo('undo');" onmousedown="document.undo.src='<%=theURL%>/jahiatools/images/html_editor/undo_on.gif';" onmouseout="document.undo.src='<%=theURL%>/jahiatools/images/html_editor/undo_off.gif';"><img name="undo" alt="Undo" src="<%=theURL%>/jahiatools/images/html_editor/undo_off.gif" width="70" height="18" border="0"></a>            <a href="javascript:resetPage('reset');" onmousedown="document.reset.src='<%=theURL%>/jahiatools/images/html_editor/reset_on.gif';" onmouseout="document.reset.src='<%=theURL%>/jahiatools/images/html_editor/reset_off.gif';"><img name="reset" alt="Reset Page" src="<%=theURL%>/jahiatools/images/html_editor/reset_off.gif" width="70" height="18" border="0"></a>            <a href="javascript:view('preview');" onmousedown="document.preview.src='<%=theURL%>/jahiatools/images/html_editor/preview_on.gif';" onmouseout="document.preview.src='<%=theURL%>/jahiatools/images/html_editor/preview_off.gif';"><img name="preview" alt="Preview Page" src="<%=theURL%>/jahiatools/images/html_editor/preview_off.gif" width="70" height="18" border="0"></a>        </td>    </tr></table><% String hiddenField = org.jahia.utils.JahiaTools.replacePattern(theOldField, "\"", "&quot;");%><input type="hidden" name="_<%=theField.getID()%>" value="<HTML><%=hiddenField%></HTML>">

⌨️ 快捷键说明

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