editjs.jsp
上传用户:jhtang88
上传日期:2014-01-27
资源大小:28528k
文件大小:7k
源码类别:

Jsp/Servlet

开发平台:

Java

  1. <%@ page contentType="text/html;charset=utf-8"%>
  2. <%@ taglib uri="/WEB-INF/tlds/LabelTag.tld" prefix="lt" %>
  3. <%
  4. String editrootpath = request.getContextPath();
  5. %>
  6. document.writeln("<div id="cws_edit"> ");
  7. document.writeln(" <ul> <select language="javascript" class="cws_TBGen" id="FontSize" onchange="FormatText('fontsize',this[this.selectedIndex].value);">");
  8. document.writeln(" <option class="heading" selected><lt:Label res="res.label.editor.editjs" key="font_size"/> ");
  9. document.writeln(" <option value="1">1 ");
  10. document.writeln(" <option value="2">2 ");
  11. document.writeln(" <option value="3">3 ");
  12. document.writeln(" <option value="4">4 ");
  13. document.writeln(" <option value="5">5 ");
  14. document.writeln(" <option value="6">6 ");
  15. document.writeln(" <option value="7">7</option>");
  16. document.writeln(" </select> ");
  17. document.writeln(" <li class="cws_Btn" TITLE="<lt:Label res="res.label.editor.editjs" key="bold"/>" LANGUAGE="javascript" onclick="FormatText('bold', '');ondrag='return false;'" onmouseover=this.className='cws_BtnMouseOverUp'; onmouseout=this.className='cws_Btn'; > ");
  18. document.writeln(" <img class="cws_Ico" src="<%=editrootpath%>/editor/images/bold.gif" /> </li>");
  19. document.writeln(" <li class="cws_Btn" TITLE="<lt:Label res="res.label.editor.editjs" key="italic"/>" LANGUAGE="javascript" onclick="FormatText('italic', '');ondrag='return false;'" onmouseover=this.className='cws_BtnMouseOverUp'; onmouseout=this.className='cws_Btn'; > ");
  20. document.writeln(" <img class="cws_Ico" src="<%=editrootpath%>/editor/images/italic.gif" /> </li>");
  21. document.writeln(" <li class="cws_Btn" TITLE="<lt:Label res="res.label.editor.editjs" key="underline"/>" LANGUAGE="javascript" onclick="FormatText('underline', '');ondrag='return false;'" onmouseover=this.className='cws_BtnMouseOverUp'; onmouseout=this.className='cws_Btn'; > ");
  22. document.writeln(" <img class="cws_Ico" src="<%=editrootpath%>/editor/images/underline.gif" /> </li>");
  23. document.writeln(" <li class="cws_Btn" TITLE="<lt:Label res="res.label.editor.editjs" key="cancel_fomat"/>" LANGUAGE="javascript" onclick="FormatText('RemoveFormat', '');ondrag='return false;'" onmouseover=this.className='cws_BtnMouseOverUp'; onmouseout=this.className='cws_Btn'; > ");
  24. document.writeln(" <img class="cws_Ico" src="<%=editrootpath%>/editor/images/removeformat.gif" /> </li>");
  25. document.writeln(" <li class="cws_Btn" TITLE="<lt:Label res="res.label.editor.editjs" key="align_left"/>" NAME="Justify" LANGUAGE="javascript" onclick="FormatText('justifyleft', '');ondrag='return false;'" onmouseover=this.className='cws_BtnMouseOverUp'; onmouseout=this.className='cws_Btn'; > ");
  26. document.writeln(" <img class="cws_Ico" src="<%=editrootpath%>/editor/images/aleft.gif" /> </li>");
  27. document.writeln(" <li class="cws_Btn" TITLE="<lt:Label res="res.label.editor.editjs" key="align_center"/>" NAME="Justify" LANGUAGE="javascript" onclick="FormatText('justifycenter', '');ondrag='return false;'" onmouseover=this.className='cws_BtnMouseOverUp'; onmouseout=this.className='cws_Btn'; > ");
  28. document.writeln(" <img class="cws_Ico" src="<%=editrootpath%>/editor/images/center.gif" /> </li>");
  29. document.writeln(" <li class="cws_Btn" TITLE="<lt:Label res="res.label.editor.editjs" key="align_right"/>" NAME="Justify" LANGUAGE="javascript" onclick="FormatText('justifyright', '');ondrag='return false;'" onmouseover=this.className='cws_BtnMouseOverUp'; onmouseout=this.className='cws_Btn'; > ");
  30. document.writeln(" <img class="cws_Ico" src="<%=editrootpath%>/editor/images/aright.gif" /> </li>");
  31. document.writeln(" <li class="cws_Btn" TITLE="<lt:Label res="res.label.editor.editjs" key="emote"/>" LANGUAGE="javascript" onclick="cws_foremot()" onmouseover=this.className='cws_BtnMouseOverUp'; onmouseout=this.className='cws_Btn'; > ");
  32. document.writeln(" <img class="cws_Ico" src="<%=editrootpath%>/editor/images/smiley.gif" /> </li>");
  33. document.writeln(" <li id="forecolor" name=forecolor class="cws_Btn" TITLE="<lt:Label res="res.label.editor.editjs" key="font_color"/>" LANGUAGE="javascript" onclick="cws_foreColor();" onmouseover=this.className='cws_BtnMouseOverUp'; onmouseout=this.className='cws_Btn'; > ");
  34. document.writeln(" <img class="cws_Ico" src="<%=editrootpath%>/editor/images/fgcolor.gif" /> </li>");
  35. document.writeln(" <li id="backcolor" class="cws_Btn" TITLE="<lt:Label res="res.label.editor.editjs" key="font_bg_color"/>" LANGUAGE="javascript" onclick="cws_backColor();ondrag='return false;'" onmouseover=this.className='cws_BtnMouseOverUp'; onmouseout=this.className='cws_Btn';> ");
  36. document.writeln(" <img class="cws_Ico" src="<%=editrootpath%>/editor/images/fbcolor.gif" /> </li>");
  37. document.writeln(" <li class="cws_Btn" TITLE="<lt:Label res="res.label.editor.editjs" key="link"/>" LANGUAGE="javascript" onclick="cws_forlink();ondrag='return false;'" onmouseover=this.className='cws_BtnMouseOverUp'; onmouseout=this.className='cws_Btn'; > ");
  38. document.writeln(" <img class="cws_Ico" src="<%=editrootpath%>/editor/images/wlink.gif" /> </li>");
  39. document.writeln(" <li class="cws_Btn" TITLE="<lt:Label res="res.label.editor.editjs" key="cancel_link"/>" LANGUAGE="javascript" onclick="FormatText('Unlink');ondrag='return false;'" onmouseover=this.className='cws_BtnMouseOverUp'; onmouseout=this.className='cws_Btn'; > ");
  40. document.writeln(" <img class="cws_Ico" src="<%=editrootpath%>/editor/images/unlink.gif" /> </li>");
  41. document.writeln(" <li class="cws_Btn" TITLE="<lt:Label res="res.label.editor.editjs" key="clear_code"/>" LANGUAGE="javascript" onclick="cws_CleanCode();ondrag='return false;'" onmouseover=this.className='cws_BtnMouseOverUp'; onmouseout=this.className='cws_Btn';> ");
  42. document.writeln(" <img class="cws_Ico" src="<%=editrootpath%>/editor/images/cleancode.gif" /></li>");
  43. document.writeln(" </ul>");
  44. document.writeln(" <ul style="height:100%" id="PostiFrame"> <iframe class="cws_Composition" ID="cws_Composition" MARGINHEIGHT="5" MARGINWIDTH="5" width="100%" height="100%"></iframe> </ul>");
  45. document.writeln("    <ul style="text-align:right;"><a href="javascript:cws_Size(-360)"><img src="<%=editrootpath%>/editor/images/minus.gif" border='0' height="20" /></a> <a href="javascript:cws_Size(330)"><img src="<%=editrootpath%>/editor/images/plus.gif"  border='0' height="20" /></a>");
  46. document.writeln(" <li style="width:10px;"></li>");
  47. document.writeln(" </ul>");
  48. document.writeln("</div>");