2
* FCKeditor - The text editor for internet
3
* Copyright (C) 2003-2005 Frederico Caldeira Knabben
5
* Licensed under the terms of the GNU Lesser General Public License:
6
* http://www.opensource.org/licenses/lgpl-license.php
8
* For further information visit:
9
* http://www.fckeditor.net/
11
* "Support Open Source software. What about a donation today?"
13
* File Name: fck_smiley.html
14
* Smileys (emoticons) dialog window.
17
* Frederico Caldeira Knabben (fredck@fckeditor.net)
19
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
22
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
23
<meta name="robots" content="noindex, nofollow" />
24
<style type="text/css">
25
.HandIE { cursor: hand ; }
26
.HandMozilla { cursor: pointer ; }
28
<script type="text/javascript">
30
var oEditor = window.parent.InnerDialogLoaded() ;
32
window.onload = function ()
34
// First of all, translate the dialog box texts
35
oEditor.FCKLanguageManager.TranslatePage(document) ;
38
function InsertSmiley( url )
40
var oImg = oEditor.FCK.CreateElement( 'IMG' ) ;
42
oImg.setAttribute( '_fcksavedurl', url ) ;
44
window.parent.Cancel() ;
49
td.className = 'LightBackground HandIE HandMozilla' ;
54
td.className = 'DarkBackground HandIE HandMozilla' ;
59
<table cellpadding="2" cellspacing="2" align="center" border="0" width="100%" height="100%">
60
<script type="text/javascript">
62
var FCKConfig = oEditor.FCKConfig ;
64
var sBasePath = FCKConfig.SmileyPath ;
65
var aImages = FCKConfig.SmileyImages ;
66
var cols = FCKConfig.SmileyColumns ;
69
while (i < aImages.length)
71
document.write("<TR>") ;
72
for(var j = 0 ; j < cols ; j++)
76
var sUrl = sBasePath + aImages[i] ;
77
document.write("<TD width='1%' align='center' class='DarkBackground HandIE HandMozilla' onclick='InsertSmiley(\"" + sUrl.replace(/"/g, '\\"' ) + "\")' onmouseover='over(this)' onmouseout='out(this)'>") ;
78
document.write("<img src='" + sUrl + "' border='0'>") ;
81
document.write("<TD width='1%' class='DarkBackground'> ") ;
82
document.write("<\/TD>") ;
85
document.write("<\/TR>") ;