亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? fckspecialcombo.js

?? J2EE——BBS項(xiàng)目
?? JS
字號(hào):
?/*
 * FCKeditor - The text editor for Internet - http://www.fckeditor.net
 * Copyright (C) 2003-2007 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 ==
 *
 * FCKSpecialCombo Class: represents a special combo.
 */

var FCKSpecialCombo = function( caption, fieldWidth, panelWidth, panelMaxHeight, parentWindow )
{
	// Default properties values.
	this.FieldWidth		= fieldWidth || 100 ;
	this.PanelWidth		= panelWidth || 150 ;
	this.PanelMaxHeight	= panelMaxHeight || 150 ;
	this.Label			= ' ' ;
	this.Caption		= caption ;
	this.Tooltip		= caption ;
	this.Style			= FCK_TOOLBARITEM_ICONTEXT ;

	this.Enabled = true ;

	this.Items = new Object() ;

	this._Panel = new FCKPanel( parentWindow || window ) ;
	this._Panel.AppendStyleSheet( FCKConfig.SkinPath + 'fck_editor.css' ) ;
	this._PanelBox = this._Panel.MainNode.appendChild( this._Panel.Document.createElement( 'DIV' ) ) ;
	this._PanelBox.className = 'SC_Panel' ;
	this._PanelBox.style.width = this.PanelWidth + 'px' ;

	this._PanelBox.innerHTML = '<table cellpadding="0" cellspacing="0" width="100%" style="TABLE-LAYOUT: fixed"><tr><td nowrap></td></tr></table>' ;

	this._ItemsHolderEl = this._PanelBox.getElementsByTagName('TD')[0] ;

	if ( FCK.IECleanup )
		FCK.IECleanup.AddItem( this, FCKSpecialCombo_Cleanup ) ;

//	this._Panel.StyleSheet = FCKConfig.SkinPath + 'fck_contextmenu.css' ;
//	this._Panel.Create() ;
//	this._Panel.PanelDiv.className += ' SC_Panel' ;
//	this._Panel.PanelDiv.innerHTML = '<table cellpadding="0" cellspacing="0" width="100%" style="TABLE-LAYOUT: fixed"><tr><td nowrap></td></tr></table>' ;
//	this._ItemsHolderEl = this._Panel.PanelDiv.getElementsByTagName('TD')[0] ;
}

function FCKSpecialCombo_ItemOnMouseOver()
{
	this.className += ' SC_ItemOver' ;
}

function FCKSpecialCombo_ItemOnMouseOut()
{
	this.className = this.originalClass ;
}

function FCKSpecialCombo_ItemOnClick()
{
	this.className = this.originalClass ;

	this.FCKSpecialCombo._Panel.Hide() ;

	this.FCKSpecialCombo.SetLabel( this.FCKItemLabel ) ;

	if ( typeof( this.FCKSpecialCombo.OnSelect ) == 'function' )
		this.FCKSpecialCombo.OnSelect( this.FCKItemID, this ) ;
}

FCKSpecialCombo.prototype.AddItem = function( id, html, label, bgColor )
{
	// <div class="SC_Item" onmouseover="this.className='SC_Item SC_ItemOver';" onmouseout="this.className='SC_Item';"><b>Bold 1</b></div>
	var oDiv = this._ItemsHolderEl.appendChild( this._Panel.Document.createElement( 'DIV' ) ) ;
	oDiv.className = oDiv.originalClass = 'SC_Item' ;
	oDiv.innerHTML = html ;
	oDiv.FCKItemID = id ;
	oDiv.FCKItemLabel = label || id ;
	oDiv.FCKSpecialCombo = this ;
	oDiv.Selected = false ;

	// In IE, the width must be set so the borders are shown correctly when the content overflows.
	if ( FCKBrowserInfo.IsIE )
		oDiv.style.width = '100%' ;

	if ( bgColor )
		oDiv.style.backgroundColor = bgColor ;

	oDiv.onmouseover	= FCKSpecialCombo_ItemOnMouseOver ;
	oDiv.onmouseout		= FCKSpecialCombo_ItemOnMouseOut ;
	oDiv.onclick		= FCKSpecialCombo_ItemOnClick ;

	this.Items[ id.toString().toLowerCase() ] = oDiv ;

	return oDiv ;
}

