fck_smiley.html 2.4 KB

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