~ubuntu-branches/ubuntu/natty/moin/natty-updates

« back to all changes in this revision

Viewing changes to wiki/htdocs/applets/FCKeditor/editor/dialog/fck_smiley.html

  • Committer: Bazaar Package Importer
  • Author(s): Jonas Smedegaard
  • Date: 2008-06-22 21:17:13 UTC
  • mto: This revision was merged to the branch mainline in revision 18.
  • Revision ID: james.westby@ubuntu.com-20080622211713-inlv5k4eifxckelr
ImportĀ upstreamĀ versionĀ 1.7.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!--
 
2
 * FCKeditor - The text editor for internet
 
3
 * Copyright (C) 2003-2005 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>
 
21
        <head>
 
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 ; }
 
27
                </style>
 
28
                <script type="text/javascript">
 
29
 
 
30
var oEditor = window.parent.InnerDialogLoaded() ;
 
31
 
 
32
window.onload = function ()
 
33
{
 
34
        // First of all, translate the dialog box texts
 
35
        oEditor.FCKLanguageManager.TranslatePage(document) ;
 
36
}
 
37
 
 
38
function InsertSmiley( url )
 
39
{
 
40
        var oImg = oEditor.FCK.CreateElement( 'IMG' ) ;
 
41
        oImg.src = url ;
 
42
        oImg.setAttribute( '_fcksavedurl', url ) ;
 
43
 
 
44
        window.parent.Cancel() ;
 
45
}
 
46
 
 
47
function over(td)
 
48
{
 
49
        td.className = 'LightBackground HandIE HandMozilla' ;
 
50
}
 
51
 
 
52
function out(td)
 
53
{
 
54
        td.className = 'DarkBackground HandIE HandMozilla' ;
 
55
}
 
56
                </script>
 
57
        </head>
 
58
        <body scroll="no">
 
59
                <table cellpadding="2" cellspacing="2" align="center" border="0" width="100%" height="100%">
 
60
                        <script type="text/javascript">
 
61
<!--
 
62
var FCKConfig = oEditor.FCKConfig ;
 
63
 
 
64
var sBasePath = FCKConfig.SmileyPath ;
 
65
var aImages   = FCKConfig.SmileyImages ;
 
66
var cols      = FCKConfig.SmileyColumns ;
 
67
 
 
68
var i = 0 ;
 
69
while (i < aImages.length)
 
70
{
 
71
        document.write("<TR>") ;
 
72
        for(var j = 0 ; j < cols ; j++)
 
73
        {
 
74
                if (aImages[i])
 
75
                {
 
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'>") ;
 
79
                }
 
80
                else
 
81
                        document.write("<TD width='1%' class='DarkBackground'>&nbsp;") ;
 
82
                document.write("<\/TD>") ;
 
83
                i++ ;
 
84
        }
 
85
        document.write("<\/TR>") ;
 
86
}
 
87
//-->
 
88
                        </script>
 
89
                </table>
 
90
        </body>
 
91
</html>