FCKSpecialCombo.prototype.SelectItem = function( itemId )
{
	itemId = itemId ? itemId.toString().toLowerCase() : '' ;

	var oDiv = this.Items[ itemId ] ;
	if ( oDiv )
	{
		oDiv.className = oDiv.originalClass = 'SC_ItemSelected' ;
		oDiv.Selected = true ;
	}
}

FCKSpecialCombo.prototype.SelectItemByLabel = function( itemLabel, setLabel )
{
	for ( var id in this.Items )
	{
		var oDiv = this.Items[id] ;

		if ( oDiv.FCKItemLabel == itemLabel )
		{
			oDiv.className = oDiv.originalClass = 'SC_ItemSelected' ;
			oDiv.Selected = true ;

			if ( setLabel )
				this.SetLabel( itemLabel ) ;
		}
	}
}

FCKSpecialCombo.prototype.DeselectAll = function( clearLabel )
{
	for ( var i in this.Items )
	{
		this.Items[i].className = this.Items[i].originalClass = 'SC_Item' ;
		this.Items[i].Selected = false ;
	}

	if ( clearLabel )
		this.SetLabel( '' ) ;
}

FCKSpecialCombo.prototype.SetLabelById = function( id )
{
	id = id ? id.toString().toLowerCase() : '' ;

	var oDiv = this.Items[ id ] ;
	this.SetLabel( oDiv ? oDiv.FCKItemLabel : '' ) ;
}

FCKSpecialCombo.prototype.SetLabel = function( text )
{
	this.Label = text.length == 0 ? '&nbsp;' : text ;

	if ( this._LabelEl )
	{
		this._LabelEl.innerHTML = this.Label ;

		// It may happen that the label is some HTML, including tags. This
		// would be a problem because when the user click on those tags, the
		// combo will get the selection from the editing area. So we must
		// disable any kind of selection here.
		FCKTools.DisableSelection( this._LabelEl ) ;
	}
}

FCKSpecialCombo.prototype.SetEnabled = function( isEnabled )
{
	this.Enabled = isEnabled ;

	this._OuterTable.className = isEnabled ? '' : 'SC_FieldDisabled' ;
}

