source:
trunk/expressoMail1_2/js/fckeditor/editor/dialog/fck_specialchar.html
@
389
Revision 389, 4.2 KB checked in by niltonneto, 16 years ago (diff) | |
---|---|
|
Rev | Line | |
---|---|---|
[389] | 1 | <!-- |
2 | * FCKeditor - The text editor for internet | |
3 | * Copyright (C) 2003-2006 Frederico Caldeira Knabben | |
4 | * | |
5 | * Licensed under the terms of the GNU Lesser General Public License: | |
6 | * http://www.opensource.org/licenses/lgpl-license.php | |
7 | * | |
8 | * For further information visit: | |
9 | * http://www.fckeditor.net/ | |
10 | * | |
11 | * "Support Open Source software. What about a donation today?" | |
12 | * | |
13 | * File Name: fck_specialchar.html | |
14 | * Special Chars Selector dialog window. | |
15 | * | |
16 | * File Authors: | |
17 | * Frederico Caldeira Knabben (fredck@fckeditor.net) | |
18 | --> | |
19 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > | |
20 | <html> | |
21 | <head> | |
22 | <meta name="robots" content="noindex, nofollow"> | |
23 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
24 | <style type="text/css"> | |
25 | .Hand | |
26 | { | |
27 | cursor: pointer ; | |
28 | cursor: hand ; | |
29 | } | |
30 | .Sample { font-size: 24px; } | |
31 | </style> | |
32 | <script type="text/javascript"> | |
33 | ||
34 | var oEditor = window.parent.InnerDialogLoaded() ; | |
35 | ||
36 | var oSample ; | |
37 | ||
38 | function insertChar(charValue) | |
39 | { | |
40 | oEditor.FCK.InsertHtml( charValue || "" ) ; | |
41 | window.parent.Cancel() ; | |
42 | } | |
43 | ||
44 | function over(td) | |
45 | { | |
46 | oSample.innerHTML = td.innerHTML ; | |
47 | td.className = 'LightBackground SpecialCharsOver Hand' ; | |
48 | } | |
49 | ||
50 | function out(td) | |
51 | { | |
52 | oSample.innerHTML = " " ; | |
53 | td.className = 'DarkBackground SpecialCharsOut Hand' ; | |
54 | } | |
55 | ||
56 | function setDefaults() | |
57 | { | |
58 | // Gets the sample placeholder. | |
59 | oSample = document.getElementById("SampleTD") ; | |
60 | ||
61 | // First of all, translates the dialog box texts. | |
62 | oEditor.FCKLanguageManager.TranslatePage(document) ; | |
63 | } | |
64 | ||
65 | </script> | |
66 | </HEAD> | |
67 | <BODY onload="setDefaults()" scroll="no"> | |
68 | <table cellpadding="0" cellspacing="0" width="100%" height="100%"> | |
69 | <tr> | |
70 | <td width="100%"> | |
71 | <table cellpadding="1" cellspacing="1" align="center" border="0" width="100%" height="100%"> | |
72 | <script type="text/javascript"> | |
73 | var aChars = ["!",""","#","$","%","&","\\'","(",")","*","+","-",".","/","0","1","2","3","4","5","6","7","8","9",":",";","<","=",">","?","@","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","{","|","}","~","€","‘","’","’","“","”","–","—","¡","¢","£","¤","¥","¦","§","¨","©","ª","«","¬","®","¯","°","±","²","³","´","µ","¶","·","¸","¹","º","»","¼","½","¾","¿","À","Á","Â","Ã","Ä","Å","Æ","Ç","È","É","Ê","Ë","Ì","Í","Î","Ï","Ð","Ñ","Ò","Ó","Ô","Õ","Ö","×","Ø","Ù","Ú","Û","Ü","Ý","Þ","ß","à","á","â","ã","ä","å","æ","ç","è","é","ê","ë","ì","í","î","ï","ð","ñ","ò","ó","ô","õ","ö","÷","ø","ù","ú","û","ü","ü","ý","þ","ÿ","Œ","œ","‚","‛","„","…","™","►","•","→","⇒","⇔","♦","≈"] ; | |
74 | ||
75 | var cols = 20 ; | |
76 | ||
77 | var i = 0 ; | |
78 | while (i < aChars.length) | |
79 | { | |
80 | document.write("<TR>") ; | |
81 | for(var j = 0 ; j < cols ; j++) | |
82 | { | |
83 | if (aChars[i]) | |
84 | { | |
85 | document.write('<TD width="1%" class="DarkBackground SpecialCharsOut Hand" align="center" onclick="insertChar(\'' + aChars[i].replace(/&/g, "&") + '\')" onmouseover="over(this)" onmouseout="out(this)">') ; | |
86 | document.write(aChars[i]) ; | |
87 | } | |
88 | else | |
89 | document.write("<TD class='DarkBackground SpecialCharsOut'> ") ; | |
90 | document.write("<\/TD>") ; | |
91 | i++ ; | |
92 | } | |
93 | document.write("<\/TR>") ; | |
94 | } | |
95 | </script> | |
96 | </table> | |
97 | </td> | |
98 | <td nowrap> </td> | |
99 | <td valign="top"> | |
100 | <table width="40" cellpadding="0" cellspacing="0" border="0"> | |
101 | <tr> | |
102 | <td id="SampleTD" width="40" height="40" align="center" class="DarkBackground SpecialCharsOut Sample"> </td> | |
103 | </tr> | |
104 | </table> | |
105 | </td> | |
106 | </tr> | |
107 | </table> | |
108 | </BODY> | |
109 | </HTML> |
Note: See TracBrowser
for help on using the repository browser.