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

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

?? fck_dialog_common.js

?? 這個寫的就更好了
?? 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 ==
 *
 * Useful functions used by almost all dialog window pages.
 * Dialogs should link to this file as the very first script on the page.
 */

// Automatically detect the correct document.domain (#123).
(function()
{
	var d = document.domain ;

	while ( true )
	{
		// Test if we can access a parent property.
		try
		{
			var test = window.parent.document.domain ;
			break ;
		}
		catch( e ) {}

		// Remove a domain part: www.mytest.example.com => mytest.example.com => example.com ...
		d = d.replace( /.*?(?:\.|$)/, '' ) ;

		if ( d.length == 0 )
			break ;		// It was not able to detect the domain.

		try
		{
			document.domain = d ;
		}
		catch (e)
		{
			break ;
		}
	}
})() ;

// Attention: FCKConfig must be available in the page.
function GetCommonDialogCss( prefix )
{
	// CSS minified by http://iceyboard.no-ip.org/projects/css_compressor
	return FCKConfig.BasePath + 'dialog/common/' + '|.ImagePreviewArea{border:#000 1px solid;overflow:auto;width:100%;height:170px;background-color:#fff}.FlashPreviewArea{border:#000 1px solid;padding:5px;overflow:auto;width:100%;height:170px;background-color:#fff}.BtnReset{float:left;background-position:center center;background-image:url(images/reset.gif);width:16px;height:16px;background-repeat:no-repeat;border:1px none;font-size:1px}.BtnLocked,.BtnUnlocked{float:left;background-position:center center;background-image:url(images/locked.gif);width:16px;height:16px;background-repeat:no-repeat;border:none 1px;font-size:1px}.BtnUnlocked{background-image:url(images/unlocked.gif)}.BtnOver{border:outset 1px;cursor:hand}' ;
}

// Gets a element by its Id. Used for shorter coding.
function GetE( elementId )
{
	return document.getElementById( elementId )  ;
}

function ShowE( element, isVisible )
{
	if ( typeof( element ) == 'string' )
		element = GetE( element ) ;
	element.style.display = isVisible ? '' : 'none' ;
}

function SetAttribute( element, attName, attValue )
{
	if ( attValue == null || attValue.length == 0 )
		element.removeAttribute( attName, 0 ) ;			// 0 : Case Insensitive
	else
		element.setAttribute( attName, attValue, 0 ) ;	// 0 : Case Insensitive
}

function GetAttribute( element, attName, valueIfNull )
{
	var oAtt = element.attributes[attName] ;

	if ( oAtt == null || !oAtt.specified )
		return valueIfNull ? valueIfNull : '' ;

	var oValue = element.getAttribute( attName, 2 ) ;

	if ( oValue == null )
		oValue = oAtt.nodeValue ;

	return ( oValue == null ? valueIfNull : oValue ) ;
}

function SelectField( elementId )
{
	var element = GetE( elementId ) ;
	element.focus() ;
	element.select() ;
}

// Functions used by text fields to accept numbers only.
var IsDigit = ( function()
	{
		var KeyIdentifierMap =
		{
			End			: 35,
			Home		: 36,
			Left		: 37,
			Right		: 39,
			'U+00007F'	: 46		// Delete
		} ;

		return function ( e )
			{
				if ( !e )
					e = event ;

				var iCode = ( e.keyCode || e.charCode ) ;

				if ( !iCode && e.keyIdentifier && ( e.keyIdentifier in KeyIdentifierMap ) )
						iCode = KeyIdentifierMap[ e.keyIdentifier ] ;

				return (
						( iCode >= 48 && iCode <= 57 )		// Numbers
						|| (iCode >= 35 && iCode <= 40)		// Arrows, Home, End
						|| iCode == 8						// Backspace
						|| iCode == 46						// Delete
						|| iCode == 9						// Tab
				) ;
			}
	} )() ;

String.prototype.Trim = function()
{
	return this.replace( /(^\s*)|(\s*$)/g, '' ) ;
}

String.prototype.StartsWith = function( value )
{
	return ( this.substr( 0, value.length ) == value ) ;
}

String.prototype.Remove = function( start, length )
{
	var s = '' ;

	if ( start > 0 )
		s = this.substring( 0, start ) ;

	if ( start + length < this.length )
		s += this.substring( start + length , this.length ) ;

	return s ;
}

