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

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

?? fckpanel.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 ==
 *
 * Component that creates floating panels. It is used by many
 * other components, like the toolbar items, context menu, etc...
 */

var FCKPanel = function( parentWindow )
{
	this.IsRTL			= ( FCKLang.Dir == 'rtl' ) ;
	this.IsContextMenu	= false ;
	this._LockCounter	= 0 ;

	this._Window = parentWindow || window ;

	var oDocument ;

	if ( FCKBrowserInfo.IsIE )
	{
		// Create the Popup that will hold the panel.
		this._Popup	= this._Window.createPopup() ;
		oDocument = this.Document = this._Popup.document ;

		FCK.IECleanup.AddItem( this, FCKPanel_Cleanup ) ;
	}
	else
	{
		var oIFrame = this._IFrame = this._Window.document.createElement('iframe') ;
		oIFrame.src					= 'javascript:void(0)' ;
		oIFrame.allowTransparency	= true ;
		oIFrame.frameBorder			= '0' ;
		oIFrame.scrolling			= 'no' ;
		oIFrame.style.position		= 'absolute';
		oIFrame.style.zIndex		= FCKConfig.FloatingPanelsZIndex ;
		oIFrame.width = oIFrame.height = 0 ;

		if ( this._Window == window.parent && window.frameElement )
			window.frameElement.parentNode.insertBefore( oIFrame, window.frameElement ) ;
		else
			this._Window.document.body.appendChild( oIFrame ) ;

		var oIFrameWindow = oIFrame.contentWindow ;

		oDocument = this.Document = oIFrameWindow.document ;

		// Workaround for Safari 12256. Ticket #63
		var sBase = '' ;
		if ( FCKBrowserInfo.IsSafari )
			sBase = '<base href="' + window.document.location + '">' ;

		// Initialize the IFRAME document body.
		oDocument.open() ;
		oDocument.write( '<html><head>' + sBase + '<\/head><body style="margin:0px;padding:0px;"><\/body><\/html>' ) ;
		oDocument.close() ;

		FCKTools.AddEventListenerEx( oIFrameWindow, 'focus', FCKPanel_Window_OnFocus, this ) ;
		FCKTools.AddEventListenerEx( oIFrameWindow, 'blur', FCKPanel_Window_OnBlur, this ) ;
	}

	oDocument.dir = FCKLang.Dir ;

	oDocument.oncontextmenu = FCKTools.CancelEvent ;


	// Create the main DIV that is used as the panel base.
	this.MainNode = oDocument.body.appendChild( oDocument.createElement('DIV') ) ;

	// The "float" property must be set so Firefox calculates the size correcly.
	this.MainNode.style.cssFloat = this.IsRTL ? 'right' : 'left' ;
}


FCKPanel.prototype.AppendStyleSheet = function( styleSheet )
{
	FCKTools.AppendStyleSheet( this.Document, styleSheet ) ;
}

FCKPanel.prototype.Preload = function( x, y, relElement )
{
	// The offsetWidth and offsetHeight properties are not available if the
	// element is not visible. So we must "show" the popup with no size to
	// be able to use that values in the second call (IE only).
	if ( this._Popup )
		this._Popup.show( x, y, 0, 0, relElement ) ;
}

