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

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

?? menu_over.js

?? java web網(wǎng)絡(luò)編程示例,原代碼資源
?? JS
字號(hào):
//********************************************************
// Do not remove this notice.
//
// Copyright 2000-2004 by Mike Hall.
// See http://www.brainjar.com for terms of use.
//********************************************************
// Modified by Andreas Zahner (a.zahner@alkacon.com)
//********************************************************

//----------------------------------------------
// Code to determine the browser and version.
//----------------------------------------------

function Browser() {

	var ua, s, i;

	this.isIE    = false;  // Internet Explorer
	this.isOP    = false;  // Opera
	this.isNS    = false;  // Netscape
	this.version = null;

	ua = navigator.userAgent;

	s = "Opera";
	if ((i = ua.indexOf(s)) >= 0) {
		this.isOP = true;
		this.version = parseFloat(ua.substr(i + s.length));
		return;
	}

	s = "Netscape6/";
	if ((i = ua.indexOf(s)) >= 0) {
		this.isNS = true;
		this.version = parseFloat(ua.substr(i + s.length));
		return;
	}

	// Treat any other "Gecko" browser as Netscape 6.1.

	s = "Gecko";
	if ((i = ua.indexOf(s)) >= 0) {
		this.isNS = true;
		this.version = 6.1;
		return;
	}

	s = "MSIE";
	if ((i = ua.indexOf(s))) {
		this.isIE = true;
		this.version = parseFloat(ua.substr(i + s.length));
		return;
	}
}

var browser = new Browser();

//----------------------------------------------
// Code for handling the menu bar and active button.
//----------------------------------------------

var activeButton = null;



function buttonClick(event, menuId) {

	var button;
	try {
		// Get the target button element.
	
		if (browser.isIE)
			button = window.event.srcElement;
		else
			button = event.currentTarget;
	
		// Blur focus from the link to remove that annoying outline.
	
		button.blur();
	
		// Associate the named menu to this button if not already done.
		// Additionally, initialize menu display.
	
		if (button.menu == null) {
			button.menu = document.getElementById(menuId);
			if (button.menu.isInitialized == null)
				menuInit(button.menu);
		}
	
	
		// [MODIFIED] Added for activate/deactivate on mouseover.
	
		// Set mouseout event handler for the button, if not already done.
	
		if (button.onmouseout == null)
			button.onmouseout = buttonOrMenuMouseout;
	
		// Exit if this button is the currently active one.
	
		if (button == activeButton)
			return false;
	
		// [END MODIFIED]
	
	
		// Reset the currently active button, if any.
	
		if (activeButton != null) {
			resetButton(activeButton);}
	
		// Activate this button, unless it was the currently active one.
	
		if (button != activeButton) {
			depressButton(button);
			activeButton = button;
		}
		else {
			activeButton = null;	
		}
	} catch (e) {}
	
	return false;
}

function buttonMouseover(event, menuId) {
	var button;

	// [MODIFIED] Added for activate/deactivate on mouseover.

	// Activates this button's menu if no other is currently active.

	if (activeButton == null) {
		buttonClick(event, menuId);
		return;
	}

	// [END MODIFIED]


	// Find the target button element.

	if (browser.isIE)
		button = window.event.srcElement;
	else
		button = event.currentTarget;

	// If any other button menu is active, make this one active instead.

	if (activeButton != null && activeButton != button)
		buttonClick(event, menuId);
}

