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

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

?? sprycollapsiblepanel.js

?? asp學(xué)生信息管理系統(tǒng)
?? JS
字號(hào):
/* SpryCollapsiblePanel.js - Revision: Spry Preview Release 1.4 */

// Copyright (c) 2006. Adobe Systems Incorporated.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
//   * Redistributions of source code must retain the above copyright notice,
//     this list of conditions and the following disclaimer.
//   * Redistributions in binary form must reproduce the above copyright notice,
//     this list of conditions and the following disclaimer in the documentation
//     and/or other materials provided with the distribution.
//   * Neither the name of Adobe Systems Incorporated nor the names of its
//     contributors may be used to endorse or promote products derived from this
//     software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.

var Spry;
if (!Spry) Spry = {};
if (!Spry.Widget) Spry.Widget = {};

Spry.Widget.CollapsiblePanel = function(element, opts)
{
	this.init(element);

	Spry.Widget.CollapsiblePanel.setOptions(this, opts);

	this.attachBehaviors();
};

Spry.Widget.CollapsiblePanel.prototype.init = function(element)
{
	this.element = this.getElement(element);
	this.focusElement = null;
	this.hoverClass = "CollapsiblePanelTabHover";
	this.openClass = "CollapsiblePanelOpen";
	this.closedClass = "CollapsiblePanelClosed";
	this.focusedClass = "CollapsiblePanelFocused";
	this.enableAnimation = true;
	this.enableKeyboardNavigation = true;
	this.animator = null;
	this.hasFocus = false;
	this.contentIsOpen = true;
};

Spry.Widget.CollapsiblePanel.prototype.getElement = function(ele)
{
	if (ele && typeof ele == "string")
		return document.getElementById(ele);
	return ele;
};

Spry.Widget.CollapsiblePanel.prototype.addClassName = function(ele, className)
{
	if (!ele || !className || (ele.className && ele.className.search(new RegExp("\\b" + className + "\\b")) != -1))
		return;
	ele.className += (ele.className ? " " : "") + className;
};

Spry.Widget.CollapsiblePanel.prototype.removeClassName = function(ele, className)
{
	if (!ele || !className || (ele.className && ele.className.search(new RegExp("\\b" + className + "\\b")) == -1))
		return;
	ele.className = ele.className.replace(new RegExp("\\s*\\b" + className + "\\b", "g"), "");
};

Spry.Widget.CollapsiblePanel.prototype.hasClassName = function(ele, className)
{
	if (!ele || !className || !ele.className || ele.className.search(new RegExp("\\b" + className + "\\b")) == -1)
		return false;
	return true;
};

Spry.Widget.CollapsiblePanel.prototype.setDisplay = function(ele, display)
{
	if( ele )
		ele.style.display = display;
};

Spry.Widget.CollapsiblePanel.setOptions = function(obj, optionsObj, ignoreUndefinedProps)
{
	if (!optionsObj)
		return;
	for (var optionName in optionsObj)
	{
		if (ignoreUndefinedProps && optionsObj[optionName] == undefined)
			continue;
		obj[optionName] = optionsObj[optionName];
	}
};

Spry.Widget.CollapsiblePanel.prototype.onTabMouseOver = function()
{
	this.addClassName(this.getTab(), this.hoverClass);
};

Spry.Widget.CollapsiblePanel.prototype.onTabMouseOut = function()
{
	this.removeClassName(this.getTab(), this.hoverClass);
};

Spry.Widget.CollapsiblePanel.prototype.open = function()
{
	this.contentIsOpen = true;
	if (this.enableAnimation)
	{
		if (this.animator)
			this.animator.stop();
		this.animator = new Spry.Widget.CollapsiblePanel.PanelAnimator(this, true);
		this.animator.start();
	}
	else
		this.setDisplay(this.getContent(), "block");

	this.removeClassName(this.element, this.closedClass);
	this.addClassName(this.element, this.openClass);
};

