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

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

?? taskmenu.js

?? 商品管理系統
?? JS
?? 第 1 頁 / 共 2 頁
字號:
//****************************************************
//                TaskMenu 3.0
//   		   靜靜的黎明 
//           http://www.docode.cn 
//**************************************************** 
/////////////////////////////////////////////////////////////////////////////////
var INF_IS_IEXPLORER = (navigator.userAgent.indexOf("MSIE") == -1)? false : true;
var INF_IS_MENU_BEHAVIOR_AUTO       = true;
var INF_IS_SCROLLBAR_ENABLED        = false;
///////////////////////////////////////////////////////
/////////////*** CONFIG ***////////////////////////////
var CFG_FRAME_COUNT                 = 6;
var CFG_DOCUMENT_MARGIN             = 12;
var CFG_MENU_SPACING                = 15;
var CFG_MENU_WIDTH                  = 185;
var CFG_SCROLLBAR_WIDTH             = 17;
var CFG_TITLEBAR_HEIGHT             = 25;
var CFG_TITLEBAR_LEFT_WIDTH         = 13;
var CFG_TITLEBAR_RIGHT_WIDTH        = 25;
var CFG_TITLEBAR_MIDDLE_WIDTH = CFG_MENU_WIDTH - CFG_TITLEBAR_LEFT_WIDTH - CFG_TITLEBAR_RIGHT_WIDTH;
var CFG_TITLEBAR_BORDER_WIDTH       = 0;
var CFG_MENUBODY_PADDING            = 9;
var CFG_MENUBODY_BORDER_WIDTH       = 1;
var CFG_SLEEP_TIME_BEGIN            = 20;
var CFG_SLEEP_TIME_END              = 60;
var CFG_ALPHA_STEP = Math.ceil( 100 / (CFG_FRAME_COUNT) );
var CFG_IS_SCROLLBAR_ENABLED        = true;
var CFG_IS_SPECIAL_HEAD_NODE        = false;

//////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////
if(new Array().push == null)
{
	//usage: array.push(Array); for ie5.0
	Array.prototype.push = function()
	{
		this[this.length] = arguments[0];
		return this.length;
	}
}
if(new Array().splice == null)
{
	/// usage: array.splice(startPos,deleteCount,[item1,item2,...]);for ie5.0
	Array.prototype.splice = function()
	{
		if(arguments.length < 2 || arguments[1] < 0) 
			return new Array();

		var endPoint1 = arguments[0];	
		if(endPoint1 < 0 && Math.abs(endPoint1) > this.length)
			endPoint1 = 0;

		var startPoint2 = (endPoint1 < 0)? (this.length + endPoint1 + arguments[1]) : (endPoint1 + arguments[1]);

		var bArray = this.slice(0,endPoint1);	
		var dArray = this.slice(endPoint1,startPoint2);
		var eArray = this.slice(startPoint2);
		var nArray = new Array();
		for(var i = 2; i < arguments.length; i++)
		{
			nArray.push(arguments[i]);
		}	
		var fArray = bArray.concat(nArray,eArray);

		for(var i = 0; i < fArray.length; i++)
		{
			this[i] = fArray[i];
		}
		this.length = fArray.length;
		
		return dArray;
	}
}
			
/////////////////////////////////////////////////////////////////		
function TaskMenuState(){}
TaskMenuState.uninited      =  0;
TaskMenuState.open          =  1;
TaskMenuState.close         =  2;
TaskMenuState.opening       =  4;
TaskMenuState.closing       =  8;
TaskMenuState.transforming  = 16;