function depressButton(button) {

	var x, y;

	// Update the button's style class to make it look like it's depressed.

	button.className += " menuButtonActive";
	


	// [MODIFIED] Added for activate/deactivate on mouseover.

	// Set mouseout event handler for the button, if not already done.

	if (button.onmouseout == null)
		button.onmouseout = buttonOrMenuMouseout;
	if (button.menu.onmouseout == null)
		button.menu.onmouseout = buttonOrMenuMouseout;

	// [END MODIFIED]


	// Position the associated drop down menu under the button and show it.

	x = getPageOffsetLeft(button);
	y = getPageOffsetTop(button) + button.offsetHeight;

	// For IE, adjust position.

	if (browser.isIE) {
		x += button.offsetParent.clientLeft;
		y += button.offsetParent.clientTop;
	}
	
	// AZ: corrected IE position error and NS position error on non image menubar links
	var childNodeName = "";
	try {
		if (browser.isNS) {
			// check if there is an image child node in Mozilla based browsers
			childNodeName = button.childNodes[0].tagName;
		}
	} catch (e) {}
		if (browser.isIE) {
		y += 1;
	}
	// /AZ
	
	button.menu.style.left = x + "px";
	button.menu.style.top  = y + "px";
	
	if (browser.isNS) {
		// AZ: workaround to avoid display issues in NS based browsers (disabled)
		//tempMenu = button.menu;
		//setTimeout("showMainMenu();", 0);
	} else {
		//button.menu.style.visibility = "visible";
	}
	button.menu.style.visibility = "visible";
	
	// For IE; size, position and show the menu's IFRAME as well.

	if (button.menu.iframeEl != null) {
		button.menu.iframeEl.style.left = button.menu.style.left;
		button.menu.iframeEl.style.top  = button.menu.style.top;
		button.menu.iframeEl.style.width  = button.menu.offsetWidth + "px";
		button.menu.iframeEl.style.height = button.menu.offsetHeight + "px";
		button.menu.iframeEl.style.display = "";
	}
}

function resetButton(button) {

	// Restore the button's style class.

	removeClassName(button, "menuButtonActive");

	// Hide the button's menu, first closing any sub menus.

	if (button.menu != null) {
		closeSubMenu(button.menu);
		button.menu.style.visibility = "hidden";

		// For IE, hide menu's IFRAME as well.

		if (button.menu.iframeEl != null)
			button.menu.iframeEl.style.display = "none";
	}
}

//----------------------------------------------
// Code to handle the menus and sub menus.
//----------------------------------------------

function menuMouseover(event) {

	var menu;

	// Find the target menu element.

	if (browser.isIE)
		menu = getContainerWith(window.event.srcElement, "DIV", "menu");
	else
		menu = event.currentTarget;

	// Close any active sub menu.

	if (menu.activeItem != null)
		closeSubMenu(menu);
}

function menuItemMouseover(event, menuId) {

	var item, menu, x, y;

	// Find the target item element and its parent menu element.

	if (browser.isIE) {
		item = getContainerWith(window.event.srcElement, "A", "mI");
		// AZ: added support to mark current top navigation item
		if (item == null) {
			item = getContainerWith(window.event.srcElement, "A", "mICurrent");
		}
		// /AZ
	} else {
		item = event.currentTarget;
	}

	menu = getContainerWith(item, "DIV", "menu");

	// Close any active sub menu and mark this one as active.

	if (menu.activeItem != null)
		closeSubMenu(menu);
	menu.activeItem = item;

	// Highlight the item element.

	item.className += " mIHighlight";

	// Initialize the sub menu, if not already done.

	if (item.subMenu == null) {
		item.subMenu = document.getElementById(menuId);
		if (item.subMenu.isInitialized == null)
			menuInit(item.subMenu);
	}


	// [MODIFIED] Added for activate/deactivate on mouseover.

	// Set mouseout event handler for the sub menu, if not already done.

	if (item.subMenu.onmouseout == null)
		item.subMenu.onmouseout = buttonOrMenuMouseout;

	// [END MODIFIED]

	// Get position for submenu based on the menu item.

	x = getPageOffsetLeft(item) + item.offsetWidth;
	y = getPageOffsetTop(item);

	// Adjust position to fit in view.

	var maxX, maxY;

	if (browser.isIE) {
		maxX = Math.max(document.documentElement.scrollLeft, document.body.scrollLeft) +
			(document.documentElement.clientWidth != 0 ? document.documentElement.clientWidth : document.body.clientWidth);
		maxY = Math.max(document.documentElement.scrollTop, document.body.scrollTop) +
			(document.documentElement.clientHeight != 0 ? document.documentElement.clientHeight : document.body.clientHeight);
	}
	if (browser.isOP) {
		maxX = document.documentElement.scrollLeft + window.innerWidth;
		maxY = document.documentElement.scrollTop  + window.innerHeight;
	}
	if (browser.isNS) {
		maxX = window.scrollX + window.innerWidth;
		maxY = window.scrollY + window.innerHeight;
	}
	maxX -= item.subMenu.offsetWidth;
	maxY -= item.subMenu.offsetHeight;

	if (x > maxX)
		x = Math.max(0, x - item.offsetWidth - item.subMenu.offsetWidth
			+ (menu.offsetWidth - item.offsetWidth));
	y = Math.max(0, Math.min(y, maxY));

	// Position and show the sub menu.

	item.subMenu.style.left       = x + "px";
	item.subMenu.style.top        = y + "px";
	item.subMenu.style.visibility = "visible";

	// For IE; size, position and display the menu's IFRAME as well.

	if (item.subMenu.iframeEl != null) {
		item.subMenu.iframeEl.style.left    = item.subMenu.style.left;
		item.subMenu.iframeEl.style.top     = item.subMenu.style.top;
		item.subMenu.iframeEl.style.width   = item.subMenu.offsetWidth + "px";
		item.subMenu.iframeEl.style.height  = item.subMenu.offsetHeight + "px";
		item.subMenu.iframeEl.style.display = "";
	}

	// Stop the event from bubbling.

	if (browser.isIE)
		window.event.cancelBubble = true;
	else
		event.stopPropagation();
}

