Subversion Repositories Applications.papyrus

Compare Revisions

Ignore whitespace Rev 1688 → Rev 1921

/branches/livraison_aha/api/fckeditor/editor/skins/_fckviewstrips.html
1,21 → 1,25
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!--
* FCKeditor - The text editor for internet
* Copyright (C) 2003-2006 Frederico Caldeira Knabben
*
* Licensed under the terms of the GNU Lesser General Public License:
* http://www.opensource.org/licenses/lgpl-license.php
*
* For further information visit:
* http://www.fckeditor.net/
*
* "Support Open Source software. What about a donation today?"
*
* File Name: _fckviewstrips.html
* Useful page that enumerates all icons in the skins strips.
*
* File Authors:
* Frederico Caldeira Knabben (fredck@fckeditor.net)
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* http://www.gnu.org/licenses/gpl.html
*
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
* http://www.gnu.org/licenses/lgpl.html
*
* - Mozilla Public License Version 1.1 or later (the "MPL")
* http://www.mozilla.org/MPL/MPL-1.1.html
*
* == END LICENSE ==
*
* Useful page that enumerates all icons in the skins strips.
-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
40,15 → 44,15
window.onload = function()
{
var eImg1 = document.createElement( 'img' ) ;
eImg1.onreadystatechange = Img_OnReadyStateChange ;
eImg1.onload = Img_OnLoad ;
eImg1.src = 'default/fck_strip.gif' ;
 
var eImg2 = document.createElement( 'img' ) ;
eImg2.onreadystatechange = Img_OnReadyStateChange ;
eImg2.onload = Img_OnLoad ;
eImg2.src = 'office2003/fck_strip.gif' ;
 
var eImg3 = document.createElement( 'img' ) ;
eImg3.onreadystatechange = Img_OnReadyStateChange ;
eImg3.onload = Img_OnLoad ;
eImg3.src = 'silver/fck_strip.gif' ;
}
 
55,43 → 59,42
var iTotalStrips = 3 ;
var iMaxHeight = 0 ;
 
function Img_OnReadyStateChange()
function Img_OnLoad()
{
if ( this.readyState == 'complete' )
{
if ( iMaxHeight < this.height )
iMaxHeight = this.height ;
iTotalStrips-- ;
if ( iTotalStrips == 0 )
LoadIcons( iMaxHeight / 16 ) ;
}
if ( iMaxHeight < this.height )
iMaxHeight = this.height ;
 
iTotalStrips-- ;
 
if ( iTotalStrips == 0 )
LoadIcons( iMaxHeight / 16 ) ;
}
 
function LoadIcons( total )
{
var xIconsTable = document.getElementById( 'xIconsTable' ) ;
 
for ( var i = 0 ; i < total ; i++ )
{
var eRow = xIconsTable.insertRow(-1) ;
 
var eCell = eRow.insertCell(-1) ;
eCell.innerHTML = i + 1 ;
 
eCell = eRow.insertCell(-1) ;
eCell.align = 'center' ;
eCell.style.border = '#dcdcdc 1px solid' ;
eCell.innerHTML = '<div class="TB_Button_Image"><img src="default/fck_strip.gif" style="top=-' + ( i * 16 ) + 'px;"></div>' ;
eCell.innerHTML = '<div class="TB_Button_Image"><img src="default/fck_strip.gif" style="top:-' + ( i * 16 ) + 'px;"><\/div>' ;
 
eCell = eRow.insertCell(-1) ;
eCell.align = 'center' ;
eCell.style.border = '#dcdcdc 1px solid' ;
eCell.innerHTML = '<div class="TB_Button_Image"><img src="office2003/fck_strip.gif" style="top=-' + ( i * 16 ) + 'px;"></div>' ;
eCell.innerHTML = '<div class="TB_Button_Image"><img src="office2003/fck_strip.gif" style="top:-' + ( i * 16 ) + 'px;"><\/div>' ;
 
eCell = eRow.insertCell(-1) ;
eCell.align = 'center' ;
eCell.style.border = '#dcdcdc 1px solid' ;
eCell.innerHTML = '<div class="TB_Button_Image"><img src="silver/fck_strip.gif" style="top=-' + ( i * 16 ) + 'px;"></div>' ;
eCell.innerHTML = '<div class="TB_Button_Image"><img src="silver/fck_strip.gif" style="top:-' + ( i * 16 ) + 'px;"><\/div>' ;
}
}