function TaskMenuItem(strLabel,strIcon,strCommand)
{
	this.label      = strLabel;
	this.icon       = strIcon;
	this.command    = strCommand;
	this.hItem      = null;
	this.hLabel     = null;
	this.hIcon      = null;
	this.hLabelCell = null;
	this.container  = null;
	this.operTimer  = null;
	this.tranTimer  = null;
	this.operStep   = 0;
	this.tranStep   = 0;
	this.operCount  = 0;
	this.tranCount  = 0;

	this.init = function()
	{
		(this.hLabel = document.createElement("FONT")).reflectClass = this;
		with(this.hLabel)
		{	
			reflectClass = this;
		}
		with(this.hItem = document.createElement("TABLE"))
		{	
			cellPadding = 0;
			cellSpacing = 0;
			style.width = "100%";
		}
		(itemRow = this.hItem.insertRow(0)).className="MenuItemRow";
		with(blankCell = itemRow.insertCell(0))
		{
			style.width = (CFG_MENUBODY_PADDING - 2) +"px";
		}
		with(iconCell = itemRow.insertCell(1))
		{
			align  = "RIGHT";
			style.cssText = "width:18px;vertical-align:top;padding-top:3px";						
			with(this.hIcon = iconCell.appendChild(document.createElement("DIV")))
			{
				className = "IconContainer";
			}
		}
		
		with(this.hLabelCell = itemRow.insertCell(2))
		{
			style.padding = "2px " + CFG_MENUBODY_PADDING +"px 2px 5px";
			appendChild(this.hLabel);				
		}
		with(this)
		{
			setIcon(icon);	setLabel(label); setCommand(command);
		}
		
	}

	this.getLabel = function()
	{
		return this.label;
	}

	this.setLabel = function(strLabel)
	{
		this.hLabel.innerHTML = this.label = strLabel;
	}
	this.getIcon = function()
	{
		return this.icon;
	}

	this.setIcon = function(strIcon)
	{
		this.icon = strIcon;

		while(this.hIcon.firstChild != null)
		{
			this.hIcon.removeChild(this.hIcon.firstChild);
		}

		if(this.icon != null)
		{
			with(this.hIcon)
			{				
				style.width = "18px";
				parentNode.style.width = "18px";
				with(appendChild(new Image()))
				{
					src= this.icon;
				}
			}
		}
		else
		{
			this.hIcon.style.width = "0px";
			this.hIcon.parentNode.style.width = "0px";
		}
	}

	this.getCommand = function()
	{
		return this.command;
	}

	this.setCommand = function(strCommand)
	{
		if( (this.command = strCommand) != null)
		{
			JS.addListener(this.hLabel,"mouseover",TaskMenuItem.onMouseBehavior,false);
			JS.addListener(this.hLabel,"mouseout",TaskMenuItem.onMouseBehavior,false);
			JS.addListener(this.hLabel,"click",TaskMenuItem.onClick,false);
			this.hLabel.className = "MenuItemLabel";
		}		
		else
		{
			JS.removeListener(this.hLabel,"mouseover",TaskMenuItem.onMouseBehavior,false);
			JS.removeListener(this.hLabel,"mouseout",TaskMenuItem.onMouseBehavior,false);
			JS.removeListener(this.hLabel,"click",TaskMenuItem.onClick,false);
			this.hLabel.className = "MenuItemLabelDisabled";
		}
	}

	this.runCommand = function()	
	{
		try
		{	
			eval(this.command);	
		}
		catch(ex)
		{	
			alert("Javascript Error:" + ex.description);	
		}
	}

	this.cloneNode = function()
	{
		return new TaskMenuItem(this.label,this.icon,this.command);
	}

	this.init();
}

TaskMenuItem.onMouseBehavior = function()
{
	with(JS.getSourceElement(arguments[0]))
	{
		if(arguments[0].type.toUpperCase() == "MOUSEOVER")
			className = "MenuItemLabelMouseOver";
		
		else
			className = "MenuItemLabel"; 
	}	
}

TaskMenuItem.onClick = function()
{
	var refClass = JS.getSourceElement(arguments[0]).reflectClass;
	if(refClass != null) refClass.runCommand();
}

