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

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

?? fckpanel.js

?? java web網(wǎng)絡(luò)編程示例,原代碼資源
?? JS
字號:
?/*
 * 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 ;

		// Initialize the IFRAME document body.
		oDocument.open() ;
		oDocument.write( '<html><head></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, true ) ;
	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
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91精品免费在线观看| 91麻豆精品国产91| 青青草97国产精品免费观看无弹窗版 | 亚洲国产成人自拍| 国产成人免费av在线| 中文字幕精品综合| 久久久亚洲午夜电影| aaa亚洲精品一二三区| 亚洲黄色av一区| 欧美美女直播网站| 亚洲天堂精品视频| 欧美日韩三级视频| 国产精品综合一区二区| 亚洲免费观看高清完整版在线观看| 欧美探花视频资源| 国产91精品精华液一区二区三区| 亚洲资源在线观看| 精品国内二区三区| 欧美图片一区二区三区| 在线不卡a资源高清| 日韩欧美国产系列| 欧美中文字幕一区二区三区| 国产一区二三区| 午夜电影久久久| 亚洲欧洲韩国日本视频| 日韩欧美黄色影院| 国产精品久久久久久久久图文区| 欧美一级欧美三级在线观看 | 国产精品久久久久久久岛一牛影视 | 美女在线一区二区| 亚洲国产视频一区| 亚洲欧洲综合另类| 日韩高清一区在线| 三级一区在线视频先锋 | 国产欧美一区二区三区在线老狼| 欧美日韩黄色影视| 精品1区2区在线观看| 亚洲丝袜制服诱惑| 久草精品在线观看| 日本美女一区二区三区| 风间由美一区二区三区在线观看| 欧美三级中文字| 国产日本欧洲亚洲| 青青草91视频| 欧美专区日韩专区| 亚洲欧洲精品成人久久奇米网| 蜜臀久久99精品久久久久久9| 99精品欧美一区二区蜜桃免费| 国产盗摄一区二区三区| 欧美日韩精品二区第二页| 中文字幕第一区第二区| 日本成人在线电影网| 在线观看一区二区视频| 中文乱码免费一区二区| 国产精品五月天| 精品一区二区三区在线观看| 欧美丝袜丝交足nylons图片| 中文字幕一区三区| 国产一区91精品张津瑜| 日韩一区国产二区欧美三区| 国产视频视频一区| 亚洲色图20p| 风流少妇一区二区| 国产午夜精品久久久久久久| 激情综合五月婷婷| 欧美www视频| 国产女人18毛片水真多成人如厕| 同产精品九九九| 欧美久久一区二区| 亚洲国产精品麻豆| 欧美日韩一区二区三区在线| 亚洲一区二区视频| 欧美偷拍一区二区| 亚洲成人在线免费| 免费看日韩a级影片| 欧美日韩国产精品自在自线| 亚洲精品中文在线| 欧美色图12p| 日韩电影在线观看一区| 欧美一级理论片| 日本女优在线视频一区二区| 日韩欧美一级二级三级| 久久av资源站| 91黄色免费观看| 日韩三级在线观看| 美女尤物国产一区| 久久嫩草精品久久久久| 国产成人综合在线观看| 国产精品视频你懂的| 99视频精品在线| 亚洲国产aⅴ天堂久久| 欧美一三区三区四区免费在线看| 日韩电影一二三区| 2020日本不卡一区二区视频| 一区二区三区色| 国产suv一区二区三区88区| 国产亚洲一区二区三区在线观看| 国产91丝袜在线播放| 亚洲欧美日韩国产成人精品影院| 在线免费一区三区| 蜜桃久久av一区| 国产精品麻豆99久久久久久| 欧美色男人天堂| 精品一二三四在线| 最近中文字幕一区二区三区| 欧美三级在线视频| 国产91综合一区在线观看| 日韩一区中文字幕| 欧美大片一区二区三区| 成人激情视频网站| 国产精品高潮久久久久无| 在线观看日韩一区| 国产精品一区在线观看你懂的| 综合婷婷亚洲小说| 精品国产乱码91久久久久久网站| 99免费精品在线观看| 日韩电影一区二区三区四区| 国产精品色在线观看| 日韩欧美一级在线播放| 91丨porny丨蝌蚪视频| 亚洲欧洲av在线| 日韩欧美不卡一区| 91丨国产丨九色丨pron| 国产精品伊人色| 亚洲第一久久影院| 亚洲欧美视频在线观看视频| 久久久久久久久久美女| 6080yy午夜一二三区久久| 白白色 亚洲乱淫| 国内精品免费**视频| 久久一区二区三区四区| 欧美男男青年gay1069videost| proumb性欧美在线观看| 极品瑜伽女神91| 天天操天天色综合| 亚洲激情男女视频| 国产精品美女视频| 国产日产亚洲精品系列| 精品国产99国产精品| 日韩一区二区免费高清| 欧美视频中文字幕| 欧美三级蜜桃2在线观看| av不卡在线观看| 99re66热这里只有精品3直播| 国产一区二区三区精品视频| 久久99热这里只有精品| 亚洲尤物在线视频观看| 亚洲另类中文字| 一区二区免费在线| 亚洲一区二区三区影院| 亚洲一区二区中文在线| 亚洲一区二区三区三| 亚洲自拍都市欧美小说| 亚洲午夜日本在线观看| 亚洲一线二线三线视频| 亚洲在线免费播放| 三级成人在线视频| 日日噜噜夜夜狠狠视频欧美人 | 国产精品久久久久久久午夜片 | 99免费精品在线| 91视频精品在这里| 欧美亚洲综合一区| 欧美日韩视频在线第一区| 欧美日韩国产影片| 欧美一二三区精品| 国产日产欧美一区二区三区 | 欧美精品三级日韩久久| 欧美高清视频一二三区| 日韩午夜精品电影| 久久久久久一二三区| 亚洲欧美综合另类在线卡通| 一卡二卡三卡日韩欧美| 日韩高清中文字幕一区| 国产精品一区二区视频| aaa欧美色吧激情视频| 欧美视频在线一区二区三区| 欧美精品在线一区二区三区| 欧美不卡一二三| 亚洲视频一区二区在线观看| 亚洲第一福利一区| 国模冰冰炮一区二区| 99久久777色| 日韩欧美一级二级三级久久久| 国产三区在线成人av| 亚洲国产精品精华液网站 | 亚洲国产精品激情在线观看| 亚洲美女一区二区三区| 美女视频一区二区三区| 99re8在线精品视频免费播放| 欧美日韩免费观看一区二区三区| 欧美大片国产精品| 亚洲男人都懂的| 国产一区二区三区免费看| 在线视频一区二区免费| 久久无码av三级| 亚洲成人7777| av电影一区二区| 国产日韩欧美综合在线| 午夜激情一区二区| 99热精品一区二区|