Subversion Repositories Applications.papyrus

Rev

Rev 1688 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1688 Rev 1921
Line 1... Line 1...
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2
<!--
2
<!--
3
 * FCKeditor - The text editor for internet
3
 * FCKeditor - The text editor for Internet - http://www.fckeditor.net
4
 * Copyright (C) 2003-2006 Frederico Caldeira Knabben
4
 * Copyright (C) 2003-2008 Frederico Caldeira Knabben
-
 
5
 *
-
 
6
 * == BEGIN LICENSE ==
5
 * 
7
 *
6
 * Licensed under the terms of the GNU Lesser General Public License:
8
 * Licensed under the terms of any of the following licenses at your
7
 * 		http://www.opensource.org/licenses/lgpl-license.php
9
 * choice:
8
 * 
10
 *
9
 * For further information visit:
11
 *  - GNU General Public License Version 2 or later (the "GPL")
10
 * 		http://www.fckeditor.net/
12
 *    http://www.gnu.org/licenses/gpl.html
11
 * 
13
 *
12
 * "Support Open Source software. What about a donation today?"
14
 *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
-
 
15
 *    http://www.gnu.org/licenses/lgpl.html
13
 * 
16
 *
14
 * File Name: _fckviewstrips.html
17
 *  - Mozilla Public License Version 1.1 or later (the "MPL")
15
 * 	Useful page that enumerates all icons in the skins strips.
18
 *    http://www.mozilla.org/MPL/MPL-1.1.html
16
 * 
19
 *
17
 * File Authors:
20
 * == END LICENSE ==
-
 
21
 *
18
 * 		Frederico Caldeira Knabben (fredck@fckeditor.net)
22
 * Useful page that enumerates all icons in the skins strips.
19
-->
23
-->
20
<html xmlns="http://www.w3.org/1999/xhtml">
24
<html xmlns="http://www.w3.org/1999/xhtml">
21
<head>
25
<head>
22
	<title>FCKeditor - View Icons Strips</title>
26
	<title>FCKeditor - View Icons Strips</title>
23
	<style type="text/css">
27
	<style type="text/css">
Line 38... Line 42...
38
	<script type="text/javascript">
42
	<script type="text/javascript">
Line 39... Line 43...
39
 
43
 
40
window.onload = function()
44
window.onload = function()
41
{
45
{
42
	var eImg1 = document.createElement( 'img' ) ;
46
	var eImg1 = document.createElement( 'img' ) ;
43
	eImg1.onreadystatechange = Img_OnReadyStateChange ;
47
	eImg1.onload = Img_OnLoad ;
Line 44... Line 48...
44
	eImg1.src = 'default/fck_strip.gif' ;
48
	eImg1.src = 'default/fck_strip.gif' ;
45
 
49
 
46
	var eImg2 = document.createElement( 'img' ) ;
50
	var eImg2 = document.createElement( 'img' ) ;
Line 47... Line 51...
47
	eImg2.onreadystatechange = Img_OnReadyStateChange ;
51
	eImg2.onload = Img_OnLoad ;
48
	eImg2.src = 'office2003/fck_strip.gif' ;
52
	eImg2.src = 'office2003/fck_strip.gif' ;
49
 
53
 
50
	var eImg3 = document.createElement( 'img' ) ;
54
	var eImg3 = document.createElement( 'img' ) ;
Line 51... Line 55...
51
	eImg3.onreadystatechange = Img_OnReadyStateChange ;
55
	eImg3.onload = Img_OnLoad ;
52
	eImg3.src = 'silver/fck_strip.gif' ;
56
	eImg3.src = 'silver/fck_strip.gif' ;
Line 53... Line 57...
53
}
57
}
54
 
58
 
55
var iTotalStrips = 3 ;
-
 
56
var iMaxHeight = 0 ;
-
 
57
 
59
var iTotalStrips = 3 ;
58
function Img_OnReadyStateChange()
60
var iMaxHeight = 0 ;
59
{
61
 
60
	if ( this.readyState == 'complete' )
62
function Img_OnLoad()
61
	{
63
{
62
		if ( iMaxHeight < this.height )
64
	if ( iMaxHeight < this.height )
63
			iMaxHeight = this.height ;
65
		iMaxHeight = this.height ;
64
		
-
 
65
		iTotalStrips-- ;
66
 
Line 66... Line 67...
66
		
67
	iTotalStrips-- ;
67
		if ( iTotalStrips == 0 )
68
 
-
 
69
	if ( iTotalStrips == 0 )
-
 
70
		LoadIcons( iMaxHeight / 16 ) ;
68
			LoadIcons( iMaxHeight / 16 ) ;
71
}
69
	}
72
 
70
}
73
function LoadIcons( total )
71
 
74
{
72
function LoadIcons( total )
75
	var xIconsTable = document.getElementById( 'xIconsTable' ) ;
73
{
76
 
74
	for ( var i = 0 ; i < total ; i++ )
77
	for ( var i = 0 ; i < total ; i++ )
75
	{
78
	{
76
		var eRow = xIconsTable.insertRow(-1) ;
79
		var eRow = xIconsTable.insertRow(-1) ;
77
		
80
 
78
		var eCell = eRow.insertCell(-1) ;
81
		var eCell = eRow.insertCell(-1) ;
Line 79... Line 82...
79
		eCell.innerHTML = i + 1 ;
82
		eCell.innerHTML = i + 1 ;
80
		
83
 
81
		eCell = eRow.insertCell(-1) ;
84
		eCell = eRow.insertCell(-1) ;
82
		eCell.align = 'center' ;
85
		eCell.align = 'center' ;
Line 83... Line 86...
83
		eCell.style.border = '#dcdcdc 1px solid' ;
86
		eCell.style.border = '#dcdcdc 1px solid' ;
84
		eCell.innerHTML = '<div class="TB_Button_Image"><img src="default/fck_strip.gif" style="top=-' + ( i * 16 ) + 'px;"></div>' ;
87
		eCell.innerHTML = '<div class="TB_Button_Image"><img src="default/fck_strip.gif" style="top:-' + ( i * 16 ) + 'px;"><\/div>' ;
85
 
88
 
86
		eCell = eRow.insertCell(-1) ;
89
		eCell = eRow.insertCell(-1) ;
87
		eCell.align = 'center' ;
90
		eCell.align = 'center' ;
88
		eCell.style.border = '#dcdcdc 1px solid' ;
91
		eCell.style.border = '#dcdcdc 1px solid' ;
Line 89... Line 92...
89
		eCell.innerHTML = '<div class="TB_Button_Image"><img src="office2003/fck_strip.gif" style="top=-' + ( i * 16 ) + 'px;"></div>' ;
92
		eCell.innerHTML = '<div class="TB_Button_Image"><img src="office2003/fck_strip.gif" style="top:-' + ( i * 16 ) + 'px;"><\/div>' ;
90
 
93