function closeSubMenu(menu) {

	if (menu == null || menu.activeItem == null)
		return;

	// Recursively close any sub menus.

	if (menu.activeItem.subMenu != null) {
		closeSubMenu(menu.activeItem.subMenu);
		menu.activeItem.subMenu.style.visibility = "hidden";

	// For IE, hide the sub menu's IFRAME as well.

		if (menu.activeItem.subMenu.iframeEl != null)
			menu.activeItem.subMenu.iframeEl.style.display = "none";

		menu.activeItem.subMenu = null;
	}

	// Deactivate the active menu item.

	removeClassName(menu.activeItem, "mIHighlight");
	menu.activeItem = null;
}


// [MODIFIED] Added for activate/deactivate on mouseover. Handler for mouseout event on buttons and menus.

function buttonOrMenuMouseout(event) {

	var el;

	// If there is no active button, exit.

	if (activeButton == null)
		return;

	// Find the element the mouse is moving to.

	if (browser.isIE)
		el = window.event.toElement;
	else if (event.relatedTarget != null)
		el = (event.relatedTarget.tagName ? event.relatedTarget : event.relatedTarget.parentNode);

	// If the element is not part of a menu, reset the active button.

	if (getContainerWith(el, "DIV", "menu") == null) {
		resetButton(activeButton);
		activeButton = null;
	}
}

// [END MODIFIED]


//----------------------------------------------
// Code to initialize menus.
//----------------------------------------------

function menuInit(menu) {

	var itemList, spanList;
	var textEl, arrowEl;
	var itemWidth;
	var w, dw;
	var i, j;

	// For IE, replace arrow characters.

	if (browser.isIE) {
		menu.style.lineHeight = "2.5ex";
		spanList = menu.getElementsByTagName("SPAN");
		for (i = 0; i < spanList.length; i++)
			if (hasClassName(spanList[i], "mIArrow")) {
				spanList[i].style.fontFamily = "Webdings";
				spanList[i].firstChild.nodeValue = "4";
			}
	}

	// Find the width of a menu item.

	itemList = menu.getElementsByTagName("A");
	if (itemList.length > 0)
		itemWidth = itemList[0].offsetWidth;
	else
		return;

	// For items with arrows, add padding to item text to make the arrows flush right.

	for (i = 0; i < itemList.length; i++) {
		spanList = itemList[i].getElementsByTagName("SPAN");
		textEl  = null;
		arrowEl = null;
		for (j = 0; j < spanList.length; j++) {
			if (hasClassName(spanList[j], "mIText"))
				textEl = spanList[j];
			if (hasClassName(spanList[j], "mIArrow"))
				arrowEl = spanList[j];
		}
		if (textEl != null && arrowEl != null) {
			textEl.style.paddingRight = (itemWidth 
				- (textEl.offsetWidth + arrowEl.offsetWidth)) + "px";
			// For Opera, remove the negative right margin to fix a display bug.
			if (browser.isOP)
				arrowEl.style.marginRight = "0px";
		}
	}

	// Fix IE hover problem by setting an explicit width on first item of the menu.

	if (browser.isIE) {
		w = itemList[0].offsetWidth;
		itemList[0].style.width = w + "px";
		dw = itemList[0].offsetWidth - w;
		w -= dw;
		itemList[0].style.width = w + "px";
	}

	// Fix the IE display problem (SELECT elements and other windowed controls
	// overlaying the menu) by adding an IFRAME under the menu.

	if (browser.isIE) {
		menu.iframeEl = menu.parentNode.insertBefore(document.createElement("IFRAME"), menu);
		menu.iframeEl.style.display = "none";
		menu.iframeEl.style.position = "absolute";
	}

	// Mark menu as initialized.
	menu.isInitialized = true;
}