FCKSpecialCombo.prototype.Create = function( targetElement )
{
	var oDoc = FCKTools.GetElementDocument( targetElement ) ;
	var eOuterTable = this._OuterTable = targetElement.appendChild( oDoc.createElement( 'TABLE' ) ) ;
	eOuterTable.cellPadding = 0 ;
	eOuterTable.cellSpacing = 0 ;

	eOuterTable.insertRow(-1) ;

	var sClass ;
	var bShowLabel ;

	switch ( this.Style )
	{
		case FCK_TOOLBARITEM_ONLYICON :
			sClass = 'TB_ButtonType_Icon' ;
			bShowLabel = false;
			break ;
		case FCK_TOOLBARITEM_ONLYTEXT :
			sClass = 'TB_ButtonType_Text' ;
			bShowLabel = false;
			break ;
		case FCK_TOOLBARITEM_ICONTEXT :
			bShowLabel = true;
			break ;
	}

	if ( this.Caption && this.Caption.length > 0 && bShowLabel )
	{
		var oCaptionCell = eOuterTable.rows[0].insertCell(-1) ;
		oCaptionCell.innerHTML = this.Caption ;
		oCaptionCell.className = 'SC_FieldCaption' ;
	}

	// Create the main DIV element.
	var oField = FCKTools.AppendElement( eOuterTable.rows[0].insertCell(-1), 'div' ) ;
	if ( bShowLabel )
	{
		oField.className = 'SC_Field' ;
		oField.style.width = this.FieldWidth + 'px' ;
		oField.innerHTML = '<table width="100%" cellpadding="0" cellspacing="0" style="TABLE-LAYOUT: fixed;"><tbody><tr><td class="SC_FieldLabel"><label>&nbsp;</label></td><td class="SC_FieldButton">&nbsp;</td></tr></tbody></table>' ;

		this._LabelEl = oField.getElementsByTagName('label')[0] ;		// Memory Leak
		this._LabelEl.innerHTML = this.Label ;
	}
	else
	{
		oField.className = 'TB_Button_Off' ;
		//oField.innerHTML = '<span className="SC_FieldCaption">' + this.Caption + '<table cellpadding="0" cellspacing="0" style="TABLE-LAYOUT: fixed;"><tbody><tr><td class="SC_FieldButton" style="border-left: none;">&nbsp;</td></tr></tbody></table>' ;
		//oField.innerHTML = '<table cellpadding="0" cellspacing="0" style="TABLE-LAYOUT: fixed;"><tbody><tr><td class="SC_FieldButton" style="border-left: none;">&nbsp;</td></tr></tbody></table>' ;

		// Gets the correct CSS class to use for the specified style (param).
		oField.innerHTML = '<table title="' + this.Tooltip + '" class="' + sClass + '" cellspacing="0" cellpadding="0" border="0">' +
				'<tr>' +
					//'<td class="TB_Icon"><img src="' + FCKConfig.SkinPath + 'toolbar/' + this.Command.Name.toLowerCase() + '.gif" width="21" height="21"></td>' +
					'<td><img class="TB_Button_Padding" src="' + FCK_SPACER_PATH + '" /></td>' +
					'<td class="TB_Text">' + this.Caption + '</td>' +
					'<td><img class="TB_Button_Padding" src="' + FCK_SPACER_PATH + '" /></td>' +
					'<td class="TB_ButtonArrow"><img src="' + FCKConfig.SkinPath + 'images/toolbar.buttonarrow.gif" width="5" height="3"></td>' +
					'<td><img class="TB_Button_Padding" src="' + FCK_SPACER_PATH + '" /></td>' +
				'</tr>' +
			'</table>' ;
	}


	// Events Handlers

	oField.SpecialCombo = this ;

	oField.onmouseover	= FCKSpecialCombo_OnMouseOver ;
	oField.onmouseout	= FCKSpecialCombo_OnMouseOut ;
	oField.onclick		= FCKSpecialCombo_OnClick ;

	FCKTools.DisableSelection( this._Panel.Document.body ) ;
}

function FCKSpecialCombo_Cleanup()
{
	this._LabelEl = null ;
	this._OuterTable = null ;
	this._ItemsHolderEl = null ;
	this._PanelBox = null ;

	if ( this.Items )
	{
		for ( var key in this.Items )
			this.Items[key] = null ;
	}
}

function FCKSpecialCombo_OnMouseOver()
{
	if ( this.SpecialCombo.Enabled )
	{
		switch ( this.SpecialCombo.Style )
		{
		case FCK_TOOLBARITEM_ONLYICON :
			this.className = 'TB_Button_On_Over';
			break ;
		case FCK_TOOLBARITEM_ONLYTEXT :
			this.className = 'TB_Button_On_Over';
			break ;
		case FCK_TOOLBARITEM_ICONTEXT :
			this.className = 'SC_Field SC_FieldOver' ;
			break ;
		}
	}
}

function FCKSpecialCombo_OnMouseOut()
{
	switch ( this.SpecialCombo.Style )
	{
		case FCK_TOOLBARITEM_ONLYICON :
			this.className = 'TB_Button_Off';
			break ;
		case FCK_TOOLBARITEM_ONLYTEXT :
			this.className = 'TB_Button_Off';
			break ;
		case FCK_TOOLBARITEM_ICONTEXT :
			this.className='SC_Field' ;
			break ;
	}
}