function TaskMenu(strLabel,menuState)
{
	this.menuID;
	this.label       = strLabel;
	this.state       = menuState;
	this.items       = [];
	this.hLabel      = null;
	this.hArrayCell  = null;
	this.titlebar    = null;
	this.menuBody    = null;
	this.previous    = null;
	this.next        = null;
	this.background  = null;
	this.operationTimer;
	this.transformTimer;
	this.invalidateTimer
	this.operationStep;
	this.transformStep;
	this.operationSleep;
	this.transformSleep;

	this._getAlphaOpacity = function()
	{
		try
		{
			if(INF_IS_IEXPLORER)	
				return this.menuBody.filters.alpha.opacity;

			else
				return this.menuBody.style.MozOpacity * 100;
		}
		catch(ex)
		{
			return 100;
		}	
	}

	this._setAlphaOpacity = function(n)
	{
		try
		{
			if(INF_IS_IEXPLORER)
				this.menuBody.filters.alpha.opacity = n;

			else
				this.menuBody.style.MozOpacity = n / 100;
		}
		catch(ex)
		{}	
	}
	this._clearItem = function()
	{
		for(var i =0; i< this.items.length; i++)
		{
			this.items[i].container = null;
		}
		this.items = new Array();
	}

	this._clearMenu = function()
	{
		if(this.menuBody == null) return;

		while(this.menuBody.firstChild != null)
			this.menuBody.removeChild(this.menuBody.firstChild);
	}

	this._setMenuFixed = function(bFlag)
	{
		if(this.menuBody == null) return;

		if(bFlag == true)	
		{
			this.menuBody.style.overflow = "hidden";
		}
		else
		{
			this.menuBody.style.overflow = "visible";
			this.menuBody.style.height   = "auto";	
		}			
	}

	this._setMenuHeight = function(height)
	{
		if(INF_IS_IEXPLORER)
			this.menuBody.style.height = height + "px";

		else
			this.menuBody.style.height = ( height - (2 * CFG_MENUBODY_PADDING + CFG_MENUBODY_BORDER_WIDTH) ) + "px";
	}

	this._getMenuHeight = function()
	{
		if(INF_IS_IEXPLORER)
			return this.menuBody.scrollHeight + CFG_MENUBODY_BORDER_WIDTH;

		else
		{
			var scrollHeight = 0;
			for(var i = 0; i < this.menuBody.childNodes.length; i++)
			{
				scrollHeight += this.menuBody.childNodes[i].offsetHeight;			
			}

			return scrollHeight + CFG_MENUBODY_BORDER_WIDTH + 2 * CFG_MENUBODY_PADDING;
		}
	}
	
	this._getScrollWidth = function()
	{
		return (INF_IS_SCROLLBAR_ENABLED)? CFG_SCROLLBAR_WIDTH : 0
	}
	
	this._fixMenuWidth = function(value)
	{
		var titlebarWidth = ( CFG_MENU_WIDTH + ( (INF_IS_IEXPLORER)? 0 : ( -2 * CFG_TITLEBAR_BORDER_WIDTH ) ) );
		var menuBodyWidth = ( CFG_MENU_WIDTH + ( (INF_IS_IEXPLORER)? 0 : ( -2 * CFG_MENUBODY_BORDER_WIDTH ) ) );
		var labelCell = this.titlebar.firstChild.rows[0].cells[1];
		var scrollbarWidth = this._getScrollWidth();

		this.hLabel.style.width   = (CFG_TITLEBAR_MIDDLE_WIDTH - scrollbarWidth) + "px";
		labelCell.style.width     = (CFG_TITLEBAR_MIDDLE_WIDTH - scrollbarWidth) + "px";
		this.titlebar.style.width = (titlebarWidth - scrollbarWidth) + "px";
		this.menuBody.style.width = (menuBodyWidth - scrollbarWidth) + "px";
		
		this._invalidate(true);
	}

	this._fixedMenuPosWhileClose = function()
	{	
		var scrollHeight = this._getMenuHeight();
		this._setMenuHeight(scrollHeight);
		this.menuBody.style.top = (this.titlebar.offsetTop + CFG_TITLEBAR_HEIGHT - scrollHeight) + "px";
		this.menuBody.style.clip = "rect(" + scrollHeight +" auto " + scrollHeight + " auto)";	
		this._setAlphaOpacity(0);
	}

	this._attachState = function(state)
	{
		switch(state)
		{
			case TaskMenuState.open:
			case TaskMenuState.close:
			case TaskMenuState.opening:
			case TaskMenuState.closing:
				this.state >>= 4;
				this.state <<= 4;
			case TaskMenuState.transforming:
				this.state |= state;
			break;
			case TaskMenuState.uninited:
				this.state = state;
			break;
		}
	}

	this._removeState = function(state)
	{
		if(this.state & state)	this.state ^= state;	
	}

	this._invalidate = function(bForce)
	{
		if(INF_IS_MENU_BEHAVIOR_AUTO == true || bForce == true)
		{
			this.invalidate();
		}
	}

	this._extend = function()
	{
		if(this.state & TaskMenuState.close)
		{
			this._fixedMenuPosWhileClose();
			this._removeState(TaskMenuState.transforming);
		}
		else
		{
			if(this.menuBody.offsetHeight + this.transformStep < this._getMenuHeight())
			{
				this._setMenuHeight(this.menuBody.offsetHeight + this.transformStep);
				this.transformTimer = setTimeout("TaskMenu.collection[" + this.menuID + "]._extend()",this.transformSleep += 5);
			}
			else
			{
				this._setMenuHeight(this._getMenuHeight());		
				this._removeState(TaskMenuState.transforming);	
			}
		}
		if(this.next != null) this.next._moveTo();
		TaskMenu._refreshAll();
	}

	this._shorten = function()
	{
		if(this.state & TaskMenuState.close)
		{
			this._fixedMenuPosWhileClose();
			this._removeState(TaskMenuState.transforming);
		}
		else
		{	
			if(this.menuBody.offsetHeight + this.transformStep > this._getMenuHeight())
			{	
				this._setMenuHeight(this.menuBody.offsetHeight + this.transformStep);
				this.transformTimer = setTimeout("TaskMenu.collection[" + this.menuID + "]._shorten()",this.transformSleep += 5);
			}
			else
			{
				this._setMenuHeight(this._getMenuHeight());
				this._removeState(TaskMenuState.transforming);
			}
		}
		if(this.next != null) this.next._moveTo();
		TaskMenu._refreshAll();
	}

	this._appendItems = function()
	{
		if(this.menuBody == null || this.items.length == 0)return;

		for(var i = 0; i < this.items.length; i++)
			this.menuBody.appendChild(this.items[i].hItem);
	}

	this._isSpecialHeadNode = function()
	{
		return CFG_IS_SPECIAL_HEAD_NODE && this == TaskMenu.headNode;
	}
	
	this._open = function()
	{
		var titlebarBottom = this.titlebar.offsetTop + CFG_TITLEBAR_HEIGHT;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产女人18水真多18精品一级做| 亚洲一区自拍偷拍| 亚洲精品日产精品乱码不卡| 日韩激情av在线| 不卡的av网站| 精品国产乱码久久久久久免费| 亚洲激情在线激情| 国产成人av在线影院| 日韩一区二区三区四区五区六区| 成人免费视频在线观看| 国产成人福利片| 制服丝袜亚洲网站| 一区二区三区四区精品在线视频| 国产电影精品久久禁18| 日韩免费高清av| 午夜精品一区在线观看| 在线免费观看成人短视频| 国产精品丝袜一区| 国产老女人精品毛片久久| 日韩视频一区二区三区在线播放| 一区二区三区在线免费播放 | 日本欧美一区二区三区| 色综合天天在线| 中文字幕中文在线不卡住| 国产精品小仙女| 久久久久久亚洲综合影院红桃| 青青草91视频| 欧美日韩精品电影| 亚洲国产另类av| 欧美男女性生活在线直播观看| 亚洲三级免费观看| av亚洲精华国产精华| 中文字幕一区二区三区视频 | 国产精品乱子久久久久| 成人午夜电影网站| 国产精品每日更新在线播放网址 | 国产精品亚洲一区二区三区在线 | 成人sese在线| 亚洲日本在线a| 色综合欧美在线视频区| 亚洲制服丝袜av| 777久久久精品| 日本美女视频一区二区| 精品处破学生在线二十三| 国产成人精品一区二| 日韩一区欧美小说| 在线亚洲+欧美+日本专区| 亚洲成人免费影院| 日韩一级大片在线观看| 激情都市一区二区| 国产精品毛片无遮挡高清| 一本大道久久a久久精二百 | 欧美一区二区三区四区高清| 奇米影视一区二区三区| 26uuu久久天堂性欧美| 国产在线精品一区二区夜色| 国产精品国产自产拍高清av| 99国产精品久| 日本欧美一区二区| 国产欧美一区二区精品婷婷| 在线观看国产日韩| 久久99精品国产.久久久久| 国产精品色眯眯| 在线观看日韩精品| 狠狠色综合色综合网络| 悠悠色在线精品| 亚洲国产aⅴ天堂久久| 欧美一区二区三区婷婷月色| 成人综合在线观看| 91一区二区三区在线播放| 丝袜美腿亚洲一区| 欧美视频在线不卡| 国产成人av自拍| 日韩av中文在线观看| 中文字幕中文乱码欧美一区二区| 91精品国产综合久久久久久久 | 亚洲人成人一区二区在线观看| 欧美日韩中文字幕一区二区| 国产一区二区网址| 日韩黄色免费网站| 中文字幕乱码亚洲精品一区| 欧美夫妻性生活| 91女厕偷拍女厕偷拍高清| 国产在线国偷精品免费看| 亚洲成人黄色影院| 国产精品久久久久久久午夜片| 日韩亚洲欧美一区二区三区| 99国产精品一区| 国产剧情一区二区| 青青草精品视频| 亚洲精品国产成人久久av盗摄| 日韩欧美一二三四区| 欧美日韩小视频| 91啪在线观看| 国产iv一区二区三区| 精品影院一区二区久久久| 亚洲国产欧美一区二区三区丁香婷| 国产精品视频一二三| 欧美电视剧免费全集观看| 在线看日本不卡| 99精品久久久久久| 国产99一区视频免费| 久久99精品国产麻豆婷婷洗澡| 亚洲va国产va欧美va观看| 综合欧美一区二区三区| 欧美激情一区三区| 欧美激情一区不卡| 国产欧美精品一区| 国产欧美一区二区精品秋霞影院 | 久久精品亚洲精品国产欧美kt∨| 91精品国产91综合久久蜜臀| 欧美另类久久久品| 777xxx欧美| 日韩一区二区电影在线| 欧美一区二区三区视频免费播放| 欧美老年两性高潮| 欧美日韩国产高清一区| 欧美日本乱大交xxxxx| 在线成人av网站| 日韩三级视频中文字幕| 欧美一区二区三区人| 欧美不卡一区二区| 久久一二三国产| 久久久久国产精品厨房| 国产亚洲短视频| 国产精品久久久久久户外露出| 国产精品久久久一本精品| 亚洲欧洲色图综合| 亚洲制服欧美中文字幕中文字幕| 五月综合激情网| 美女一区二区在线观看| 国产精品综合视频| av高清不卡在线| 欧美日韩国产综合一区二区 | 欧美亚洲另类激情小说| 欧美手机在线视频| 日韩视频免费直播| 欧美激情在线一区二区| 亚洲一区二区三区小说| 麻豆精品视频在线| 成人精品一区二区三区四区| 日本精品一区二区三区四区的功能| 欧美裸体一区二区三区| 精品成人在线观看| 亚洲免费av高清| 麻豆成人91精品二区三区| 成人激情电影免费在线观看| 欧美日韩亚洲综合一区二区三区| 欧美精品一区二区在线播放| 中文字幕一区av| 蜜臀久久99精品久久久久久9| 国产精品亚洲一区二区三区妖精| 在线亚洲人成电影网站色www| 日韩视频在线你懂得| 亚洲欧美日韩国产手机在线| 激情综合网天天干| 色综合久久久久久久久久久| 欧美成人性战久久| 亚洲自拍与偷拍| 国产·精品毛片| 69p69国产精品| 中文字幕日本不卡| 美女脱光内衣内裤视频久久网站 | 亚洲人精品午夜| 免费在线观看精品| 94-欧美-setu| 久久一区二区视频| 日韩激情视频在线观看| 91女厕偷拍女厕偷拍高清| 久久久久久免费毛片精品| 亚洲va国产va欧美va观看| 91在线视频观看| 久久久久97国产精华液好用吗| 亚洲成av人片一区二区三区| 色综合一个色综合亚洲| 国产亚洲精品久| 麻豆精品精品国产自在97香蕉| 欧美性猛交xxxx乱大交退制版| 国产精品嫩草影院com| 激情六月婷婷久久| 欧美美女激情18p| 亚洲影视资源网| 色哟哟欧美精品| 亚洲日本va午夜在线电影| 国产精品99久久久久久久vr| 久久蜜桃av一区二区天堂| 麻豆精品在线播放| 91精品视频网| 日本亚洲视频在线| 欧美日韩国产精选| 亚洲国产精品精华液网站| 日本道色综合久久| 亚洲视频一区二区免费在线观看| 成人午夜激情在线| 国产日韩精品一区二区三区| 国产成人在线观看免费网站| 久久免费国产精品| 国产成人免费视| 国产精品久久久久一区二区三区 | 色婷婷综合在线|