[6779] | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > |
---|
| 2 | <!-- |
---|
| 3 | * FCKeditor - The text editor for Internet - http://www.fckeditor.net |
---|
| 4 | * Copyright (C) 2003-2007 Frederico Caldeira Knabben |
---|
| 5 | * |
---|
| 6 | * == BEGIN LICENSE == |
---|
| 7 | * |
---|
| 8 | * Licensed under the terms of any of the following licenses at your |
---|
| 9 | * choice: |
---|
| 10 | * |
---|
| 11 | * - GNU General Public License Version 2 or later (the "GPL") |
---|
| 12 | * http://www.gnu.org/licenses/gpl.html |
---|
| 13 | * |
---|
| 14 | * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") |
---|
| 15 | * http://www.gnu.org/licenses/lgpl.html |
---|
| 16 | * |
---|
| 17 | * - Mozilla Public License Version 1.1 or later (the "MPL") |
---|
| 18 | * http://www.mozilla.org/MPL/MPL-1.1.html |
---|
| 19 | * |
---|
| 20 | * == END LICENSE == |
---|
| 21 | * |
---|
| 22 | * Smileys (emoticons) dialog window. |
---|
| 23 | --> |
---|
| 24 | <html xmlns="http://www.w3.org/1999/xhtml"> |
---|
| 25 | <head> |
---|
| 26 | <title></title> |
---|
| 27 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
---|
| 28 | <meta name="robots" content="noindex, nofollow" /> |
---|
| 29 | <style type="text/css"> |
---|
| 30 | .Hand |
---|
| 31 | { |
---|
| 32 | cursor: pointer; |
---|
| 33 | cursor: hand; |
---|
| 34 | } |
---|
| 35 | </style> |
---|
| 36 | <script type="text/javascript"> |
---|
| 37 | |
---|
| 38 | var oEditor = window.parent.InnerDialogLoaded() ; |
---|
| 39 | |
---|
| 40 | window.onload = function () |
---|
| 41 | { |
---|
| 42 | // First of all, translate the dialog box texts |
---|
| 43 | oEditor.FCKLanguageManager.TranslatePage(document) ; |
---|
| 44 | } |
---|
| 45 | |
---|
| 46 | function InsertSmiley( url ) |
---|
| 47 | { |
---|
| 48 | var oImg = oEditor.FCK.CreateElement( 'IMG' ) ; |
---|
| 49 | oImg.src = url ; |
---|
| 50 | oImg.setAttribute( '_fcksavedurl', url ) ; |
---|
| 51 | |
---|
| 52 | // For long smileys list, it seams that IE continues loading the images in |
---|
| 53 | // the background when you quickly select one image. so, let's clear |
---|
| 54 | // everything before closing. |
---|
| 55 | document.body.innerHTML = '' ; |
---|
| 56 | |
---|
| 57 | window.parent.Cancel() ; |
---|
| 58 | } |
---|
| 59 | |
---|
| 60 | function over(td) |
---|
| 61 | { |
---|
| 62 | td.className = 'LightBackground Hand' ; |
---|
| 63 | } |
---|
| 64 | |
---|
| 65 | function out(td) |
---|
| 66 | { |
---|
| 67 | td.className = 'DarkBackground Hand' ; |
---|
| 68 | } |
---|
| 69 | </script> |
---|
| 70 | </head> |
---|
| 71 | <body scroll="no"> |
---|
| 72 | <table cellpadding="2" cellspacing="2" align="center" border="0" width="100%" height="100%"> |
---|
| 73 | <script type="text/javascript"> |
---|
| 74 | |
---|
| 75 | var FCKConfig = oEditor.FCKConfig ; |
---|
| 76 | |
---|
| 77 | var sBasePath = FCKConfig.SmileyPath ; |
---|
| 78 | var aImages = FCKConfig.SmileyImages ; |
---|
| 79 | var iCols = FCKConfig.SmileyColumns ; |
---|
| 80 | var iColWidth = parseInt( 100 / iCols, 10 ) ; |
---|
| 81 | |
---|
| 82 | var i = 0 ; |
---|
| 83 | while (i < aImages.length) |
---|
| 84 | { |
---|
| 85 | document.write( '<tr>' ) ; |
---|
| 86 | for(var j = 0 ; j < iCols ; j++) |
---|
| 87 | { |
---|
| 88 | if (aImages[i]) |
---|
| 89 | { |
---|
| 90 | var sUrl = sBasePath + aImages[i] ; |
---|
| 91 | document.write( '<td width="' + iColWidth + '%" align="center" class="DarkBackground Hand" onclick="InsertSmiley(\'' + sUrl.replace(/'/g, "\\'" ) + '\')" onmouseover="over(this)" onmouseout="out(this)">' ) ; |
---|
| 92 | document.write( '<img src="' + sUrl + '" border="0" />' ) ; |
---|
| 93 | } |
---|
| 94 | else |
---|
| 95 | document.write( '<td width="' + iColWidth + '%" class="DarkBackground"> ' ) ; |
---|
| 96 | document.write( '<\/td>' ) ; |
---|
| 97 | i++ ; |
---|
| 98 | } |
---|
| 99 | document.write('<\/tr>') ; |
---|
| 100 | } |
---|
| 101 | |
---|
| 102 | </script> |
---|
| 103 | </table> |
---|
| 104 | </body> |
---|
| 105 | </html> |
---|