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

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

?? dropdownbutton.js

?? 圖書管理系統包括圖書的增加、刪除、修改等功能
?? JS
字號:
/*	Copyright (c) 2004-2006, The Dojo Foundation	All Rights Reserved.	Licensed under the Academic Free License version 2.1 or above OR the	modified BSD license. For more information on Dojo licensing, see:		http://dojotoolkit.org/community/licensing.shtml*//* TODO:
 * - make the dropdown "smart" so it can't get cutoff on bottom of page, sides of page, etc.
 */

dojo.provide("dojo.widget.html.DropdownButton");

dojo.require("dojo.event.*");
dojo.require("dojo.widget.*");
dojo.require("dojo.widget.HtmlWidget");
dojo.require("dojo.uri.Uri");
dojo.require("dojo.dom");
dojo.require("dojo.style");
dojo.require("dojo.html");

dojo.widget.html.DropdownButton = function() {
	// mix in the button properties
	dojo.widget.DropdownButton.call(this);
	dojo.widget.HtmlWidget.call(this);
}

dojo.inherits(dojo.widget.html.DropdownButton, dojo.widget.HtmlWidget);

dojo.lang.extend(dojo.widget.html.DropdownButton, {
	
	// In IE, event handlers on objects inside buttons don't work correctly, so
	// we just set onClick on the button itself.
	templatePath: dojo.uri.dojoUri("src/widget/templates/HtmlDropDownButtonTemplate.html"),
	templateCssPath: dojo.uri.dojoUri("src/widget/templates/HtmlButtonTemplate.css"),

	// attach points
	button: null,
	table: null,
	labelCell: null,
	borderCell: null,
	arrowCell: null,
	arrow: null,

	fillInTemplate: function(args, frag) {
		// input data (containing the anchor for the button itself, plus the
		// thing to display when you push the down arrow)
		var input = frag["dojo:"+this.widgetType.toLowerCase()]["nodeRef"];

		// Recursively expand widgets inside of the <dojo:dropdownButton>
		var parser = new dojo.xml.Parse();
		var frag = parser.parseElement(input, null, true);
		var ary = dojo.widget.getParser().createComponents(frag);

		this.a = dojo.dom.getFirstChildElement(input);	// the button contents
		this.menu = dojo.dom.getNextSiblingElement(this.a);	// the menu under the button
		
		this.disabled = dojo.html.hasClass(this.a, "disabled");
		if( this.disabled ) {
			dojo.html.addClass(this.button, "dojoDisabled");
			this.domNode.setAttribute("disabled", "true");
		}

		dojo.html.disableSelection(this.a);
		this.a.style["text-decoration"]="none";
		this.labelCell.appendChild(this.a);

		this.arrow.src =
			dojo.uri.dojoUri("src/widget/templates/images/dropdownButtonsArrow" +
			(this.disabled ? "-disabled" : "") + ".gif");

		// Attach menu to body so that it appears above other buttons
		this.menu.style.position="absolute";
		this.menu.style.display="none";
		this.menu.style["z-index"] = 99;
		document.body.appendChild(this.menu);
	},

	postCreate: function() {
		if ( dojo.render.html.ie ) {
			// Compensate for IE's weird padding of button content, which seems to be relative
			// to the length of the content
			var contentWidth = dojo.style.getOuterWidth(this.table);
			this.labelCell.style["left"] = "-" + (contentWidth / 10) + "px";
			this.arrowCell.style["left"] = (contentWidth / 10) + "px";
		}

		// Make menu at least as wide as the button
		var buttonWidth = dojo.style.getOuterWidth(this.button);
		var menuWidth = dojo.style.getOuterWidth(this.menu);
		if ( buttonWidth > menuWidth ) {
			dojo.style.setOuterWidth(this.menu, buttonWidth);
		}
	},

	// If someone clicks anywhere else on the screen (including another menu),
	// then close this menu.
	onCanvasMouseDown: function(e) {
		if( !dojo.dom.isDescendantOf(e.target, this.button) &&
			!dojo.dom.isDescendantOf(e.target, this.menu) ) {
			this.hideMenu();
		}
	},

	eventWasOverArrow: function(e) {
		// want to use dojo.html.overElement() but also need to detect clicks
		// on the area between the arrow and the edge of the button
		var eventX = e.clientX;
		var borderX = dojo.style.totalOffsetLeft(this.borderCell);
		return (eventX > borderX );
	},

	onMouseOver: function(e) {
		dojo.html.addClass(this.button, "dojoButtonHover");
		dojo.html.removeClass(this.button, "dojoButtonNoHover");
	},
	
	onMouseOut: function(e) {
		dojo.html.removeClass(this.button, "dojoButtonHover");
		dojo.html.addClass(this.button, "dojoButtonNoHover");
	},

	onClick: function(e) {
		if ( this.eventWasOverArrow(e) ) {
			this._onClickArrow();
		} else {
			this._onClickButton();
		}
	},

	// Action when the user presses the button
	_onClickButton: function(e) {
		if ( this.a ) {
			if ( this.a.click ) {
				this.a.click();
			} else if ( this.a.href ) {
				location.href = this.a.href;
			}
		}
	},

	// Action when user presses the arrow
	_onClickArrow: function() {
		if ( this.menu.style.display == "none" ) {
			this.showMenu();
		} else {
			this.hideMenu();
		}
	},
	
	showMenu: function() {
		if ( this.disabled )
			return;

		// Position it accordingly, relative to screen root (since
		// it's attached to document.body)
		this.menu.style.left = dojo.style.totalOffsetLeft(this.button) + "px";
		this.menu.style.top = dojo.style.totalOffsetTop(this.button) + dojo.style.getOuterHeight(this.button) + "px";

		// Display the menu; do this funky code below to stop the menu from extending
		// all the way to the right edge of the screen.
		// TODO: retest simple display="" to confirm that it doesn't work.
		try {
			this.menu.style.display="table";	// mozilla
		} catch(e) {
			this.menu.style.display="block";	// IE
		}

		// If someone clicks somewhere else on the screen then close the menu
		dojo.event.connect(document.documentElement, "onmousedown", this, "onCanvasMouseDown");
		
		// When someone clicks the menu, after the menu handles the event,
		// close the menu (be careful not to close the menu too early or else
		// the menu will never receive the event.)
		dojo.event.connect(this.menu, "onclick", this, "hideMenu");
	},

	hideMenu: function() {
		this.menu.style.display = "none";
		dojo.event.disconnect(document.documentElement, "onmousedown", this, "onCanvasMouseDown");
		dojo.event.disconnect(this.menu, "onclick", this, "hideMenu");
	}
});