FCKPanel.prototype.Show = function( x, y, relElement, width, height )
{
	var iMainWidth ;

	if ( this._Popup )
	{
		// The offsetWidth and offsetHeight properties are not available if the
		// element is not visible. So we must "show" the popup with no size to
		// be able to use that values in the second call.
		this._Popup.show( x, y, 0, 0, relElement ) ;

		// The following lines must be place after the above "show", otherwise it
		// doesn't has the desired effect.
		this.MainNode.style.width	= width ? width + 'px' : '' ;
		this.MainNode.style.height	= height ? height + 'px' : '' ;

		iMainWidth = this.MainNode.offsetWidth ;

		if ( this.IsRTL )
		{
			if ( this.IsContextMenu )
				x  = x - iMainWidth + 1 ;
			else if ( relElement )
				x  = ( x * -1 ) + relElement.offsetWidth - iMainWidth ;
		}

		// Second call: Show the Popup at the specified location, with the correct size.
		this._Popup.show( x, y, iMainWidth, this.MainNode.offsetHeight, relElement ) ;

		if ( this.OnHide )
		{
			if ( this._Timer )
				CheckPopupOnHide.call( this, true ) ;

			this._Timer = FCKTools.SetInterval( CheckPopupOnHide, 100, this ) ;
		}
	}
	else
	{
		// Do not fire OnBlur while the panel is opened.
		if ( typeof( FCKFocusManager ) != 'undefined' )
			FCKFocusManager.Lock() ;

		if ( this.ParentPanel )
			this.ParentPanel.Lock() ;

		this.MainNode.style.width	= width ? width + 'px' : '' ;
		this.MainNode.style.height	= height ? height + 'px' : '' ;

		iMainWidth = this.MainNode.offsetWidth ;

		if ( !width )	this._IFrame.width	= 1 ;
		if ( !height )	this._IFrame.height	= 1 ;

		// This is weird... but with Firefox, we must get the offsetWidth before
		// setting the _IFrame size (which returns "0"), and then after that,
		// to return the correct width. Remove the first step and it will not
		// work when the editor is in RTL.
		iMainWidth = this.MainNode.offsetWidth ;

		var oPos = FCKTools.GetElementPosition(
			relElement.nodeType == 9 ?
				( FCKTools.IsStrictMode( relElement ) ? relElement.documentElement : relElement.body ) :
				relElement,
			this._Window ) ;

		if ( this.IsRTL && !this.IsContextMenu )
			x = ( x * -1 ) ;

		x += oPos.X ;
		y += oPos.Y ;

		if ( this.IsRTL )
		{
			if ( this.IsContextMenu )
				x  = x - iMainWidth + 1 ;
			else if ( relElement )
				x  = x + relElement.offsetWidth - iMainWidth ;
		}
		else
		{
			var oViewPaneSize = FCKTools.GetViewPaneSize( this._Window ) ;
			var oScrollPosition = FCKTools.GetScrollPosition( this._Window ) ;

			var iViewPaneHeight	= oViewPaneSize.Height + oScrollPosition.Y ;
			var iViewPaneWidth	= oViewPaneSize.Width + oScrollPosition.X ;

			if ( ( x + iMainWidth ) > iViewPaneWidth )
				x -= x + iMainWidth - iViewPaneWidth ;

			if ( ( y + this.MainNode.offsetHeight ) > iViewPaneHeight )
				y -= y + this.MainNode.offsetHeight - iViewPaneHeight ;
		}

		if ( x < 0 )
			 x = 0 ;

		// Set the context menu DIV in the specified location.
		this._IFrame.style.left	= x + 'px' ;
		this._IFrame.style.top	= y + 'px' ;

		var iWidth	= iMainWidth ;
		var iHeight	= this.MainNode.offsetHeight ;

		this._IFrame.width	= iWidth ;
		this._IFrame.height = iHeight ;

		// Move the focus to the IFRAME so we catch the "onblur".
		this._IFrame.contentWindow.focus() ;
	}

	this._IsOpened = true ;

	FCKTools.RunFunction( this.OnShow, this ) ;
}

FCKPanel.prototype.Hide = function( ignoreOnHide )
{
	if ( this._Popup )
		this._Popup.hide() ;
	else
	{
		if ( !this._IsOpened )
			return ;

		// Enable the editor to fire the "OnBlur".
		if ( typeof( FCKFocusManager ) != 'undefined' )
			FCKFocusManager.Unlock() ;

		// It is better to set the sizes to 0, otherwise Firefox would have
		// rendering problems.
		this._IFrame.width = this._IFrame.height = 0 ;

		this._IsOpened = false ;

		if ( this.ParentPanel )
			this.ParentPanel.Unlock() ;

		if ( !ignoreOnHide )
			FCKTools.RunFunction( this.OnHide, this ) ;
	}
}

