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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? fckpanel.js

?? 這是一個BBS系統
?? JS
字號:
?/*
 * 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 ==
 *
 * 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.
		// The popup has to be created before playing with domain hacks, see #1666.
		this._Popup	= this._Window.createPopup() ;

		// this._Window cannot be accessed while playing with domain hacks, but local variable is ok.
		// See #1666.
		var pDoc = this._Window.document ;

		// This is a trick to IE6 (not IE7). The original domain must be set
		// before creating the popup, so we are able to take a refence to the
		// document inside of it, and the set the proper domain for it. (#123)
		if ( FCK_IS_CUSTOM_DOMAIN && !FCKBrowserInfo.IsIE7 )
		{
			pDoc.domain = FCK_ORIGINAL_DOMAIN ;
			document.domain = FCK_ORIGINAL_DOMAIN ;
		}

		oDocument = this.Document = this._Popup.document ;

		// Set the proper domain inside the popup.
		if ( FCK_IS_CUSTOM_DOMAIN )
		{
			oDocument.domain = FCK_RUNTIME_DOMAIN ;
			pDoc.domain = FCK_RUNTIME_DOMAIN ;
			document.domain = FCK_RUNTIME_DOMAIN ;
		}

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

		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() ;

		if( FCKBrowserInfo.IsAIR )
			FCKAdobeAIR.Panel_Contructor( oDocument, window.document.location ) ;

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

	oDocument.dir = FCKLang.Dir ;

	FCKTools.AddEventListener( oDocument, 'contextmenu', 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 correctly.
	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 ;
	var eMainNode = this.MainNode ;

	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.
		FCKDomTools.SetElementStyles( eMainNode,
			{
				width	: width ? width + 'px' : '',
				height	: height ? height + 'px' : ''
			} ) ;

		iMainWidth = eMainNode.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, eMainNode.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( FCK.ToolbarSet.CurrentInstance.FocusManager ) != 'undefined' )
			FCK.ToolbarSet.CurrentInstance.FocusManager.Lock() ;

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

			// Due to a bug on FF3, we must ensure that the parent panel will
			// blur (#1584).
			FCKPanel_Window_OnBlur( null, this.ParentPanel ) ;
		}

		// Toggle the iframe scrolling attribute to prevent the panel
		// scrollbars from disappearing in FF Mac. (#191)
		if ( FCKBrowserInfo.IsGecko && FCKBrowserInfo.IsMac )
		{
			this._IFrame.scrolling = '' ;
			FCKTools.RunFunction( function(){ this._IFrame.scrolling = 'no'; }, this ) ;
		}

		// Be sure we'll not have more than one Panel opened at the same time.
		// Do not unlock focus manager here because we're displaying another floating panel
		// instead of returning the editor to a "no panel" state (Bug #1514).
		if ( FCK.ToolbarSet.CurrentInstance.GetInstanceObject( 'FCKPanel' )._OpenedPanel &&
				FCK.ToolbarSet.CurrentInstance.GetInstanceObject( 'FCKPanel' )._OpenedPanel != this )
			FCK.ToolbarSet.CurrentInstance.GetInstanceObject( 'FCKPanel' )._OpenedPanel.Hide( false, true ) ;

		FCKDomTools.SetElementStyles( eMainNode,
			{
				width	: width ? width + 'px' : '',
				height	: height ? height + 'px' : ''
			} ) ;

		iMainWidth = eMainNode.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.
		//
		// The "|| eMainNode.firstChild.offsetWidth" part has been added
		// for Opera compatibility (see #570).
		iMainWidth = eMainNode.offsetWidth || eMainNode.firstChild.offsetWidth ;

		// Base the popup coordinates upon the coordinates of relElement.
		var oPos = FCKTools.GetDocumentPosition( this._Window,
			relElement.nodeType == 9 ?
				( FCKTools.IsStrictMode( relElement ) ? relElement.documentElement : relElement.body ) :
				relElement ) ;

		// Minus the offsets provided by any positioned parent element of the panel iframe.
		var positionedAncestor = FCKDomTools.GetPositionedAncestor( this._IFrame.parentNode ) ;
		if ( positionedAncestor )
		{
			var nPos = FCKTools.GetDocumentPosition( FCKTools.GetElementWindow( positionedAncestor ), positionedAncestor ) ;
			oPos.x -= nPos.x ;
			oPos.y -= nPos.y ;
		}

		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 + eMainNode.offsetHeight ) > iViewPaneHeight )
				y -= y + eMainNode.offsetHeight - iViewPaneHeight ;
		}

		// Set the context menu DIV in the specified location.
		FCKDomTools.SetElementStyles( this._IFrame,
			{
				left	: x + 'px',
				top		: y + 'px'
			} ) ;

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

		var me = this ;
		this._resizeTimer = setTimeout( function()
			{
				var iWidth = eMainNode.offsetWidth || eMainNode.firstChild.offsetWidth ;
				var iHeight = eMainNode.offsetHeight ;
				me._IFrame.style.width = iWidth + 'px' ;
				me._IFrame.style.height = iHeight + 'px' ;

			}, 0 ) ;

		FCK.ToolbarSet.CurrentInstance.GetInstanceObject( 'FCKPanel' )._OpenedPanel = this ;
	}

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

FCKPanel.prototype.Hide = function( ignoreOnHide, ignoreFocusManagerUnlock )
{
	if ( this._Popup )
		this._Popup.hide() ;
	else
	{
		if ( !this._IsOpened || this._LockCounter > 0 )
			return ;

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

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

		this._IsOpened = false ;

		if ( this._resizeTimer )
		{
			clearTimeout( this._resizeTimer ) ;
			this._resizeTimer = null ;
		}

		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 ;
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产午夜精品久久久久久免费视| 懂色一区二区三区免费观看| 国产清纯白嫩初高生在线观看91| 色婷婷av一区二区三区之一色屋| 日韩国产精品久久| 一区二区三区免费在线观看| 久久综合九色综合久久久精品综合| 欧美日本高清视频在线观看| 成人美女视频在线看| 成人高清视频在线| 不卡的av中国片| 9i在线看片成人免费| 99久久免费国产| 色婷婷av一区二区三区大白胸| aaa国产一区| 国产一区二区三区香蕉| 国产真实乱子伦精品视频| 国产乱码精品一品二品| 国产91丝袜在线播放0| 国产aⅴ综合色| 一本色道综合亚洲| 欧美麻豆精品久久久久久| 久久精品亚洲一区二区三区浴池| 亚洲色大成网站www久久九九| 亚洲高清视频的网址| 国产成人免费视频网站高清观看视频| 91在线视频在线| 久久精品一区二区| 免费国产亚洲视频| 欧美精品乱码久久久久久按摩| 国产日本一区二区| 韩国精品一区二区| 制服丝袜亚洲播放| 香蕉av福利精品导航| 色综合天天综合狠狠| 国产精品乱码久久久久久| 亚洲成人综合网站| 欧美精品在线一区二区三区| 一区二区三区精品在线| 91亚洲国产成人精品一区二区三 | 精品88久久久久88久久久 | 91亚洲国产成人精品一区二区三| 国产午夜一区二区三区| 国产成人免费av在线| 2欧美一区二区三区在线观看视频 337p粉嫩大胆噜噜噜噜噜91av | 91国偷自产一区二区三区成为亚洲经典 | 国产精品久久久久久久第一福利| 国产一区二区导航在线播放| 久久一区二区三区四区| 国产一区不卡精品| 国产精品久久久久久久久久免费看| 国产精品亚洲第一区在线暖暖韩国| 日韩欧美久久久| 成人av先锋影音| 日本不卡123| 欧美三级日韩在线| 久久精品噜噜噜成人88aⅴ| 精品国产凹凸成av人网站| 成人午夜在线视频| 亚洲激情av在线| 日韩精品一区二区三区三区免费| 国模少妇一区二区三区| 国产精品免费看片| 91精品在线观看入口| 成人中文字幕电影| 日本欧美一区二区三区乱码| 国产色一区二区| 欧美成人一区二区三区| 97成人超碰视| 99re热这里只有精品视频| 国产老妇另类xxxxx| 国产精品剧情在线亚洲| 成人性生交大片免费看中文| 亚洲一区二区三区四区五区中文| 精品国产3级a| 色婷婷av久久久久久久| 国产精品自在在线| 精东粉嫩av免费一区二区三区| 一区二区三区精品在线| 亚洲日本丝袜连裤袜办公室| 久久精品视频网| 久久一夜天堂av一区二区三区| 欧美一区二区三区系列电影| av日韩在线网站| 成人午夜精品在线| 懂色av一区二区夜夜嗨| 精品一区二区影视| 国产一区91精品张津瑜| 玖玖九九国产精品| 极品美女销魂一区二区三区免费 | 国产一区二区三区四区五区入口 | 欧美一区二区三区婷婷月色| 7777精品伊人久久久大香线蕉的| 91高清视频在线| 欧美精品vⅰdeose4hd| 日韩欧美激情在线| 亚洲国产精华液网站w| 国产精品久久久久影院| 亚洲精品菠萝久久久久久久| 亚洲精品高清在线| 欧美a级一区二区| 日本91福利区| 成人精品视频一区二区三区尤物| 成人在线视频一区| 欧美日韩在线播放三区四区| 91精品国产黑色紧身裤美女| 久久精品亚洲精品国产欧美 | 欧美日韩精品欧美日韩精品| 欧美巨大另类极品videosbest| 精品国产一区久久| 亚洲免费观看在线视频| 日本v片在线高清不卡在线观看| 国产精品一区二区x88av| 91福利社在线观看| 久久精品夜色噜噜亚洲aⅴ| 亚洲成a人在线观看| a级精品国产片在线观看| 欧美一区二区三区喷汁尤物| 国产精品高潮呻吟| 国内久久精品视频| 欧美日韩精品三区| 亚洲国产一区二区视频| 成人av免费观看| 国产精品美女久久久久久久| 蜜臀av一级做a爰片久久| 在线视频欧美精品| 亚洲综合一区二区精品导航| 国产宾馆实践打屁股91| 久久久亚洲综合| 国产不卡视频一区| 国产喷白浆一区二区三区| 久久成人精品无人区| 日韩欧美国产1| 国产精品一区免费在线观看| 久久亚洲精品小早川怜子| 久久成人免费网站| 精品免费国产一区二区三区四区| 免费一级片91| www国产精品av| 成人免费不卡视频| 亚洲欧美日本韩国| 欧美精品777| 国产一区二区中文字幕| 国产精品欧美久久久久无广告 | 日韩视频一区二区在线观看| 天天综合日日夜夜精品| 日韩一区二区三区电影 | 正在播放一区二区| 精品一区二区三区在线播放视频| 久久久美女毛片| 91福利视频网站| 国产成人精品在线看| 一区二区成人在线视频| 欧美成人伊人久久综合网| 成人福利视频在线| 男男视频亚洲欧美| 中文字幕亚洲欧美在线不卡| 欧美日韩精品综合在线| 成人午夜av影视| 美女在线视频一区| 亚洲综合清纯丝袜自拍| 中文字幕精品在线不卡| 91精品国产综合久久香蕉的特点| 国产**成人网毛片九色| 日日夜夜精品视频天天综合网| 久久精子c满五个校花| 日韩精品在线网站| 欧美精品久久一区| 91福利国产成人精品照片| 国产成a人亚洲精| 老司机一区二区| 久久精品99久久久| 免费不卡在线观看| 五月激情六月综合| 亚州成人在线电影| 亚洲国产精品久久久久秋霞影院| 亚洲视频图片小说| 综合欧美一区二区三区| 亚洲色欲色欲www| 亚洲伦理在线精品| 亚洲成a人片在线不卡一二三区| 亚洲最大成人综合| 天天操天天干天天综合网| 亚洲风情在线资源站| 日韩成人dvd| 久久精品国产亚洲a| 国产精品亚洲一区二区三区妖精 | 综合久久国产九一剧情麻豆| 久久精品视频免费| 亚洲靠逼com| 亚洲v日本v欧美v久久精品| 香蕉成人伊视频在线观看| 免费观看久久久4p| 国产成人aaaa| 欧美日韩国产首页| 国产女人18毛片水真多成人如厕| 中文字幕一区二区不卡| 天天影视网天天综合色在线播放| 国产呦萝稀缺另类资源| 日本精品一区二区三区四区的功能|