Spry.Widget.CollapsiblePanel.prototype.close = function()
{
	this.contentIsOpen = false;
	if (this.enableAnimation)
	{
		if (this.animator)
			this.animator.stop();
		this.animator = new Spry.Widget.CollapsiblePanel.PanelAnimator(this, false);
		this.animator.start();
	}
	else
		this.setDisplay(this.getContent(), "none");

	this.removeClassName(this.element, this.openClass);
	this.addClassName(this.element, this.closedClass);
};

Spry.Widget.CollapsiblePanel.prototype.onTabClick = function()
{
	if (this.isOpen())
		this.close();
	else
		this.open();
	this.focus();
};

Spry.Widget.CollapsiblePanel.prototype.onFocus = function(e)
{
	this.hasFocus = true;
	this.addClassName(this.element, this.focusedClass);
};

Spry.Widget.CollapsiblePanel.prototype.onBlur = function(e)
{
	this.hasFocus = false;
	this.removeClassName(this.element, this.focusedClass);
};

Spry.Widget.CollapsiblePanel.ENTER_KEY = 13;
Spry.Widget.CollapsiblePanel.SPACE_KEY = 32;

Spry.Widget.CollapsiblePanel.prototype.onKeyDown = function(e)
{
	var key = e.keyCode;
	if (!this.hasFocus || (key != Spry.Widget.CollapsiblePanel.ENTER_KEY && key != Spry.Widget.CollapsiblePanel.SPACE_KEY))
		return true;
	
	if (this.isOpen())
		this.close();
	else
		this.open();

	if (e.stopPropagation)
		e.stopPropagation();
	if (e.preventDefault)
		e.preventDefault();

	return false;
};

Spry.Widget.CollapsiblePanel.prototype.attachPanelHandlers = function()
{
	var tab = this.getTab();
	if (!tab)
		return;

	var self = this;
	Spry.Widget.CollapsiblePanel.addEventListener(tab, "click", function(e) { return self.onTabClick(); }, false);
	Spry.Widget.CollapsiblePanel.addEventListener(tab, "mouseover", function(e) { return self.onTabMouseOver(); }, false);
	Spry.Widget.CollapsiblePanel.addEventListener(tab, "mouseout", function(e) { return self.onTabMouseOut(); }, false);

	if (this.enableKeyboardNavigation)
	{
		// XXX: IE doesn't allow the setting of tabindex dynamically. This means we can't
		// rely on adding the tabindex attribute if it is missing to enable keyboard navigation
		// by default.

		// Find the first element within the tab container that has a tabindex or the first
		// anchor tag.
		
		var tabIndexEle = null;
		var tabAnchorEle = null;

		this.preorderTraversal(tab, function(node) {
			if (node.nodeType == 1 /* NODE.ELEMENT_NODE */)
			{
				var tabIndexAttr = tab.attributes.getNamedItem("tabindex");
				if (tabIndexAttr)
				{
					tabIndexEle = node;
					return true;
				}
				if (!tabAnchorEle && node.nodeName.toLowerCase() == "a")
					tabAnchorEle = node;
			}
			return false;
		});

		if (tabIndexEle)
			this.focusElement = tabIndexEle;
		else if (tabAnchorEle)
			this.focusElement = tabAnchorEle;

		if (this.focusElement)
		{
			Spry.Widget.CollapsiblePanel.addEventListener(this.focusElement, "focus", function(e) { return self.onFocus(e); }, false);
			Spry.Widget.CollapsiblePanel.addEventListener(this.focusElement, "blur", function(e) { return self.onBlur(e); }, false);
			Spry.Widget.CollapsiblePanel.addEventListener(this.focusElement, "keydown", function(e) { return self.onKeyDown(e); }, false);
		}
	}
};

Spry.Widget.CollapsiblePanel.addEventListener = function(element, eventType, handler, capture)
{
	try
	{
		if (element.addEventListener)
			element.addEventListener(eventType, handler, capture);
		else if (element.attachEvent)
			element.attachEvent("on" + eventType, handler);
	}
	catch (e) {}
};