FCKPanel.prototype.CheckIsOpened = function()
{
	if ( this._Popup )
		return this._Popup.isOpen ;
	else
		return this._IsOpened ;
}

FCKPanel.prototype.CreateChildPanel = function()
{
	var oWindow = this._Popup ? FCKTools.GetDocumentWindow( this.Document ) : this._Window ;

	var oChildPanel = new FCKPanel( oWindow ) ;
	oChildPanel.ParentPanel = this ;

	return oChildPanel ;
}

FCKPanel.prototype.Lock = function()
{
	this._LockCounter++ ;
}

FCKPanel.prototype.Unlock = function()
{
	if ( --this._LockCounter == 0 && !this.HasFocus )
		this.Hide() ;
}

/* Events */

function FCKPanel_Window_OnFocus( e, panel )
{
	panel.HasFocus = true ;
}

function FCKPanel_Window_OnBlur( e, panel )
{
	panel.HasFocus = false ;

	if ( panel._LockCounter == 0 )
		FCKTools.RunFunction( panel.Hide, panel ) ;
}

function CheckPopupOnHide( forceHide )
{
	if ( forceHide || !this._Popup.isOpen )
	{
		window.clearInterval( this._Timer ) ;
		this._Timer = null ;

		FCKTools.RunFunction( this.OnHide, this ) ;
	}
}

