_fckviewstrips.html 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  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-2010 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. * Useful page that enumerates all icons in the skins strips.
  23. -->
  24. <html xmlns="http://www.w3.org/1999/xhtml">
  25. <head>
  26. <title>FCKeditor - View Icons Strips</title>
  27. <style type="text/css">
  28. .TB_Button_Image
  29. {
  30. overflow: hidden;
  31. width: 16px;
  32. height: 16px;
  33. margin: 3px;
  34. background-repeat: no-repeat;
  35. }
  36. .TB_Button_Image img
  37. {
  38. position: relative;
  39. }
  40. </style>
  41. <script type="text/javascript">
  42. window.onload = function()
  43. {
  44. var eImg1 = document.createElement( 'img' ) ;
  45. eImg1.onload = Img_OnLoad ;
  46. eImg1.src = 'default/fck_strip.gif' ;
  47. var eImg2 = document.createElement( 'img' ) ;
  48. eImg2.onload = Img_OnLoad ;
  49. eImg2.src = 'office2003/fck_strip.gif' ;
  50. var eImg3 = document.createElement( 'img' ) ;
  51. eImg3.onload = Img_OnLoad ;
  52. eImg3.src = 'silver/fck_strip.gif' ;
  53. }
  54. var iTotalStrips = 3 ;
  55. var iMaxHeight = 0 ;
  56. function Img_OnLoad()
  57. {
  58. if ( iMaxHeight < this.height )
  59. iMaxHeight = this.height ;
  60. iTotalStrips-- ;
  61. if ( iTotalStrips == 0 )
  62. LoadIcons( iMaxHeight / 16 ) ;
  63. }
  64. function LoadIcons( total )
  65. {
  66. var xIconsTable = document.getElementById( 'xIconsTable' ) ;
  67. for ( var i = 0 ; i < total ; i++ )
  68. {
  69. var eRow = xIconsTable.insertRow(-1) ;
  70. var eCell = eRow.insertCell(-1) ;
  71. eCell.innerHTML = i + 1 ;
  72. eCell = eRow.insertCell(-1) ;
  73. eCell.align = 'center' ;
  74. eCell.style.border = '#dcdcdc 1px solid' ;
  75. eCell.innerHTML = '<div class="TB_Button_Image"><img src="default/fck_strip.gif" style="top:-' + ( i * 16 ) + 'px;"><\/div>' ;
  76. eCell = eRow.insertCell(-1) ;
  77. eCell.align = 'center' ;
  78. eCell.style.border = '#dcdcdc 1px solid' ;
  79. eCell.innerHTML = '<div class="TB_Button_Image"><img src="office2003/fck_strip.gif" style="top:-' + ( i * 16 ) + 'px;"><\/div>' ;
  80. eCell = eRow.insertCell(-1) ;
  81. eCell.align = 'center' ;
  82. eCell.style.border = '#dcdcdc 1px solid' ;
  83. eCell.innerHTML = '<div class="TB_Button_Image"><img src="silver/fck_strip.gif" style="top:-' + ( i * 16 ) + 'px;"><\/div>' ;
  84. }
  85. }
  86. </script>
  87. </head>
  88. <body>
  89. <table id="xIconsTable">
  90. <tr>
  91. <td rowspan="2">
  92. Index</td>
  93. <td align="center" colspan="3">
  94. Skins</td>
  95. </tr>
  96. <tr>
  97. <td width="80" align="center">
  98. default</td>
  99. <td width="80" align="center">
  100. office2003</td>
  101. <td width="80" align="center">
  102. silver</td>
  103. </tr>
  104. </table>
  105. </body>
  106. </html>