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

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

?? fckstyle.js

?? 這是一個BBS系統(tǒng)
?? JS
?? 第 1 頁 / 共 4 頁
字號:

									/*jsl:fallthru*/

								default :
									FCKDomTools.RemoveAttribute( currentNode, att ) ;
							}
						}
					}
				}
				else
					mayRemove = !!styleOverrides[ elementName ] ;

				if ( mayRemove )
				{
					// Remove overrides defined to the same element name.
					this._RemoveOverrides( currentNode, styleOverrides[ elementName ] ) ;

					// Remove the element if no more attributes are available.
					this._RemoveNoAttribElement( currentNode ) ;
				}
			}

			// If we have reached the end of the selection, stop looping.
			if ( nextNode == endNode )
				break ;

			currentNode = nextNode ;
		}

		this._FixBookmarkStart( startNode ) ;

		// Re-select the original range.
		if ( selectIt )
			range.SelectBookmark( bookmark ) ;

		if ( updateRange )
			range.MoveToBookmark( bookmark ) ;
	},

	/**
	 * Checks if an element, or any of its attributes, is removable by the
	 * current style definition.
	 */
	CheckElementRemovable : function( element, fullMatch )
	{
		if ( !element )
			return false ;

		var elementName = element.nodeName.toLowerCase() ;

		// If the element name is the same as the style name.
		if ( elementName == this.Element )
		{
			// If no attributes are defined in the element.
			if ( !fullMatch && !FCKDomTools.HasAttributes( element ) )
				return true ;

			// If any attribute conflicts with the style attributes.
			var attribs = this._GetAttribsForComparison() ;
			var allMatched = ( attribs._length == 0 ) ;
			for ( var att in attribs )
			{
				if ( att == '_length' )
					continue ;

				if ( this._CompareAttributeValues( att, FCKDomTools.GetAttributeValue( element, att ), ( this.GetFinalAttributeValue( att ) || '' ) ) )
				{
					allMatched = true ;
					if ( !fullMatch )
						break ;
				}
				else
				{
					allMatched = false ;
					if ( fullMatch )
						return false ;
				}
			}
			if ( allMatched )
				return true ;
		}

		// Check if the element can be somehow overriden.
		var override = this._GetOverridesForComparison()[ elementName ] ;
		if ( override )
		{
			// If no attributes have been defined, remove the element.
			if ( !( attribs = override.Attributes ) ) // Only one "="
				return true ;

			for ( var i = 0 ; i < attribs.length ; i++ )
			{
				var attName = attribs[i][0] ;
				if ( FCKDomTools.HasAttribute( element, attName ) )
				{
					var attValue = attribs[i][1] ;

					// Remove the attribute if:
					//    - The override definition value is null ;
					//    - The override definition valie is a string that
					//      matches the attribute value exactly.
					//    - The override definition value is a regex that
					//      has matches in the attribute value.
					if ( attValue == null ||
							( typeof attValue == 'string' && FCKDomTools.GetAttributeValue( element, attName ) == attValue ) ||
							attValue.test( FCKDomTools.GetAttributeValue( element, attName ) ) )
						return true ;
				}
			}
		}

		return false ;
	},

	/**
	 * Get the style state for an element path. Returns "true" if the element
	 * is active in the path.
	 */
	CheckActive : function( elementPath )
	{
		switch ( this.GetType() )
		{
			case FCK_STYLE_BLOCK :
				return this.CheckElementRemovable( elementPath.Block || elementPath.BlockLimit, true ) ;

			case FCK_STYLE_INLINE :

				var elements = elementPath.Elements ;

				for ( var i = 0 ; i < elements.length ; i++ )
				{
					var element = elements[i] ;

					if ( element == elementPath.Block || element == elementPath.BlockLimit )
						continue ;

					if ( this.CheckElementRemovable( element, true ) )
						return true ;
				}
		}
		return false ;
	},

	/**
	 * Removes an inline style from inside an element tree. The element node
	 * itself is not checked or removed, only the child tree inside of it.
	 */
	RemoveFromElement : function( element )
	{
		var attribs = this._GetAttribsForComparison() ;
		var overrides = this._GetOverridesForComparison() ;

		// Get all elements with the same name.
		var innerElements = element.getElementsByTagName( this.Element ) ;

		for ( var i = innerElements.length - 1 ; i >= 0 ; i-- )
		{
			var innerElement = innerElements[i] ;

			// Remove any attribute that conflict with this style, no matter
			// their values.
			for ( var att in attribs )
			{
				if ( FCKDomTools.HasAttribute( innerElement, att ) )
				{
					switch ( att )
					{
						case 'style' :
							this._RemoveStylesFromElement( innerElement ) ;
							break ;

						case 'class' :
							// The 'class' element value must match (#1318).
							if ( FCKDomTools.GetAttributeValue( innerElement, att ) != this.GetFinalAttributeValue( att ) )
								continue ;

							/*jsl:fallthru*/

						default :
							FCKDomTools.RemoveAttribute( innerElement, att ) ;
					}
				}
			}

			// Remove overrides defined to the same element name.
			this._RemoveOverrides( innerElement, overrides[ this.Element ] ) ;

			// Remove the element if no more attributes are available.
			this._RemoveNoAttribElement( innerElement ) ;
		}

		// Now remove any other element with different name that is
		// defined to be overriden.
		for ( var overrideElement in overrides )
		{
			if ( overrideElement != this.Element )
			{
				// Get all elements.
				innerElements = element.getElementsByTagName( overrideElement ) ;

				for ( var i = innerElements.length - 1 ; i >= 0 ; i-- )
				{
					var innerElement = innerElements[i] ;
					this._RemoveOverrides( innerElement, overrides[ overrideElement ] ) ;
					this._RemoveNoAttribElement( innerElement ) ;
				}
			}
		}
	},

	_RemoveStylesFromElement : function( element )
	{
		var elementStyle = element.style.cssText ;
		var pattern = this.GetFinalStyleValue() ;

		if ( elementStyle.length > 0 && pattern.length == 0 )
			return ;

		pattern = '(^|;)\\s*(' +
			pattern.replace( /\s*([^ ]+):.*?(;|$)/g, '$1|' ).replace( /\|$/, '' ) +
			'):[^;]+' ;

		var regex = new RegExp( pattern, 'gi' ) ;

		elementStyle = elementStyle.replace( regex, '' ).Trim() ;

		if ( elementStyle.length == 0 || elementStyle == ';' )
			FCKDomTools.RemoveAttribute( element, 'style' ) ;
		else
			element.style.cssText = elementStyle.replace( regex, '' ) ;
	},

	/**
	 * Remove all attributes that are defined to be overriden,
	 */
	_RemoveOverrides : function( element, override )
	{
		var attributes = override && override.Attributes ;

		if ( attributes )
		{
			for ( var i = 0 ; i < attributes.length ; i++ )
			{
				var attName = attributes[i][0] ;

				if ( FCKDomTools.HasAttribute( element, attName ) )
				{
					var attValue	= attributes[i][1] ;

					// Remove the attribute if:
					//    - The override definition value is null ;
					//    - The override definition valie is a string that
					//      matches the attribute value exactly.
					//    - The override definition value is a regex that
					//      has matches in the attribute value.
					if ( attValue == null ||
							( attValue.test && attValue.test( FCKDomTools.GetAttributeValue( element, attName ) ) ) ||
							( typeof attValue == 'string' && FCKDomTools.GetAttributeValue( element, attName ) == attValue ) )
						FCKDomTools.RemoveAttribute( element, attName ) ;
				}
			}
		}
	},

	/**
	 * If the element has no more attributes, remove it.
	 */
	_RemoveNoAttribElement : function( element )
	{
		// If no more attributes remained in the element, remove it,
		// leaving its children.
		if ( !FCKDomTools.HasAttributes( element ) )
		{
			// Removing elements may open points where merging is possible,
			// so let's cache the first and last nodes for later checking.
			var firstChild	= element.firstChild ;
			var lastChild	= element.lastChild ;

			FCKDomTools.RemoveNode( element, true ) ;

			// Check the cached nodes for merging.
			this._MergeSiblings( firstChild ) ;

			if ( firstChild != lastChild )
				this._MergeSiblings( lastChild ) ;
		}
	},

	/**
	 * Creates a DOM element for this style object.
	 */
	BuildElement : function( targetDoc, element )
	{
		// Create the element.
		var el = element || targetDoc.createElement( this.Element ) ;

		// Assign all defined attributes.
		var attribs	= this._StyleDesc.Attributes ;
		var attValue ;
		if ( attribs )
		{
			for ( var att in attribs )
			{
				attValue = this.GetFinalAttributeValue( att ) ;

				if ( att.toLowerCase() == 'class' )
					el.className = attValue ;
				else
					el.setAttribute( att, attValue ) ;
			}
		}

		// Assign the style attribute.
		if ( this._GetStyleText().length > 0 )
			el.style.cssText = this.GetFinalStyleValue() ;

		return el ;
	},

	_CompareAttributeValues : function( attName, valueA, valueB )
	{
		if ( attName == 'style' && valueA && valueB )
		{
			valueA = valueA.replace( /;$/, '' ).toLowerCase() ;
			valueB = valueB.replace( /;$/, '' ).toLowerCase() ;
		}

		// Return true if they match or if valueA is null and valueB is an empty string
		return ( valueA == valueB || ( ( valueA === null || valueA === '' ) && ( valueB === null || valueB === '' ) ) )
	},

	GetFinalAttributeValue : function( attName )
	{
		var attValue = this._StyleDesc.Attributes ;
		var attValue = attValue ? attValue[ attName ] : null ;

		if ( !attValue && attName == 'style' )
			return this.GetFinalStyleValue() ;

		if ( attValue && this._Variables )
			// Using custom Replace() to guarantee the correct scope.
			attValue = attValue.Replace( FCKRegexLib.StyleVariableAttName, this._GetVariableReplace, this ) ;

		return attValue ;
	},

	GetFinalStyleValue : function()
	{
		var attValue = this._GetStyleText() ;

		if ( attValue.length > 0 && this._Variables )
		{
			// Using custom Replace() to guarantee the correct scope.
			attValue = attValue.Replace( FCKRegexLib.StyleVariableAttName, this._GetVariableReplace, this ) ;
			attValue = FCKTools.NormalizeCssText( attValue ) ;
		}

		return attValue ;
	},

	_GetVariableReplace : function()
	{
		// The second group in the regex is the variable name.
		return this._Variables[ arguments[2] ] || arguments[0] ;
	},

	/**
	 * Set the value of a variable attribute or style, to be used when
	 * appliying the style.
	 */
	SetVariable : function( name, value )
	{
		var variables = this._Variables ;

		if ( !variables )
			variables = this._Variables = {} ;

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久国产人妖系列| 亚洲欧美一区二区视频| 久久久精品黄色| 成人欧美一区二区三区白人| 亚洲一区二区欧美日韩| 黑人巨大精品欧美黑白配亚洲| 国产91精品精华液一区二区三区 | 欧美午夜寂寞影院| 欧美一区二区视频免费观看| 中文字幕av资源一区| 亚洲第一激情av| 国产精品一色哟哟哟| 欧美中文字幕一区| 久久亚洲综合av| 一区二区三区产品免费精品久久75| 免费久久99精品国产| av在线不卡网| 日韩欧美一卡二卡| 亚洲三级电影全部在线观看高清| 美女爽到高潮91| 色综合久久88色综合天天免费| 日韩免费观看2025年上映的电影 | 91色乱码一区二区三区| 91精品国产91久久久久久最新毛片 | 依依成人精品视频| 国产在线观看一区二区| 欧美三级资源在线| 国产精品色一区二区三区| 奇米精品一区二区三区在线观看| 不卡的看片网站| 日韩精品一区二区三区蜜臀| 一区二区三区四区五区视频在线观看| 美女看a上一区| 91电影在线观看| 欧美经典一区二区三区| 青娱乐精品视频在线| 在线观看日韩一区| 国产精品乱人伦中文| 精品一二三四区| 欧美一区二区在线播放| 亚洲制服丝袜av| 色综合久久综合网| 国产精品女主播av| 国产黄人亚洲片| 日韩欧美国产综合一区| 亚洲mv在线观看| 91麻豆免费看片| 中文字幕在线不卡一区二区三区| 久久99精品视频| 日韩欧美成人午夜| 免费观看91视频大全| 欧美老年两性高潮| 亚洲最新在线观看| 在线视频一区二区三区| 亚洲色图视频网站| zzijzzij亚洲日本少妇熟睡| 久久久久99精品国产片| 韩国精品在线观看| 欧美mv日韩mv国产网站| 日本欧美肥老太交大片| 制服丝袜中文字幕亚洲| 亚洲第一福利视频在线| 精品视频在线看| 亚洲国产婷婷综合在线精品| 欧美制服丝袜第一页| 亚洲乱码中文字幕| 91美女在线观看| 一区二区在线观看视频| 色呦呦一区二区三区| 亚洲视频精选在线| 色婷婷综合久久久中文字幕| 亚洲免费观看高清完整版在线观看熊| 99精品国产99久久久久久白柏| 国产精品午夜在线观看| 成人免费观看男女羞羞视频| 中文字幕第一区| 99re热这里只有精品免费视频| 中文字幕在线不卡国产视频| 91看片淫黄大片一级在线观看| 亚洲精品视频免费看| 在线免费不卡视频| 亚洲成a人v欧美综合天堂下载| 欧美日韩aaaaaa| 蜜臀久久久久久久| 久久久亚洲国产美女国产盗摄| 国产99久久久国产精品潘金网站| 国产精品久久久久婷婷二区次| 99视频在线观看一区三区| 亚洲欧美一区二区三区极速播放| 色婷婷av一区二区三区大白胸| 亚洲成av人片| 精品日韩在线观看| 国产91富婆露脸刺激对白| 1024成人网色www| 欧美三片在线视频观看| 另类小说综合欧美亚洲| 欧美高清在线精品一区| 91极品美女在线| 日产精品久久久久久久性色| 久久久青草青青国产亚洲免观| 波多野结衣91| 午夜精品视频一区| 精品久久国产字幕高潮| 成人国产一区二区三区精品| 亚洲国产日韩综合久久精品| 欧美刺激午夜性久久久久久久| 国产风韵犹存在线视精品| 一区二区三区在线不卡| 精品久久久久香蕉网| jlzzjlzz亚洲女人18| 天天综合天天做天天综合| 久久久精品中文字幕麻豆发布| eeuss影院一区二区三区| 舔着乳尖日韩一区| 中文字幕成人在线观看| 欧美性大战xxxxx久久久| 国产尤物一区二区| 一区二区三区小说| 久久夜色精品国产噜噜av | 一区二区三区在线免费观看| 69堂国产成人免费视频| 粉嫩13p一区二区三区| 亚洲国产美国国产综合一区二区| 久久日一线二线三线suv| 色香蕉久久蜜桃| 国产一区二区不卡在线| 一区二区三区四区视频精品免费 | 成人一道本在线| 日韩中文字幕av电影| 国产精品丝袜黑色高跟| 欧美日韩国产精品成人| 成人国产精品视频| 日本特黄久久久高潮| 综合中文字幕亚洲| 久久综合资源网| 欧亚一区二区三区| 成人少妇影院yyyy| 日产精品久久久久久久性色| 亚洲天天做日日做天天谢日日欢 | 国产高清亚洲一区| 日韩 欧美一区二区三区| 亚洲欧美日韩系列| 国产亚洲欧美激情| 日韩欧美一级片| 欧美日韩精品一区二区| 波多野结衣精品在线| 国产做a爰片久久毛片| 三级影片在线观看欧美日韩一区二区| 国产精品不卡一区| 国产午夜精品一区二区三区视频| 欧美电影在线免费观看| 色婷婷综合久久久中文一区二区| 国产成人精品一区二区三区四区 | 久久精品综合网| 日韩一区二区三区免费看 | 久久精品99久久久| 亚洲午夜一区二区三区| 综合久久久久久| 国产区在线观看成人精品 | 成人免费毛片高清视频| 激情文学综合网| 日本中文字幕一区| 午夜视频一区在线观看| 亚洲乱码国产乱码精品精的特点| 国产精品欧美综合在线| 国产欧美日韩在线视频| 久久日一线二线三线suv| 日韩三级视频在线看| 欧美一级日韩免费不卡| 91精品国产乱码久久蜜臀| 欧美美女网站色| 欧美男同性恋视频网站| 欧美日韩免费视频| 欧美色综合天天久久综合精品| 欧美综合一区二区三区| 欧美中文字幕一区二区三区 | 日韩av二区在线播放| 日韩中文字幕区一区有砖一区| 亚洲高清久久久| 偷拍亚洲欧洲综合| 日韩高清不卡一区| 美女视频网站黄色亚洲| 久99久精品视频免费观看| 美女一区二区三区在线观看| 美女视频黄 久久| 韩国精品一区二区| 丰满亚洲少妇av| av在线播放成人| 色88888久久久久久影院按摩| 91精彩视频在线| 欧美福利电影网| 精品久久久久久久久久久久久久久久久 | 亚洲一区二区高清| 亚洲一二三区不卡| 日韩黄色片在线观看| 免费三级欧美电影| 九九久久精品视频| 国产成人av资源| 91成人国产精品| 91精品国产免费|