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

Jsp/Servlet

开发平台:

Java

  1. <%@ page contentType="text/html;charset=utf-8" %>
  2. <%@ taglib uri="/WEB-INF/tlds/LabelTag.tld" prefix="lt" %>
  3. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  4. <HTML><HEAD><TITLE><lt:Label res="res.label.editor_full.specialchar" key="page_title"/></TITLE>
  5. <META http-equiv=Content-Type content="text/html; charset=utf-8">
  6. <META http-equiv=Expires content=0><LINK href="specialchar_files/pop.css" 
  7. type=text/css rel=stylesheet>
  8. <STYLE type=text/css>.Disactive {
  9. BORDER-RIGHT: 1px solid; BORDER-TOP: 1px solid; BORDER-LEFT: 1px solid; WIDTH: 1%; CURSOR: hand; BORDER-BOTTOM: 1px solid; BACKGROUND-COLOR: #dedbd6; TEXT-ALIGN: center
  10. }
  11. .Active {
  12. CURSOR: hand; BACKGROUND-COLOR: #ffffcc; TEXT-ALIGN: center
  13. }
  14. .MainTable {
  15. BORDER-RIGHT: #e8e8e8 5px solid; BORDER-TOP: #e8e8e8 5px solid; BORDER-LEFT: #e8e8e8 5px solid; BORDER-BOTTOM: #e8e8e8 5px solid
  16. }
  17. .Sample {
  18. BORDER-RIGHT: 1px solid; BORDER-TOP: 1px solid; FONT-SIZE: 24px; BORDER-LEFT: 1px solid; BORDER-BOTTOM: 1px solid; BACKGROUND-COLOR: #dedbd6
  19. }
  20. .Empty {
  21. BORDER-RIGHT: 1px solid; BORDER-TOP: 1px solid; BORDER-LEFT: 1px solid; WIDTH: 1%; CURSOR: default; BORDER-BOTTOM: 1px solid; BACKGROUND-COLOR: #dedbd6
  22. }
  23. </STYLE>
  24. <SCRIPT language=javascript>
  25. <!--
  26. var oSample ;
  27. function insertChar(charValue)
  28. {
  29. window.returnValue = charValue ;
  30. window.close();
  31. }
  32. function over(td)
  33. {
  34. oSample.innerHTML = td.innerHTML ;
  35. td.className = 'Active' ;
  36. }
  37. function out(td)
  38. {
  39. oSample.innerHTML = "&nbsp;" ;
  40. td.className = 'Disactive' ;
  41. }
  42. function CloseWindow()
  43. {
  44. window.returnValue = null ;
  45. window.close() ;
  46. }
  47. //-->
  48. </SCRIPT>
  49. <META content="MSHTML 6.00.3790.373" name=GENERATOR></HEAD>
  50. <BODY bottomMargin=0 leftMargin=0 topMargin=0 rightMargin=0>
  51. <TABLE height="100%" cellSpacing=10 cellPadding=0 width="100%">
  52.   <TBODY>
  53.   <TR>
  54.     <TD width="100%" rowSpan=2>
  55.       <TABLE class=MainTable height="100%" cellSpacing=0 cellPadding=0 
  56.       width="100%" align=center border=1>
  57.         <SCRIPT language=javascript>
  58. <!--
  59. //var aChars = ["!","&quot;","#","$","%","&","\'","(",")","*","+","-",".","/","0","1","2","3","4","5","6","7","8","9",":",";","&lt;","=","&gt;","?","@","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","[","]","^","_","`","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","{","|","}","~","&euro;","?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"&lsquo;","&rsquo;","&rsquo;","&ldquo;","&rdquo;","?,"&ndash;","&mdash;","?,"?,"?,"?,"?,"?,"&iexcl;","&cent;","&pound;","&pound;","&curren;","&yen;","&brvbar;","&sect;","&uml;","&copy;","&ordf;","&laquo;","&not;","?,"&reg;","&macr;","&deg;","&plusmn;","&sup2;","&sup3;","&acute;","&micro;","&para;","&middot;","&cedil;","&sup1;","&ordm;","&raquo;","&frac14;","&frac12;","&frac34;","&iquest;","&Agrave;","&Aacute;","&Acirc;","&Atilde;","&Auml;","&Aring;","&AElig;","&Ccedil;","&Egrave;","&Eacute;","&Ecirc;","&Euml;","&Igrave;","&Iacute;","&Icirc;","&Iuml;","&ETH;","&Ntilde;","&Ograve;","&Oacute;","&Ocirc;","&Otilde;","&Ouml;","&times;","&Oslash;","&Ugrave;","&Uacute;","&Ucirc;","&Uuml;","&Yacute;","&THORN;","&szlig;","&agrave;","&aacute;","&acirc;","&atilde;","&auml;","&aring;","&aelig;","&ccedil;","&egrave;","&eacute;","&ecirc;","&euml;","&igrave;","&iacute;","&icirc;","&iuml;","&eth;","&ntilde;","&ograve;","&oacute;","&ocirc;","&otilde;","&ouml;","&divide;","&oslash;","&ugrave;","&uacute;","&ucirc;","&uuml;","&uuml;","&yacute;","&thorn;","&yuml;"] ;
  60. var aChars = ["!","&quot;","#","$","%","&","\'","(",")","*","+","-",".","/","0","1","2","3","4","5","6","7","8","9",":",";","&lt;","=","&gt;","?","@","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","[","]","^","_","`","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","{","|","}","~","&euro;","&lsquo;","&rsquo;","&rsquo;","&ldquo;","&rdquo;","&ndash;","&mdash;","&iexcl;","&cent;","&pound;","&curren;","&yen;","&brvbar;","&sect;","&uml;","&copy;","&ordf;","&laquo;","&not;","&reg;","&macr;","&deg;","&plusmn;","&sup2;","&sup3;","&acute;","&micro;","&para;","&middot;","&cedil;","&sup1;","&ordm;","&raquo;","&frac14;","&frac12;","&frac34;","&iquest;","&Agrave;","&Aacute;","&Acirc;","&Atilde;","&Auml;","&Aring;","&AElig;","&Ccedil;","&Egrave;","&Eacute;","&Ecirc;","&Euml;","&Igrave;","&Iacute;","&Icirc;","&Iuml;","&ETH;","&Ntilde;","&Ograve;","&Oacute;","&Ocirc;","&Otilde;","&Ouml;","&times;","&Oslash;","&Ugrave;","&Uacute;","&Ucirc;","&Uuml;","&Yacute;","&THORN;","&szlig;","&agrave;","&aacute;","&acirc;","&atilde;","&auml;","&aring;","&aelig;","&ccedil;","&egrave;","&eacute;","&ecirc;","&euml;","&igrave;","&iacute;","&icirc;","&iuml;","&eth;","&ntilde;","&ograve;","&oacute;","&ocirc;","&otilde;","&ouml;","&divide;","&oslash;","&ugrave;","&uacute;","&ucirc;","&uuml;","&uuml;","&yacute;","&thorn;","&yuml;"] ;
  61. var cols = 20 ;
  62. var i = 0 ;
  63. while (i < aChars.length)
  64. {
  65. document.write("<TR>") ;
  66. for(var j = 0 ; j < cols ; j++) 
  67. {
  68. if (aChars[i])
  69. {
  70. document.write('<TD class="Disactive" onclick="insertChar('' + aChars[i].replace(/&/g, "&amp;") + '')" onmouseover="over(this)" onmouseout="out(this)">') ;
  71. document.write(aChars[i]) ;
  72. }
  73. else
  74. document.write("<TD class='Empty'>&nbsp;") ;
  75. document.write("</TD>") ;
  76. i++ ;
  77. }
  78. document.write("</TR>") ;
  79. }
  80. //-->
  81. </SCRIPT>
  82.         <TBODY></TBODY></TABLE></TD>
  83.     <TD vAlign=top>
  84.       <TABLE class=MainTable>
  85.         <TBODY>
  86.         <TR>
  87.           <TD class=Sample id=SampleTD align=middle width=40 
  88.           height=40>&nbsp;</TD></TR></TBODY></TABLE></TD></TR>
  89.   <TR>
  90.     <TD align=middle height=1><BUTTON 
  91.   onclick=window.close();><lt:Label res="res.common" key="close"/></BUTTON></TD></TR></TBODY></TABLE>
  92. <SCRIPT language=javascript>
  93. <!--
  94. oSample = document.getElementById("SampleTD") ;
  95. //-->
  96. </SCRIPT>
  97. </BODY></HTML>