function FCKPanel_Cleanup()
{
	this._Popup = null ;
	this._Window = null ;
	this.Document = null ;
	this.MainNode = null ;
}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
99国产精品久久久久久久久久久| 国产精品网站在线观看| 97精品国产露脸对白| 国产91高潮流白浆在线麻豆 | 欧美xxxxxxxx| 精品国产三级a在线观看| 欧美放荡的少妇| 91精品国产高清一区二区三区蜜臀| 69堂国产成人免费视频| 欧美一区二区三区四区在线观看| 日韩欧美专区在线| 日韩欧美123| 国产精品水嫩水嫩| 亚洲欧美日韩国产综合在线| 亚洲午夜久久久久久久久电影院| 天天影视涩香欲综合网| 裸体在线国模精品偷拍| 成人激情综合网站| 欧美在线啊v一区| 日韩精品一区二区三区四区视频| 2021久久国产精品不只是精品| 国产精品色一区二区三区| 亚洲欧美电影一区二区| 日韩不卡一二三区| 风流少妇一区二区| 欧美久久一二区| 国产欧美综合在线观看第十页| 亚洲乱码国产乱码精品精可以看 | 国产精品一级片在线观看| 国产不卡一区视频| 欧美男女性生活在线直播观看| 精品国产免费一区二区三区香蕉| 中文字幕一区二| 美女在线视频一区| 日本黄色一区二区| 亚洲国产岛国毛片在线| 亚洲主播在线观看| 盗摄精品av一区二区三区| 欧美精品日韩一区| 国产精品久久毛片a| 久久国产精品区| 欧洲另类一二三四区| 2017欧美狠狠色| 偷拍与自拍一区| 91丨porny丨蝌蚪视频| 精品电影一区二区| 午夜私人影院久久久久| 国产成人精品午夜视频免费| 制服丝袜在线91| 亚洲欧美日韩中文字幕一区二区三区| 久久精品国产精品亚洲红杏| 91成人看片片| 亚洲色图一区二区三区| 国产suv精品一区二区三区| 日韩区在线观看| 一区二区三区四区精品在线视频| 国产69精品久久久久777| 日韩欧美精品三级| 三级成人在线视频| 欧美午夜一区二区| 亚洲最色的网站| 91在线无精精品入口| 国产亚洲精品bt天堂精选| 麻豆精品久久精品色综合| 欧美电影影音先锋| 亚洲chinese男男1069| 欧美日韩精品系列| 亚洲国产日韩精品| 欧美中文字幕久久| 亚洲成人精品在线观看| 欧美三级视频在线观看| 亚洲国产成人av好男人在线观看| 91久久线看在观草草青青| 亚洲免费伊人电影| 99久久精品免费看| 一区二区三区资源| 欧美日韩亚洲国产综合| 五月天一区二区三区| 91麻豆精品国产| 久久 天天综合| 国产亚洲成年网址在线观看| 国产乱色国产精品免费视频| 国产欧美一区二区精品性色 | 亚洲va欧美va人人爽| 欧美久久久久久久久久| 日韩成人午夜电影| 久久久激情视频| 成人av在线播放网站| 亚洲精品国产精华液| 欧美日韩情趣电影| 精品在线一区二区| 国产蜜臀97一区二区三区| 91网上在线视频| 天天综合色天天综合色h| 精品久久久久久久人人人人传媒| 国产超碰在线一区| 亚洲一区二区三区中文字幕| 欧美一二三在线| 成人福利视频在线| 亚洲成人自拍偷拍| 久久久久亚洲蜜桃| 欧美亚洲免费在线一区| 精品一区二区在线看| 亚洲日本成人在线观看| 欧美一区二区三区免费大片| 国产激情视频一区二区在线观看| 亚洲免费av高清| 26uuu欧美| 欧美亚洲综合一区| 国产乱码字幕精品高清av | 欧美日韩国产一区二区三区地区| 看电影不卡的网站| 中文字幕日韩精品一区| 3atv一区二区三区| 91浏览器在线视频| 国产在线精品一区在线观看麻豆| 一区二区三区日韩在线观看| 精品va天堂亚洲国产| 欧美日韩一区国产| 岛国精品在线观看| 美女在线视频一区| 亚洲国产成人av| 亚洲天堂免费看| 久久综合久色欧美综合狠狠| 欧美天天综合网| 99在线精品视频| 国内一区二区在线| 青青草国产成人99久久| 亚洲一区二区av在线| 亚洲色图制服诱惑| 国产精品女同一区二区三区| 日韩欧美一区在线| 欧美日韩国产电影| 欧美网站大全在线观看| 色综合久久综合| 97久久精品人人澡人人爽| 国产99久久久国产精品免费看| 美女一区二区三区在线观看| 亚洲成va人在线观看| 亚洲国产综合91精品麻豆| 18欧美亚洲精品| 国产精品视频免费| 国产喷白浆一区二区三区| 国产视频视频一区| 国产人伦精品一区二区| 欧美国产日韩亚洲一区| 国产天堂亚洲国产碰碰| 国产视频一区二区在线| 久久久久久电影| 国产欧美视频一区二区| 中文字幕欧美国产| 国产精品美女视频| 亚洲男人天堂av网| 亚洲在线观看免费视频| 亚洲成年人网站在线观看| 婷婷激情综合网| 蜜臀av性久久久久蜜臀aⅴ流畅| 日本亚洲天堂网| 久久国产生活片100| 国产激情视频一区二区在线观看 | 久草精品在线观看| 久久国产精品无码网站| 国产剧情一区在线| 国产白丝精品91爽爽久久| 91在线免费视频观看| 91捆绑美女网站| 欧美男同性恋视频网站| 日韩午夜精品电影| 精品久久久久久久久久久久久久久久久| 精品播放一区二区| 成人免费视频在线观看| 亚洲成人精品在线观看| 久久国产精品区| 97超碰欧美中文字幕| 欧美猛男男办公室激情| 久久精品人人爽人人爽| 自拍偷拍欧美激情| 日本大胆欧美人术艺术动态| 国产精品小仙女| 欧洲视频一区二区| 欧美精品一区二区三区蜜桃视频| 中文字幕成人网| 偷拍一区二区三区| 懂色av一区二区夜夜嗨| 欧美日韩免费电影| 国产日产欧美一区| 午夜精品久久久久久不卡8050| 激情综合网天天干| 在线免费亚洲电影| 久久久www成人免费无遮挡大片| 日韩理论片在线| 久久aⅴ国产欧美74aaa| 99久久99久久精品国产片果冻| 正在播放一区二区| 国产精品不卡一区二区三区| 伦理电影国产精品| 91国偷自产一区二区三区观看| 久久久蜜桃精品| 日韩在线一二三区| 91精品福利视频|