[ Index ] |
|
Code source de vtiger CRM 5.0.2 |
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: fcktoolbar.js 14 * FCKToolbar Class: represents a toolbar. A toolbar is not the complete 15 * toolbar set visible, but just a strip on it... a group of items. 16 * 17 * File Authors: 18 * Frederico Caldeira Knabben (fredck@fckeditor.net) 19 */ 20 21 var FCKToolbar = function() 22 { 23 this.Items = new Array() ; 24 25 var e = this.DOMTable = document.createElement( 'table' ) ; 26 e.className = 'TB_Toolbar' ; 27 28 // Sets the toolbar direction. IE uses "styleFloat" and Gecko uses "cssFloat". 29 e.style.styleFloat = e.style.cssFloat = FCKLang.Dir == 'rtl' ? 'right' : 'left' ; 30 31 e.cellPadding = 0 ; 32 e.cellSpacing = 0 ; 33 e.border = 0 ; 34 35 this.DOMRow = e.insertRow(-1) ; 36 37 var oCell = this.DOMRow.insertCell(-1) ; 38 oCell.className = 'TB_Start' ; 39 oCell.innerHTML = '<img src="' + FCKConfig.SkinPath + 'images/toolbar.start.gif" width="7" height="21" style="VISIBILITY: hidden" onload="this.style.visibility = \'\';">' ; 40 41 FCKToolbarSet.DOMElement.appendChild( e ) ; 42 } 43 44 FCKToolbar.prototype.AddItem = function( toolbarItem ) 45 { 46 this.Items[ this.Items.length ] = toolbarItem ; 47 toolbarItem.CreateInstance( this ) ; 48 } 49 50 FCKToolbar.prototype.AddSeparator = function() 51 { 52 var oCell = this.DOMRow.insertCell(-1) ; 53 oCell.innerHTML = '<img src="' + FCKConfig.SkinPath + 'images/toolbar.separator.gif" width="5" height="21" style="VISIBILITY: hidden" onload="this.style.visibility = \'\';">' ; 54 } 55 56 FCKToolbar.prototype.AddTerminator = function() 57 { 58 var oCell = this.DOMRow.insertCell(-1) ; 59 oCell.className = 'TB_End' ; 60 oCell.innerHTML = '<img src="' + FCKConfig.SkinPath + 'images/toolbar.end.gif" width="12" height="21" style="VISIBILITY: hidden" onload="this.style.visibility = \'\';">' ; 61 }
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 10:22:19 2007 | par Balluche grâce à PHPXref 0.7 |