Spry.Widget.CollapsiblePanel.prototype.preorderTraversal = function(root, func)
{
	var stopTraversal = false;
	if (root)
	{
		stopTraversal = func(root);
		if (root.hasChildNodes())
		{
			var child = root.firstChild;
			while (!stopTraversal && child)
			{
				stopTraversal = this.preorderTraversal(child, func);
				try { child = child.nextSibling; } catch (e) { child = null; }
			}
		}
	}
	return stopTraversal;
};

Spry.Widget.CollapsiblePanel.prototype.attachBehaviors = function()
{
	var panel = this.element;
	var tab = this.getTab();
	var content = this.getContent();

	if (this.contentIsOpen || this.hasClassName(panel, this.openClass))
	{
		this.removeClassName(panel, this.closedClass);
		this.setDisplay(content, "block");
		this.contentIsOpen = true;
	}
	else
	{
		this.removeClassName(panel, this.openClass);
		this.addClassName(panel, this.closedClass);
		this.setDisplay(content, "none");
		this.contentIsOpen = false;
	}

	this.attachPanelHandlers();
};

Spry.Widget.CollapsiblePanel.prototype.getTab = function()
{
	return this.getElementChildren(this.element)[0];
};

Spry.Widget.CollapsiblePanel.prototype.getContent = function()
{
	return this.getElementChildren(this.element)[1];
};

Spry.Widget.CollapsiblePanel.prototype.isOpen = function()
{
	return this.contentIsOpen;
};

Spry.Widget.CollapsiblePanel.prototype.getElementChildren = function(element)
{
	var children = [];
	var child = element.firstChild;
	while (child)
	{
		if (child.nodeType == 1 /* Node.ELEMENT_NODE */)
			children.push(child);
		child = child.nextSibling;
	}
	return children;
};

Spry.Widget.CollapsiblePanel.prototype.focus = function()
{
	if (this.focusElement && this.focusElement.focus)
		this.focusElement.focus();
};

/////////////////////////////////////////////////////

Spry.Widget.CollapsiblePanel.PanelAnimator = function(panel, doOpen, opts)
{
	this.timer = null;
	this.interval = 0;
	this.stepCount = 0;

	this.fps = 0;
	this.steps = 10;
	this.duration = 500;
	this.onComplete = null;

	this.panel = panel;
	this.content = panel.getContent();
	this.panelData = [];
	this.doOpen = doOpen;

	Spry.Widget.CollapsiblePanel.setOptions(this, opts);


	// If caller specified speed in terms of frames per second,
	// convert them into steps.

	if (this.fps > 0)
	{
		this.interval = Math.floor(1000 / this.fps);
		this.steps = parseInt((this.duration + (this.interval - 1)) / this.interval);
	}
	else if (this.steps > 0)
		this.interval = this.duration / this.steps;

	var c = this.content;

	var curHeight = c.offsetHeight ? c.offsetHeight : 0;
	
	if (doOpen && c.style.display == "none")
		this.fromHeight = 0;
	else
		this.fromHeight = curHeight;

	if (!doOpen)
		this.toHeight = 0;
	else
	{
		if (c.style.display == "none")
		{
			// The content area is not displayed so in order to calculate the extent
			// of the content inside it, we have to set its display to block.

			c.style.visibility = "hidden";
			c.style.display = "block";
		}

		// Unfortunately in Mozilla/Firefox, fetching the offsetHeight seems to cause
		// the browser to synchronously re-layout and re-display content on the page,
		// so we see a brief flash of content that is *after* the panel being positioned
		// where it should when the panel is fully expanded. To get around this, we
		// temporarily position the content area of the panel absolutely off-screen.
		// This has the effect of taking the content out-of-flow, so nothing shifts around.

		// var oldPos = c.style.position;
		// var oldLeft = c.style.left;
		// c.style.position = "absolute";
		// c.style.left = "-2000em";

		// Clear the height property so we can calculate
		// the full height of the content we are going to show.
		c.style.height = "";
		this.toHeight = c.offsetHeight;

		// Now restore the position and offset to what it was!
		// c.style.position = oldPos;
		// c.style.left = oldLeft;
	}

	this.increment = (this.toHeight - this.fromHeight) / this.steps;
	this.overflow = c.style.overflow;

	c.style.height = this.fromHeight + "px";
	c.style.visibility = "visible";
	c.style.overflow = "hidden";
	c.style.display = "block";
};