String.prototype.ReplaceAll = function( searchArray, replaceArray )
{
	var replaced = this ;

	for ( var i = 0 ; i < searchArray.length ; i++ )
	{
		replaced = replaced.replace( searchArray[i], replaceArray[i] ) ;
	}

	return replaced ;
}

function OpenFileBrowser( url, width, height )
{
	// oEditor must be defined.

	var iLeft = ( oEditor.FCKConfig.ScreenWidth  - width ) / 2 ;
	var iTop  = ( oEditor.FCKConfig.ScreenHeight - height ) / 2 ;

	var sOptions = "toolbar=no,status=no,resizable=yes,dependent=yes,scrollbars=yes" ;
	sOptions += ",width=" + width ;
	sOptions += ",height=" + height ;
	sOptions += ",left=" + iLeft ;
	sOptions += ",top=" + iTop ;

	// The "PreserveSessionOnFileBrowser" because the above code could be
	// blocked by popup blockers.
	if ( oEditor.FCKConfig.PreserveSessionOnFileBrowser && oEditor.FCKBrowserInfo.IsIE )
	{
		// The following change has been made otherwise IE will open the file
		// browser on a different server session (on some cases):
		// http://support.microsoft.com/default.aspx?scid=kb;en-us;831678
		// by Simone Chiaretta.
		var oWindow = oEditor.window.open( url, 'FCKBrowseWindow', sOptions ) ;

		if ( oWindow )
		{
			// Detect Yahoo popup blocker.
			try
			{
				var sTest = oWindow.name ; // Yahoo returns "something", but we can't access it, so detect that and avoid strange errors for the user.
				oWindow.opener = window ;
			}
			catch(e)
			{
				alert( oEditor.FCKLang.BrowseServerBlocked ) ;
			}
		}
		else
			alert( oEditor.FCKLang.BrowseServerBlocked ) ;
    }
    else
		window.open( url, 'FCKBrowseWindow', sOptions ) ;
}

/**
 Utility function to create/update an element with a name attribute in IE, so it behaves properly when moved around
 It also allows to change the name or other special attributes in an existing node
	oEditor : instance of FCKeditor where the element will be created
	oOriginal : current element being edited or null if it has to be created
	nodeName : string with the name of the element to create
	oAttributes : Hash object with the attributes that must be set at creation time in IE
								Those attributes will be set also after the element has been
								created for any other browser to avoid redudant code
*/
function CreateNamedElement( oEditor, oOriginal, nodeName, oAttributes )
{
	var oNewNode ;

	// IE doesn't allow easily to change properties of an existing object,
	// so remove the old and force the creation of a new one.
	var oldNode = null ;
	if ( oOriginal && oEditor.FCKBrowserInfo.IsIE )
	{
		// Force the creation only if some of the special attributes have changed:
		var bChanged = false;
		for( var attName in oAttributes )
			bChanged |= ( oOriginal.getAttribute( attName, 2) != oAttributes[attName] ) ;

		if ( bChanged )
		{
			oldNode = oOriginal ;
			oOriginal = null ;
		}
	}

	// If the node existed (and it's not IE), then we just have to update its attributes
	if ( oOriginal )
	{
		oNewNode = oOriginal ;
	}
	else
	{
		// #676, IE doesn't play nice with the name or type attribute
		if ( oEditor.FCKBrowserInfo.IsIE )
		{
			var sbHTML = [] ;
			sbHTML.push( '<' + nodeName ) ;
			for( var prop in oAttributes )
			{
				sbHTML.push( ' ' + prop + '="' + oAttributes[prop] + '"' ) ;
			}
			sbHTML.push( '>' ) ;
			if ( !oEditor.FCKListsLib.EmptyElements[nodeName.toLowerCase()] )
				sbHTML.push( '</' + nodeName + '>' ) ;

			oNewNode = oEditor.FCK.EditorDocument.createElement( sbHTML.join('') ) ;
			// Check if we are just changing the properties of an existing node: copy its properties
			if ( oldNode )
			{
				CopyAttributes( oldNode, oNewNode, oAttributes ) ;
				oEditor.FCKDomTools.MoveChildren( oldNode, oNewNode ) ;
				oldNode.parentNode.removeChild( oldNode ) ;
				oldNode = null ;

				if ( oEditor.FCKDialog.SelectionData )
				{
					// Trick to refresh the selection object and avoid error in fckdialog.html Selection.EnsureSelection
					var oSel = oEditor.FCK.EditorDocument.selection ;
					oEditor.FCKDialog.SelectionData = oSel.createRange() ; // Now oSel.type will be 'None' reflecting the real situation
				}
			}
			oNewNode = oEditor.FCK.InsertElement( oNewNode ) ;

			// FCKDialog.SelectionData is broken by now since we've deleted the previously selected element.
			// So we need to reassign it.
			if ( oEditor.FCKDialog.SelectionData )
			{
				var range = oEditor.FCK.EditorDocument.body.createControlRange() ;
				range.add( oNewNode ) ;
				oEditor.FCKDialog.SelectionData = range ;
			}
		}
		else
		{
			oNewNode = oEditor.FCK.InsertElement( nodeName ) ;
		}
	}

	// Set the basic attributes
	for( var attName in oAttributes )
		oNewNode.setAttribute( attName, oAttributes[attName], 0 ) ;	// 0 : Case Insensitive

	return oNewNode ;
}