//----------------------------------------------
// General utility functions.
//----------------------------------------------

function getContainerWith(node, tagName, className) {

	// Starting with the given node, find the nearest containing element
	// with the specified tag name and style class.
	while (node != null) {
		if (node.tagName != null && node.tagName == tagName &&
				hasClassName(node, className))
			return node;
		node = node.parentNode;
	}

	return node;
}

function hasClassName(el, name) {

	var i, list;

	// Return true if the given element currently has the given class name.

	list = el.className.split(" ");
	for (i = 0; i < list.length; i++)
		if (list[i] == name)
			return true;

	return false;
}

function removeClassName(el, name) {

	var i, curList, newList;

	if (el.className == null)
		return;

	// Remove the given class name from the element's className property.

	newList = new Array();
	curList = el.className.split(" ");
	for (i = 0; i < curList.length; i++)
		if (curList[i] != name)
			newList.push(curList[i]);
	el.className = newList.join(" ");
}

function getPageOffsetLeft(el) {
	var x;
	// Return the x coordinate of an element relative to the page.
	x = el.offsetLeft;
	if (el.offsetParent != null)
	x += getPageOffsetLeft(el.offsetParent);

	return x;
}

function getPageOffsetTop(el) {
	var y;
	// Return the y coordinate of an element relative to the page.
	y = el.offsetTop;
	if (el.offsetParent != null)
	y += getPageOffsetTop(el.offsetParent);

	return y;
}