?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲精品视频免费观看| 国产成人日日夜夜| 国产一区二区三区在线观看免费| 成人自拍视频在线| 91.成人天堂一区| 久久精品国产99久久6| 色婷婷av一区二区三区之一色屋| 欧美一区二区播放| 亚洲一二三区视频在线观看| 国产91综合网| 日韩欧美高清一区| 亚洲小说欧美激情另类| 成人免费福利片| 久久久不卡影院| 天天色综合天天| 91福利小视频| 亚洲毛片av在线| fc2成人免费人成在线观看播放| 日韩免费福利电影在线观看| 亚洲18色成人| 欧美性生活影院| 一区二区三区在线视频观看 | 国产最新精品免费| 欧美日韩国产色站一区二区三区| 综合av第一页| 成人app在线观看| 国产三级一区二区三区| 偷拍一区二区三区| 欧美四级电影网| 亚洲欧美激情在线| 99re66热这里只有精品3直播 | 久久久www免费人成精品| 亚洲成a人v欧美综合天堂| 一本色道综合亚洲| 亚洲女性喷水在线观看一区| 波多野结衣欧美| 国产精品区一区二区三| 成人美女在线视频| 亚洲三级电影网站| 欧美午夜精品一区二区三区| 一区二区三区.www| 欧美日韩久久久一区| 午夜国产精品一区| 日韩女优毛片在线| 激情深爱一区二区| 三级不卡在线观看| 日韩一级二级三级精品视频| 蜜臀99久久精品久久久久久软件| 欧美一级二级三级蜜桃| 韩国精品久久久| 国产精品欧美极品| 91国偷自产一区二区开放时间| 一区二区三区中文在线| 欧美日韩国产免费| 韩国三级在线一区| 国产精品免费av| 91久久精品网| 轻轻草成人在线| 国产亚洲污的网站| 在线免费精品视频| 美脚の诱脚舐め脚责91| 国产精品水嫩水嫩| 欧美日韩一区不卡| 国产一区二区三区不卡在线观看| 久久久蜜桃精品| 91蜜桃在线免费视频| 亚洲国产精品一区二区久久恐怖片| 欧美日韩成人一区二区| 国产精品一区二区三区网站| 日韩美女视频19| 欧美一级日韩不卡播放免费| 国产精品12区| 亚洲一区二区三区中文字幕| 精品国产一区二区三区久久久蜜月| 成人免费看片app下载| 亚洲高清三级视频| 国产精品欧美久久久久一区二区| 亚洲国产精品ⅴa在线观看| 在线影视一区二区三区| 国产精品资源网| 一区二区三区四区乱视频| 欧美变态口味重另类| 91视视频在线直接观看在线看网页在线看 | 国产精品视频观看| 欧美一区二区三区免费视频| 国产成a人亚洲| 日韩不卡一区二区三区| 国产精品久久久久久久蜜臀| 日韩视频免费观看高清在线视频| 99国产精品国产精品毛片| 青青草精品视频| 一区二区三区中文免费| 国产精品人人做人人爽人人添 | 国产亚洲精品aa午夜观看| 欧美色图激情小说| 99久久精品国产麻豆演员表| 国产精品456露脸| 免费久久精品视频| 图片区日韩欧美亚洲| 中文字幕日韩欧美一区二区三区| 精品国产欧美一区二区| 欧美乱熟臀69xxxxxx| 91国偷自产一区二区开放时间| 激情综合网最新| 日韩av在线免费观看不卡| 亚洲精品视频在线观看网站| 国产精品久久久久久久裸模| 久久久www成人免费无遮挡大片| 欧美一区二区黄色| 在线综合+亚洲+欧美中文字幕| 在线视频国产一区| 在线免费亚洲电影| 91国内精品野花午夜精品| 色婷婷av一区| 在线中文字幕不卡| 在线观看av不卡| 欧美在线影院一区二区| 在线免费观看一区| 精品视频999| 欧美人体做爰大胆视频| 制服.丝袜.亚洲.中文.综合| 51精品秘密在线观看| 91精品国产综合久久久久久漫画| 91.xcao| 欧美精品一区二区三区四区| 欧美videos中文字幕| 久久综合久色欧美综合狠狠| 久久久久久麻豆| 欧美激情一区不卡| 日韩久久一区二区| 亚洲国产精品久久一线不卡| 一区二区三区国产精品| 丝瓜av网站精品一区二区| 日韩电影在线一区二区三区| 麻豆成人综合网| 国产成人免费av在线| 99久久精品免费看国产免费软件| 91亚洲精品久久久蜜桃| 色哟哟在线观看一区二区三区| 欧美三级午夜理伦三级中视频| 欧美日韩午夜在线视频| 亚洲日本va在线观看| 天天综合色天天| 国产一区二区三区不卡在线观看| 本田岬高潮一区二区三区| 欧美三级中文字幕在线观看| 欧美不卡一区二区| 亚洲三级免费电影| 日本成人在线看| gogogo免费视频观看亚洲一| 欧美猛男超大videosgay| 精品福利av导航| 亚洲猫色日本管| 黑人精品欧美一区二区蜜桃| 不卡电影免费在线播放一区| 欧美日韩国产三级| 中文字幕欧美区| 丝袜亚洲另类丝袜在线| 丰满白嫩尤物一区二区| 欧美视频在线一区二区三区 | 日本成人在线网站| 成人成人成人在线视频| 67194成人在线观看| 国产嫩草影院久久久久| 亚洲第一综合色| 成人夜色视频网站在线观看| 欧美日韩和欧美的一区二区| 国产欧美日韩另类视频免费观看| 亚洲成人av免费| 成人精品一区二区三区四区| 7777精品久久久大香线蕉| 国产精品久久久99| 久久99久久久欧美国产| 色噜噜狠狠成人中文综合| 久久久久久亚洲综合| 日韩国产在线观看| 色视频成人在线观看免| 中文字幕国产精品一区二区| 美腿丝袜亚洲一区| 欧美日韩国产片| 亚洲精品国产品国语在线app| 国产激情91久久精品导航 | 色久优优欧美色久优优| 国产婷婷色一区二区三区在线| 日本不卡一二三| 欧美精品丝袜久久久中文字幕| 亚洲三级在线观看| av在线不卡免费看| 国产欧美va欧美不卡在线| 久久精品国产一区二区| 337p亚洲精品色噜噜| 亚洲自拍偷拍麻豆| 色哟哟一区二区在线观看| 国产精品国产自产拍在线| 国产精品77777| 国产午夜久久久久| 高清免费成人av| 亚洲国产精品黑人久久久| 国产成人av一区二区三区在线观看| 欧美成人video|