Spry.Widget.CollapsiblePanel.PanelAnimator.prototype.start = function()
{
	var self = this;
	this.timer = setTimeout(function() { self.stepAnimation(); }, this.interval);
};

Spry.Widget.CollapsiblePanel.PanelAnimator.prototype.stop = function()
{
	if (this.timer)
	{
		clearTimeout(this.timer);

		// If we're killing the timer, restore the overflow
		// properties on the panels we were animating!

		if (this.stepCount < this.steps)
			this.content.style.overflow = this.overflow;
	}

	this.timer = null;
};

Spry.Widget.CollapsiblePanel.PanelAnimator.prototype.stepAnimation = function()
{
	++this.stepCount;

	this.animate();

	if (this.stepCount < this.steps)
		this.start();
	else if (this.onComplete)
		this.onComplete();
};

Spry.Widget.CollapsiblePanel.PanelAnimator.prototype.animate = function()
{
	if (this.stepCount >= this.steps)
	{
		if (!this.doOpen)
			this.content.style.display = "none";
		this.content.style.overflow = this.overflow;
		this.content.style.height = this.toHeight + "px";
	}
	else
	{
		this.fromHeight += this.increment;
		this.content.style.height = this.fromHeight + "px";
	}
};

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
26uuu亚洲婷婷狠狠天堂| 亚洲色图在线看| 欧美日韩久久一区二区| 成人不卡免费av| 国产成人在线视频免费播放| 乱中年女人伦av一区二区| 日韩电影在线免费看| 午夜日韩在线电影| 亚洲成a人片在线观看中文| 亚洲精品日韩一| 亚洲一区二区三区四区的| 一区二区三区四区中文字幕| 亚洲六月丁香色婷婷综合久久| 国产精品美女一区二区| 国产精品污www在线观看| 国产精品天干天干在线综合| 国产精品热久久久久夜色精品三区| 欧美激情一区二区| 中文字幕一区二区日韩精品绯色| 国产精品久久福利| 综合欧美一区二区三区| 亚洲女性喷水在线观看一区| 一区二区高清视频在线观看| 亚洲成人激情综合网| 日韩高清不卡在线| 国产综合色在线| 成人白浆超碰人人人人| 99久久久无码国产精品| 91福利在线免费观看| 欧美亚洲免费在线一区| 欧美一区二区福利视频| 精品国产一区a| 精品国产伦一区二区三区免费 | 欧美一区二区久久久| 精品日产卡一卡二卡麻豆| 久久综合九色综合欧美98| 日韩女优毛片在线| 欧美国产精品劲爆| 亚洲精品美国一| 日韩国产精品久久久久久亚洲| 久久精品国产秦先生| 成人永久免费视频| 精品视频在线视频| 日韩欧美亚洲国产精品字幕久久久| 国产亚洲一区字幕| 亚洲日本va在线观看| 亚洲一区在线观看视频| 另类欧美日韩国产在线| 不卡视频一二三四| 欧美高清性hdvideosex| 欧美精品一区男女天堂| 亚洲品质自拍视频网站| 免费观看在线综合色| 成人免费视频视频在线观看免费 | 欧美性受xxxx黑人xyx性爽| 日韩欧美在线一区二区三区| 中文字幕av一区二区三区高| 亚洲国产婷婷综合在线精品| 蜜桃视频一区二区三区| av福利精品导航| 日韩一区二区视频在线观看| 国产精品午夜春色av| 日本伊人色综合网| 91麻豆免费视频| 日韩免费在线观看| 亚洲老司机在线| 国产乱国产乱300精品| 91国偷自产一区二区三区观看 | 亚洲高清一区二区三区| 国产91富婆露脸刺激对白| 在线成人小视频| 国产精品久久久久aaaa樱花| 老司机免费视频一区二区三区| 色综合久久久久久久久| 久久久天堂av| 香蕉乱码成人久久天堂爱免费| 成人激情免费电影网址| 精品久久久久久久人人人人传媒 | 天天色图综合网| 国产精品白丝av| 日韩一级免费一区| 一个色综合网站| 国产98色在线|日韩| 欧美一区二区精品| 亚洲va欧美va天堂v国产综合| 成人黄色av电影| 久久久综合视频| 老司机精品视频在线| 欧美系列日韩一区| 亚洲女子a中天字幕| 成人黄色小视频| 欧美极品另类videosde| 精品一区二区av| 欧美一激情一区二区三区| 亚洲成人在线网站| 欧美在线|欧美| 一区二区三区四区不卡在线 | 丁香一区二区三区| 欧美日韩国产另类一区| 亚洲精品乱码久久久久久黑人 | 久久久久久久性| 免费观看日韩av| 欧美一区永久视频免费观看| 一区二区三区欧美激情| 91在线视频播放地址| 国产精品卡一卡二卡三| 成人免费视频app| 国产欧美视频在线观看| 国产高清成人在线| 久久这里只有精品视频网| 另类小说欧美激情| 精品粉嫩超白一线天av| 精品一区二区三区在线视频| 精品国产三级电影在线观看| 国内精品国产三级国产a久久 | 蜜臀久久久99精品久久久久久| 欧美肥大bbwbbw高潮| 日本一不卡视频| 欧美电影免费提供在线观看| 久久成人综合网| 久久久青草青青国产亚洲免观| 国产乱国产乱300精品| 国产欧美一区二区在线| 成人免费三级在线| 亚洲免费高清视频在线| 欧美亚洲丝袜传媒另类| 日本中文一区二区三区| 91精品国产色综合久久不卡蜜臀| 日韩高清欧美激情| 久久久国产精华| 99精品久久只有精品| 亚洲免费在线看| 欧美一区二区在线播放| 九九精品视频在线看| 3d成人h动漫网站入口| 麻豆成人久久精品二区三区红| 久久综合给合久久狠狠狠97色69| 午夜电影久久久| 在线亚洲一区二区| 综合久久国产九一剧情麻豆| 美国一区二区三区在线播放| 欧美亚洲一区二区三区四区| 亚洲3atv精品一区二区三区| 欧美性猛交xxxxxx富婆| 国产精品每日更新| 久久精品国产精品亚洲综合| 欧美videos中文字幕| 九一久久久久久| 成人app网站| 日韩中文字幕麻豆| 久久精品视频免费| 在线观看一区日韩| 1000部国产精品成人观看| 91丨国产丨九色丨pron| 欧美激情一区二区三区不卡| 国产成人99久久亚洲综合精品| 精品国产91洋老外米糕| 91美女福利视频| 亚洲国产精品ⅴa在线观看| 国产在线视频一区二区三区| 精品毛片乱码1区2区3区| 另类小说视频一区二区| 精品在线播放免费| 久久久亚洲精品石原莉奈| 国产成人av影院| 亚洲永久精品大片| 久久久亚洲综合| 欧美日韩国产另类一区| 懂色一区二区三区免费观看| 日日骚欧美日韩| 精品国产在天天线2019| 色老汉av一区二区三区| 国产一区不卡在线| 日韩一级大片在线观看| 狠狠狠色丁香婷婷综合久久五月| 亚洲欧美日韩中文播放| 日韩精品专区在线影院重磅| 国产福利一区二区三区视频在线 | 综合激情成人伊人| 欧美一区二区三区视频免费| 91视频.com| 国产精品毛片a∨一区二区三区| 欧美日韩五月天| 午夜激情久久久| 国产欧美视频在线观看| 色婷婷综合久久久久中文一区二区| 国产精品一卡二| 日韩成人精品在线| 亚洲精品免费在线播放| 亚洲精品在线观看网站| 欧美日韩高清一区二区三区| 成人福利视频在线看| 亚洲bt欧美bt精品777| 1024国产精品| 国产亚洲综合在线| 精品欧美乱码久久久久久| 国产又黄又大久久| 日韩中文欧美在线| 一区二区三区欧美| 国产色产综合色产在线视频|