// Copy all the attributes from one node to the other, kinda like a clone
// But oSkipAttributes is an object with the attributes that must NOT be copied
function CopyAttributes( oSource, oDest, oSkipAttributes )
{
	var aAttributes = oSource.attributes ;

	for ( var n = 0 ; n < aAttributes.length ; n++ )
	{
		var oAttribute = aAttributes[n] ;

		if ( oAttribute.specified )
		{
			var sAttName = oAttribute.nodeName ;
			// We can set the type only once, so do it with the proper value, not copying it.
			if ( sAttName in oSkipAttributes )
				continue ;

			var sAttValue = oSource.getAttribute( sAttName, 2 ) ;
			if ( sAttValue == null )
				sAttValue = oAttribute.nodeValue ;

			oDest.setAttribute( sAttName, sAttValue, 0 ) ;	// 0 : Case Insensitive
		}
	}
	// The style:
	oDest.style.cssText = oSource.style.cssText ;
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91麻豆精品国产91久久久久久 | 国产精品69毛片高清亚洲| 国产欧美一区二区三区鸳鸯浴 | 精品久久久久久久久久久久包黑料| 懂色av噜噜一区二区三区av| 午夜精品视频在线观看| 国产精品你懂的在线欣赏| 亚洲蜜臀av乱码久久精品蜜桃| 久久av资源站| 天天综合网天天综合色| 中文字幕日韩精品一区| 欧美精品一区二| 欧美色中文字幕| 99国产精品久久久久| 国产在线一区观看| 人人超碰91尤物精品国产| 一区二区三区高清在线| 国产精品欧美极品| 久久久精品国产99久久精品芒果| 正在播放亚洲一区| 欧美在线制服丝袜| 99riav一区二区三区| 粉嫩在线一区二区三区视频| 九九视频精品免费| 日韩1区2区日韩1区2区| 天天av天天翘天天综合网| 亚洲欧洲制服丝袜| 中文字幕一区日韩精品欧美| 国产亚洲一区二区三区| 精品动漫一区二区三区在线观看| 欧洲色大大久久| 日本久久电影网| 91在线视频官网| 91一区二区三区在线观看| voyeur盗摄精品| 成人黄色777网| 成人激情综合网站| jizzjizzjizz欧美| www.亚洲激情.com| 97精品久久久久中文字幕| 99精品视频在线播放观看| 色一情一乱一乱一91av| 中文字幕高清不卡| 国产日韩视频一区二区三区| 久久午夜老司机| 中文成人综合网| 国产精品麻豆视频| 亚洲欧洲一区二区在线播放| 亚洲视频一区二区在线观看| 中文字幕永久在线不卡| 亚洲乱码中文字幕| 亚洲成人免费在线观看| 免费看欧美美女黄的网站| 久久超碰97人人做人人爱| 国产成人av一区二区| 99re亚洲国产精品| 欧美三级在线看| 欧美一级一区二区| 国产亚洲一二三区| 亚洲三级免费电影| 午夜精品福利在线| 久久成人av少妇免费| 成人黄色小视频| 欧美午夜片在线观看| 日韩免费视频一区| 中文字幕av不卡| 亚洲伊人色欲综合网| 奇米在线7777在线精品| 国产成人综合在线播放| 91在线一区二区| 欧美一级夜夜爽| 日韩一区中文字幕| 秋霞影院一区二区| 本田岬高潮一区二区三区| 欧美午夜免费电影| 国产日韩欧美精品电影三级在线| 日韩一区在线播放| 亚洲va中文字幕| 国产成人aaaa| 欧美精品日韩精品| 国产精品福利一区二区三区| 亚洲成人资源网| 成人免费视频网站在线观看| 精品视频999| 国产精品美日韩| 日韩激情视频网站| 91麻豆高清视频| 精品国产青草久久久久福利| 亚洲卡通动漫在线| 国产自产视频一区二区三区| 日本精品一区二区三区高清 | 久久久久久久久一| 亚瑟在线精品视频| 成人亚洲精品久久久久软件| 欧美精品v国产精品v日韩精品| 欧美韩日一区二区三区四区| 偷拍自拍另类欧美| 91在线码无精品| 精品剧情在线观看| 亚洲图片欧美色图| 99久久精品免费看| 久久久精品影视| 亚洲h精品动漫在线观看| 成人av在线网站| 日韩视频中午一区| 性做久久久久久久久| 91最新地址在线播放| 国产免费观看久久| 激情丁香综合五月| 91精品视频网| 午夜欧美视频在线观看| 色老汉一区二区三区| 国产精品三级在线观看| 国产在线观看免费一区| 日韩丝袜情趣美女图片| 日韩电影免费在线看| 欧美色视频在线观看| 亚洲女子a中天字幕| 成人av动漫在线| 国产日产精品一区| 国产精品1区2区| 久久亚洲一区二区三区明星换脸| 天天操天天综合网| 欧美精品日韩精品| 午夜免费欧美电影| 日韩一区二区免费高清| 亚洲一区二区在线播放相泽| 91在线视频18| 一区二区在线电影| 一本一本久久a久久精品综合麻豆| 亚洲国产电影在线观看| 国产精品18久久久久久久久| 久久综合色之久久综合| 国产一区在线精品| www久久精品| 国产精品99久久久久久久女警| 久久久久国产成人精品亚洲午夜| 国内精品国产成人国产三级粉色| 精品国一区二区三区| 精品一区二区三区不卡| 久久夜色精品国产噜噜av| 懂色av一区二区在线播放| 中文字幕不卡一区| 色综合久久久久网| 亚洲福利一二三区| 欧美妇女性影城| 久久精品国产色蜜蜜麻豆| 久久只精品国产| www.欧美日韩| 一区二区不卡在线视频 午夜欧美不卡在| 97国产精品videossex| 亚洲福利一二三区| 日韩免费视频一区| 粉嫩av一区二区三区粉嫩| 亚洲视频每日更新| 欧美视频日韩视频在线观看| 日本成人在线视频网站| 26uuu另类欧美亚洲曰本| 成人黄色软件下载| 亚洲va国产天堂va久久en| 日韩一卡二卡三卡国产欧美| 国产一区二区三区免费在线观看| 国产欧美日韩不卡免费| 色婷婷av久久久久久久| 亚洲gay无套男同| 久久综合色8888| 91丨九色丨尤物| 日本欧美一区二区在线观看| 久久久久综合网| 色综合天天性综合| 午夜激情久久久| 久久久久国产精品人| 色域天天综合网| 蜜桃av噜噜一区二区三区小说| 欧美激情一区二区三区四区| 欧美性大战久久| 国产乱人伦偷精品视频不卡| 亚洲精品国产一区二区精华液| 欧美一区二区视频免费观看| 丁香六月综合激情| 亚洲v日本v欧美v久久精品| 国产性天天综合网| 欧美性色黄大片| 国产成人自拍网| 性欧美疯狂xxxxbbbb| 国产精品免费观看视频| 欧美日本在线播放| 精品国产麻豆免费人成网站| 91毛片在线观看| 国产一区二区中文字幕| 亚洲国产色一区| 欧美国产精品v| 日韩视频在线永久播放| 91黄色免费版| 成人综合婷婷国产精品久久蜜臀| 亚洲成a天堂v人片| 亚洲欧美一区二区三区孕妇| 久久午夜羞羞影院免费观看| 这里是久久伊人| 欧美性受xxxx黑人xyx性爽|