function FCKSpecialCombo_OnClick( e )
{
	// For Mozilla we must stop the event propagation to avoid it hiding
	// the panel because of a click outside of it.
//	if ( e )
//	{
//		e.stopPropagation() ;
//		FCKPanelEventHandlers.OnDocumentClick( e ) ;
//	}

	var oSpecialCombo = this.SpecialCombo ;

	if ( oSpecialCombo.Enabled )
	{
		var oPanel			= oSpecialCombo._Panel ;
		var oPanelBox		= oSpecialCombo._PanelBox ;
		var oItemsHolder	= oSpecialCombo._ItemsHolderEl ;
		var iMaxHeight		= oSpecialCombo.PanelMaxHeight ;

		if ( oSpecialCombo.OnBeforeClick )
			oSpecialCombo.OnBeforeClick( oSpecialCombo ) ;

		// This is a tricky thing. We must call the "Load" function, otherwise
		// it will not be possible to retrieve "oItemsHolder.offsetHeight" (IE only).
		if ( FCKBrowserInfo.IsIE )
			oPanel.Preload( 0, this.offsetHeight, this ) ;

		if ( oItemsHolder.offsetHeight > iMaxHeight )
//		{
			oPanelBox.style.height = iMaxHeight + 'px' ;

//			if ( FCKBrowserInfo.IsGecko )
//				oPanelBox.style.overflow = '-moz-scrollbars-vertical' ;
//		}
		else
			oPanelBox.style.height = '' ;

//		oPanel.PanelDiv.style.width = oSpecialCombo.PanelWidth + 'px' ;

		oPanel.Show( 0, this.offsetHeight, this ) ;
	}

//	return false ;
}

