1075 |
ddelon |
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_smiley.html
|
|
|
14 |
* Smileys (emoticons) 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 xmlns="http://www.w3.org/1999/xhtml">
|
|
|
21 |
<head>
|
|
|
22 |
<title></title>
|
|
|
23 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
|
24 |
<meta name="robots" content="noindex, nofollow" />
|
|
|
25 |
<style type="text/css">
|
|
|
26 |
.Hand
|
|
|
27 |
{
|
|
|
28 |
cursor: pointer;
|
|
|
29 |
cursor: hand;
|
|
|
30 |
}
|
|
|
31 |
</style>
|
|
|
32 |
<script type="text/javascript">
|
|
|
33 |
|
|
|
34 |
var oEditor = window.parent.InnerDialogLoaded() ;
|
|
|
35 |
|
|
|
36 |
window.onload = function ()
|
|
|
37 |
{
|
|
|
38 |
// First of all, translate the dialog box texts
|
|
|
39 |
oEditor.FCKLanguageManager.TranslatePage(document) ;
|
|
|
40 |
}
|
|
|
41 |
|
|
|
42 |
function InsertSmiley( url )
|
|
|
43 |
{
|
|
|
44 |
var oImg = oEditor.FCK.CreateElement( 'IMG' ) ;
|
|
|
45 |
oImg.src = url ;
|
|
|
46 |
oImg.setAttribute( '_fcksavedurl', url ) ;
|
|
|
47 |
|
|
|
48 |
// For long smileys list, it seams that IE continues loading the images in
|
|
|
49 |
// the background when you quickly select one image. so, let's clear
|
|
|
50 |
// everything before closing.
|
|
|
51 |
document.body.innerHTML = '' ;
|
|
|
52 |
|
|
|
53 |
window.parent.Cancel() ;
|
|
|
54 |
}
|
|
|
55 |
|
|
|
56 |
function over(td)
|
|
|
57 |
{
|
|
|
58 |
td.className = 'LightBackground Hand' ;
|
|
|
59 |
}
|
|
|
60 |
|
|
|
61 |
function out(td)
|
|
|
62 |
{
|
|
|
63 |
td.className = 'DarkBackground Hand' ;
|
|
|
64 |
}
|
|
|
65 |
</script>
|
|
|
66 |
</head>
|
|
|
67 |
<body scroll="no">
|
|
|
68 |
<table cellpadding="2" cellspacing="2" align="center" border="0" width="100%" height="100%">
|
|
|
69 |
<script type="text/javascript">
|
|
|
70 |
|
|
|
71 |
var FCKConfig = oEditor.FCKConfig ;
|
|
|
72 |
|
|
|
73 |
var sBasePath = FCKConfig.SmileyPath ;
|
|
|
74 |
var aImages = FCKConfig.SmileyImages ;
|
|
|
75 |
var iCols = FCKConfig.SmileyColumns ;
|
|
|
76 |
var iColWidth = parseInt( 100 / iCols ) ;
|
|
|
77 |
|
|
|
78 |
var i = 0 ;
|
|
|
79 |
while (i < aImages.length)
|
|
|
80 |
{
|
|
|
81 |
document.write( '<tr>' ) ;
|
|
|
82 |
for(var j = 0 ; j < iCols ; j++)
|
|
|
83 |
{
|
|
|
84 |
if (aImages[i])
|
|
|
85 |
{
|
|
|
86 |
var sUrl = sBasePath + aImages[i] ;
|
|
|
87 |
document.write( '<td width="' + iColWidth + '%" align="center" class="DarkBackground Hand" onclick="InsertSmiley(\'' + sUrl.replace(/'/g, "\\'" ) + '\')" onmouseover="over(this)" onmouseout="out(this)">' ) ;
|
|
|
88 |
document.write( '<img src="' + sUrl + '" border="0" />' ) ;
|
|
|
89 |
}
|
|
|
90 |
else
|
|
|
91 |
document.write( '<td width="' + iColWidth + '%" class="DarkBackground"> ' ) ;
|
|
|
92 |
document.write( '<\/td>' ) ;
|
|
|
93 |
i++ ;
|
|
|
94 |
}
|
|
|
95 |
document.write('<\/tr>') ;
|
|
|
96 |
}
|
|
|
97 |
|
|
|
98 |
</script>
|
|
|
99 |
</table>
|
|
|
100 |
</body>
|
|
|
101 |
</html>
|