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

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

?? fckpanel.js

?? 強大的個人日志系統(tǒng),界面華麗
?? 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一区二区三区免费野_久草精品视频
欧美日韩aaaaa| 91福利国产精品| 成人高清免费在线播放| 欧美日韩国产色站一区二区三区| 亚洲精品一区在线观看| 一区二区三区**美女毛片| 激情图片小说一区| 欧美精品日韩精品| 亚洲免费av高清| 粉嫩久久99精品久久久久久夜| 91精品在线观看入口| 亚洲精品欧美在线| 99麻豆久久久国产精品免费优播| 精品久久久久久久久久久久包黑料 | 免费看欧美美女黄的网站| 99久久免费国产| 国产亚洲制服色| 国内外成人在线视频| 宅男在线国产精品| 亚洲图片欧美色图| 欧美性色综合网| 一区二区三区视频在线观看| 99re在线精品| 综合久久久久综合| 不卡一区二区在线| 国产精品电影一区二区| 国产成人午夜视频| 亚洲国产精品精华液2区45| 精品亚洲国产成人av制服丝袜| 欧美军同video69gay| 午夜免费久久看| 制服丝袜中文字幕亚洲| 国产一区二区福利视频| 日韩亚洲欧美在线观看| 看国产成人h片视频| 精品国产乱码久久久久久浪潮 | 亚洲最大的成人av| av电影在线不卡| 一区av在线播放| 欧美日韩激情一区二区三区| 日本久久一区二区三区| 久久免费精品国产久精品久久久久| 舔着乳尖日韩一区| 91精品福利在线一区二区三区| 蜜臀av性久久久久蜜臀av麻豆| 91精品国产91热久久久做人人| 黄色精品一二区| 国产精品国产三级国产aⅴ中文 | 日本不卡视频在线| 日韩一二三四区| 国产一区二区免费看| 中文字幕一区二区三区蜜月| 91视频免费看| 日本美女一区二区三区| 久久久久99精品一区| 97精品国产露脸对白| 亚洲成av人片一区二区梦乃| 日韩欧美国产三级电影视频| 91蜜桃在线观看| 成人免费一区二区三区在线观看| 91麻豆福利精品推荐| 天堂在线亚洲视频| 久久先锋影音av| 在线免费观看不卡av| 精品在线亚洲视频| 亚洲欧洲色图综合| 日韩三级免费观看| 成人精品视频一区二区三区尤物| 亚洲一区二区三区自拍| 精品88久久久久88久久久| 91偷拍与自偷拍精品| 日韩中文欧美在线| 国产精品视频免费| 91精品欧美久久久久久动漫| 国产69精品久久777的优势| 五月综合激情日本mⅴ| 国产欧美精品国产国产专区| 欧美日本在线看| av激情成人网| 国产一区二区三区免费播放| 一卡二卡三卡日韩欧美| 国产日韩欧美一区二区三区乱码| 6080日韩午夜伦伦午夜伦| 国产成人一级电影| 日韩和欧美一区二区三区| 国产精品久久久久久久久免费樱桃| 欧美精选午夜久久久乱码6080| 不卡的av中国片| 国内成人免费视频| 捆绑调教一区二区三区| 国产另类ts人妖一区二区| 国产精品美女久久久久久2018| 欧美xxx久久| 欧美一级片免费看| 欧美最猛黑人xxxxx猛交| 高清不卡一二三区| 国产乱一区二区| 久久黄色级2电影| 热久久国产精品| 亚洲 欧美综合在线网络| 亚洲图片你懂的| 国产精品久久久久久久久久久免费看 | 男女男精品视频| 亚洲午夜视频在线观看| 亚洲日本丝袜连裤袜办公室| 国产欧美一区二区精品久导航| 日韩精品中文字幕一区| 91精品免费在线观看| 制服丝袜亚洲色图| 日韩一区二区三区四区| 欧美人xxxx| 91精品国产欧美日韩| 欧美一区二区三区四区五区| 制服丝袜一区二区三区| 欧美精品在线一区二区| 9191国产精品| 91官网在线观看| 日本一区二区三区四区在线视频| 日韩免费福利电影在线观看| 日韩视频不卡中文| 欧美不卡激情三级在线观看| 精品国产亚洲在线| 国产亚洲一二三区| 国产精品午夜电影| 综合中文字幕亚洲| 亚洲第一成年网| 蜜桃久久久久久| 黑人精品欧美一区二区蜜桃| 国产高清亚洲一区| 99久久精品国产一区二区三区 | 毛片av中文字幕一区二区| 奇米色一区二区| 国产精品456露脸| 97精品国产露脸对白| 欧美精品一级二级| 久久这里都是精品| 亚洲三级视频在线观看| 亚洲一区二区三区国产| 久久精品久久综合| bt欧美亚洲午夜电影天堂| 91国产免费观看| 精品国产乱码久久久久久久久| 国产精品女人毛片| 亚洲成人黄色影院| 国产麻豆成人精品| 欧洲一区二区三区在线| 精品国产一区二区三区久久久蜜月 | 亚洲国产成人精品视频| 狠狠色狠狠色合久久伊人| 国产 日韩 欧美大片| 欧美视频在线观看一区二区| 26uuu另类欧美亚洲曰本| 亚洲日本成人在线观看| 免费高清在线视频一区·| 成人精品视频一区二区三区| 欧美精品aⅴ在线视频| 国产亚洲综合性久久久影院| 亚洲一区影音先锋| 国产乱理伦片在线观看夜一区| 亚洲精品一线二线三线无人区| 成人欧美一区二区三区1314| 免费视频最近日韩| 欧美综合在线视频| 欧美激情在线看| 精东粉嫩av免费一区二区三区| 欧美在线观看一区| 国产免费久久精品| 免费成人在线网站| 在线视频欧美精品| 中文字幕 久热精品 视频在线 | av色综合久久天堂av综合| 91精品蜜臀在线一区尤物| 国产欧美日韩在线看| 美女网站色91| 在线观看91精品国产麻豆| 自拍偷拍欧美精品| 国产成人av电影| 26uuu欧美| 精品一区二区三区久久| 欧美日韩精品系列| 一区二区成人在线| 99久精品国产| 国产精品激情偷乱一区二区∴| 九色综合狠狠综合久久| 欧美精选午夜久久久乱码6080| 一区二区三区国产| 91色乱码一区二区三区| 国产精品国产三级国产普通话三级| 韩国av一区二区三区四区| 欧美一区三区四区| 午夜欧美在线一二页| 欧美日韩在线播放| 日韩中文字幕不卡| 在线不卡免费av| 天天亚洲美女在线视频| 欧美午夜不卡在线观看免费| 亚洲线精品一区二区三区| 91丨九色丨蝌蚪丨老版| 亚洲手机成人高清视频| av在线综合网|