/*
Sample Combo Field HTML output:

<div class="SC_Field" style="width: 80px;">
	<table width="100%" cellpadding="0" cellspacing="0" style="table-layout: fixed;">
		<tbody>
			<tr>
				<td class="SC_FieldLabel"><label>&nbsp;</label></td>
				<td class="SC_FieldButton">&nbsp;</td>
			</tr>
		</tbody>
	</table>
</div>
*/

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
中文字幕一区二区日韩精品绯色| 99久久免费精品高清特色大片| 久久青草欧美一区二区三区| 国产成人丝袜美腿| 日韩电影在线看| 国产精品欧美久久久久一区二区| 91福利在线导航| 国产精品午夜免费| 精品久久免费看| 精品国产sm最大网站| 精品久久久久久最新网址| 国产乱人伦偷精品视频不卡| 欧美国产97人人爽人人喊| 欧美日韩国产高清一区二区三区 | 老司机午夜精品| 国产精品欧美一级免费| 91精品国产91热久久久做人人| 一本色道综合亚洲| 国产麻豆成人传媒免费观看| 亚洲自拍偷拍欧美| 亚洲色欲色欲www在线观看| 久久午夜老司机| 日韩精品一区二区三区四区视频| 色噜噜狠狠色综合中国| eeuss国产一区二区三区| 国产91综合一区在线观看| 国产成人精品免费| 成人一区二区三区中文字幕| 国产在线看一区| 国产91在线看| 99久久久无码国产精品| 高清日韩电视剧大全免费| 国产一区二区三区精品视频| 另类小说一区二区三区| 七七婷婷婷婷精品国产| 日韩福利电影在线| 久久精品久久综合| 国内一区二区在线| 99久久99久久精品免费看蜜桃| 成人av影院在线| 91国偷自产一区二区使用方法| 在线看不卡av| 7878成人国产在线观看| 精品国产免费一区二区三区四区 | 欧美日韩三级视频| 日韩一区二区三区视频在线观看 | 制服丝袜亚洲网站| 欧美mv和日韩mv的网站| 中文字幕二三区不卡| 18涩涩午夜精品.www| 亚洲宅男天堂在线观看无病毒| 欧美a一区二区| 成人av网址在线| 日韩一级片在线播放| 国产亚洲一区二区在线观看| 国产色产综合色产在线视频 | 亚洲午夜国产一区99re久久| 性感美女极品91精品| 成人伦理片在线| 精品处破学生在线二十三| 日韩久久一区二区| 毛片av中文字幕一区二区| 国产精品影音先锋| 91免费观看国产| 国产精品久久久久久久久图文区| 亚洲自拍偷拍欧美| 亚洲欧美日韩电影| 亚洲亚洲精品在线观看| 亚洲欧美日韩国产一区二区三区| 国产精品久久久久婷婷二区次| 日韩精品电影一区亚洲| 国产精品久久久久久久久动漫| jizzjizzjizz欧美| 久久91精品国产91久久小草| 亚洲综合免费观看高清完整版在线| 国产日韩欧美精品电影三级在线| 欧美一区二区性放荡片| www.爱久久.com| 国产精品久久久久一区二区三区| 亚洲精品一区二区三区影院| 五月激情综合网| 成人a免费在线看| 欧美性猛片aaaaaaa做受| 久久综合99re88久久爱| 国产一区二区三区免费观看| 日本高清不卡一区| 成人欧美一区二区三区在线播放| 亚洲视频在线一区| 七七婷婷婷婷精品国产| 欧美伦理影视网| 亚洲综合色在线| av在线不卡电影| 久久久精品天堂| 激情欧美一区二区三区在线观看| 欧美一级搡bbbb搡bbbb| 日韩高清在线观看| 2017欧美狠狠色| 福利一区在线观看| 欧美精品一区在线观看| 成人性生交大片免费看在线播放 | 一区二区视频免费在线观看| 884aa四虎影成人精品一区| 亚洲影院免费观看| 欧美色偷偷大香| 高清不卡在线观看av| 洋洋av久久久久久久一区| 欧美男女性生活在线直播观看| 五月天激情综合网| 中文字幕第一区| 欧美色图激情小说| 国产一区二区三区电影在线观看 | 91丝袜美腿高跟国产极品老师| 肉丝袜脚交视频一区二区| 欧洲av在线精品| 免费在线观看成人| 亚洲日本丝袜连裤袜办公室| 91精品国产欧美一区二区18| 高清成人在线观看| 久久精品国产久精国产| 国产精品久久久久一区| 日韩免费性生活视频播放| 色猫猫国产区一区二在线视频| 国产成人av一区二区| 男人的天堂久久精品| 一区二区久久久| 亚洲色图自拍偷拍美腿丝袜制服诱惑麻豆| 亚洲精品一区二区精华| 欧美岛国在线观看| 欧美日韩一区二区三区在线看 | 亚洲韩国一区二区三区| 国产精品成人一区二区三区夜夜夜| ww亚洲ww在线观看国产| 精品国产一二三| 久久一区二区三区国产精品| 日韩午夜中文字幕| 亚洲精品在线一区二区| 精品国产免费人成电影在线观看四季| 欧美日韩国产免费一区二区| 色欧美日韩亚洲| 91精品国产综合久久婷婷香蕉| 337p亚洲精品色噜噜狠狠| 欧美一区午夜精品| 26uuu久久天堂性欧美| 亚洲视频免费在线观看| 一区二区在线观看视频在线观看| 一区二区三区四区视频精品免费| 亚洲免费在线看| 国产一区二区三区免费播放| 粉嫩一区二区三区在线看| 色8久久精品久久久久久蜜| 欧美一级理论性理论a| 久久久久久久综合| 亚洲欧美日韩国产综合| 午夜精品视频一区| 成人午夜激情影院| 91麻豆精品久久久久蜜臀 | 欧美精品日韩综合在线| 日本电影欧美片| 久久精品一级爱片| 免播放器亚洲一区| 成人国产在线观看| 日韩欧美区一区二| 亚洲人成伊人成综合网小说| 美洲天堂一区二卡三卡四卡视频 | 丝袜亚洲另类丝袜在线| 青青草原综合久久大伊人精品优势 | 国产亚洲精品福利| 一区二区三区欧美视频| 国产69精品久久99不卡| 成人国产精品免费观看视频| 欧美成人一区二区三区在线观看 | 亚洲超碰精品一区二区| 成人高清av在线| 精品久久五月天| 亚洲欧美日韩国产一区二区三区| 国产一区二区三区不卡在线观看 | 日韩亚洲欧美成人一区| 婷婷夜色潮精品综合在线| 色8久久人人97超碰香蕉987| 国产清纯白嫩初高生在线观看91 | 国产一区二区女| 欧美精品久久一区二区三区| 亚洲午夜久久久久久久久电影网| 成人美女在线视频| 亚洲色图欧洲色图婷婷| 91视频在线观看| 偷拍日韩校园综合在线| 91.xcao| 久久精品国产色蜜蜜麻豆| 在线一区二区三区四区五区| 亚洲蜜臀av乱码久久精品蜜桃| 99精品国产热久久91蜜凸| 中文久久乱码一区二区| 91久久香蕉国产日韩欧美9色| 日韩成人一区二区| 欧美成人激情免费网| 日韩精品色哟哟| 欧美一级一区二区| www.欧美日韩| 亚洲少妇中出一区|