// AZ: workaround to avoid display issues in NS based browsers
var tempMenu;
function showMainMenu() {
	tempMenu.style.visibility = "visible";
}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
麻豆一区二区三区| 一区二区三区不卡在线观看| 麻豆91在线播放| 日韩亚洲欧美综合| 九色|91porny| 久久精品亚洲乱码伦伦中文| 成人av影院在线| 一区二区在线观看不卡| 欧美羞羞免费网站| 麻豆极品一区二区三区| 国产亚洲精品超碰| 91麻豆精品视频| 午夜精品久久久久久久99樱桃| 欧美一区二区三区白人 | 亚洲国产精品久久人人爱蜜臀| 91福利在线看| 日日夜夜精品视频免费| 久久综合色8888| av不卡在线观看| 亚洲成a人片在线不卡一二三区| 欧美zozozo| 99视频热这里只有精品免费| 免费久久精品视频| 欧美激情一区三区| 欧美老女人在线| 丁香激情综合国产| 亚洲一区二区三区四区不卡| 久久久综合视频| 欧亚一区二区三区| 国内欧美视频一区二区| 亚洲精品国产视频| 久久日一线二线三线suv| 色综合久久久久综合| 麻豆成人91精品二区三区| 亚洲蜜桃精久久久久久久| 欧美成人三级电影在线| 色先锋资源久久综合| 国内外成人在线| 亚洲第一av色| 国产精品久久毛片av大全日韩| 在线综合+亚洲+欧美中文字幕| 成人av在线一区二区| 麻豆极品一区二区三区| 亚洲国产精品久久久久婷婷884| 国产清纯白嫩初高生在线观看91 | 欧美一区在线视频| 成年人网站91| 久久99精品国产麻豆婷婷 | 日韩欧美国产一区二区三区| 99久久精品免费精品国产| 国模大尺度一区二区三区| 亚洲地区一二三色| 亚洲日本韩国一区| 国产精品丝袜91| 久久久精品tv| 久久夜色精品国产欧美乱极品| 欧美日韩高清不卡| 欧美中文字幕一区| 91免费视频网| 成人av在线一区二区三区| 国产精品123区| 精彩视频一区二区三区| 老司机精品视频一区二区三区| 亚洲成人7777| 亚洲国产日韩综合久久精品| 亚洲私人黄色宅男| 亚洲欧美日韩一区| 亚洲色图在线播放| 亚洲人成网站在线| 亚洲三级在线免费观看| 17c精品麻豆一区二区免费| 欧美激情一区二区三区四区| 国产婷婷一区二区| 国产欧美精品在线观看| 欧美—级在线免费片| 国产三区在线成人av| 国产亚洲婷婷免费| 欧美韩日一区二区三区四区| 亚洲国产精品成人综合| 国产精品青草综合久久久久99| 日本一区二区三区国色天香| 国产欧美视频一区二区三区| 中文字幕乱码日本亚洲一区二区| 欧美激情中文字幕一区二区| 综合电影一区二区三区| 亚洲综合免费观看高清在线观看| 亚洲图片一区二区| 日韩专区欧美专区| 精品亚洲国内自在自线福利| 国产麻豆午夜三级精品| 国产91精品一区二区麻豆网站| 岛国一区二区三区| 色婷婷国产精品| 91精品在线免费观看| 精品久久久网站| 国产精品国模大尺度视频| 亚洲欧美另类在线| 日韩vs国产vs欧美| 国产一区二区毛片| av电影天堂一区二区在线| 欧美性大战久久| 日韩精品一区二区三区视频在线观看| 精品处破学生在线二十三| 国产香蕉久久精品综合网| 亚洲人成在线观看一区二区| 三级欧美在线一区| 国产九色sp调教91| 色哟哟一区二区三区| 欧美电影免费观看高清完整版在线观看 | 午夜国产精品一区| 国产一区二区三区在线观看免费 | 国产三级久久久| 亚洲一区二区欧美日韩| 韩国女主播一区| 色美美综合视频| 精品毛片乱码1区2区3区| 最新国产成人在线观看| 亚洲va天堂va国产va久| 粉嫩av一区二区三区在线播放| 在线精品视频一区二区三四| 精品第一国产综合精品aⅴ| 亚洲免费观看在线观看| 精品一区二区三区的国产在线播放| 成人激情小说乱人伦| 欧美久久一区二区| 国产精品久久久久9999吃药| 日韩国产欧美视频| 91丝袜美女网| 精品电影一区二区三区| 亚洲v精品v日韩v欧美v专区| 成人精品在线视频观看| 欧美大片在线观看| 亚洲福利视频三区| 成人av在线影院| www国产成人| 日韩激情一二三区| 日本道精品一区二区三区 | 日韩欧美电影一二三| 亚洲九九爱视频| 成人免费看黄yyy456| 欧美成人午夜电影| 日本怡春院一区二区| 欧美性大战久久久| 亚洲精品老司机| 99re这里都是精品| 国产精品无码永久免费888| 免费观看91视频大全| 91传媒视频在线播放| 国产精品美女视频| 国产999精品久久久久久绿帽| 日韩精品一区二| 麻豆91在线播放免费| 日韩欧美国产精品| 日韩黄色免费电影| 欧美日韩久久一区| 日韩精彩视频在线观看| 欧美综合一区二区三区| 亚洲女爱视频在线| 色哟哟一区二区在线观看| 亚洲人成网站影音先锋播放| hitomi一区二区三区精品| 国产午夜久久久久| 国产精品99久久不卡二区| 精品国产乱码久久久久久蜜臀| 久久99精品久久久久久| 欧美xfplay| 激情伊人五月天久久综合| 欧美va天堂va视频va在线| 久久精品久久精品| 欧美www视频| 国产成人欧美日韩在线电影| 国产亚洲欧美激情| 不卡的av电影| 亚洲精品国产视频| 日韩欧美aaaaaa| 免费观看一级特黄欧美大片| 日韩一区二区三| 国产麻豆精品在线观看| 亚洲国产精品高清| 91麻豆蜜桃一区二区三区| 亚洲妇熟xx妇色黄| 欧美美女网站色| 老司机免费视频一区二区三区| 久久色成人在线| 91丝袜美女网| 日韩在线观看一区二区| 精品国产一区二区三区忘忧草| 激情五月播播久久久精品| 国产网站一区二区| 色88888久久久久久影院野外| 亚洲成人免费在线观看| 欧美一区二区三区啪啪| 粉嫩av一区二区三区| 一区二区三区欧美日韩| 4438成人网| 国产成人啪午夜精品网站男同| 亚洲黄色av一区| 精品国内片67194| 99视频精品在线| 免费欧美在线视频|