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

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

?? popupwindow.js

?? JavaScript編寫的彈出式日歷程序
?? JS
字號:
// ===================================================================// Author: Matt Kruse <matt@mattkruse.com>// WWW: http://www.mattkruse.com///// NOTICE: You may use this code for any purpose, commercial or// private, without any further permission from the author. You may// remove this notice from your final code if you wish, however it is// appreciated by the author if at least my web site address is kept.//// You may *NOT* re-distribute this code in any way except through its// use. That means, you can include it in your product, or your web// site, or any other form where the code is actually being used. You// may not put the plain javascript up on your site for download or// include it in your javascript libraries for download. // If you wish to share this code with others, please just point them// to the URL instead.// Please DO NOT link directly to my .js files from your site. Copy// the files to your server and use them there. Thank you.// ===================================================================/* PopupWindow.jsAuthor: Matt KruseLast modified: 02/16/04DESCRIPTION: This object allows you to easily and quickly popup a windowin a certain place. The window can either be a DIV or a separate browserwindow.COMPATABILITY: Works with Netscape 4.x, 6.x, IE 5.x on Windows. Some smallpositioning errors - usually with Window positioning - occur on the Macintosh platform. Due to bugs in Netscape 4.x, populating the popup window with <STYLE> tags may cause errors.USAGE:// Create an object for a WINDOW popupvar win = new PopupWindow(); // Create an object for a DIV window using the DIV named 'mydiv'var win = new PopupWindow('mydiv'); // Set the window to automatically hide itself when the user clicks // anywhere else on the page except the popupwin.autoHide(); // Show the window relative to the anchor name passed inwin.showPopup(anchorname);// Hide the popupwin.hidePopup();// Set the size of the popup window (only applies to WINDOW popupswin.setSize(width,height);// Populate the contents of the popup window that will be shown. If you // change the contents while it is displayed, you will need to refresh()win.populate(string);// set the URL of the window, rather than populating its contents// manuallywin.setUrl("http://www.site.com/");// Refresh the contents of the popupwin.refresh();// Specify how many pixels to the right of the anchor the popup will appearwin.offsetX = 50;// Specify how many pixels below the anchor the popup will appearwin.offsetY = 100;NOTES:1) Requires the functions in AnchorPosition.js2) Your anchor tag MUST contain both NAME and ID attributes which are the    same. For example:   <A NAME="test" ID="test"> </A>3) There must be at least a space between <A> </A> for IE5.5 to see the    anchor tag correctly. Do not do <A></A> with no space.4) When a PopupWindow object is created, a handler for 'onmouseup' is   attached to any event handler you may have already defined. Do NOT define   an event handler for 'onmouseup' after you define a PopupWindow object or   the autoHide() will not work correctly.*/ // Set the position of the popup window based on the anchorfunction PopupWindow_getXYPosition(anchorname) {	var coordinates;	if (this.type == "WINDOW") {		coordinates = getAnchorWindowPosition(anchorname);		}	else {		coordinates = getAnchorPosition(anchorname);		}	this.x = coordinates.x;	this.y = coordinates.y;	}// Set width/height of DIV/popup windowfunction PopupWindow_setSize(width,height) {	this.width = width;	this.height = height;	}// Fill the window with contentsfunction PopupWindow_populate(contents) {	this.contents = contents;	this.populated = false;	}// Set the URL to go tofunction PopupWindow_setUrl(url) {	this.url = url;	}// Set the window popup propertiesfunction PopupWindow_setWindowProperties(props) {	this.windowProperties = props;	}// Refresh the displayed contents of the popupfunction PopupWindow_refresh() {	if (this.divName != null) {		// refresh the DIV object		if (this.use_gebi) {			document.getElementById(this.divName).innerHTML = this.contents;			}		else if (this.use_css) { 			document.all[this.divName].innerHTML = this.contents;			}		else if (this.use_layers) { 			var d = document.layers[this.divName]; 			d.document.open();			d.document.writeln(this.contents);			d.document.close();			}		}	else {		if (this.popupWindow != null && !this.popupWindow.closed) {			if (this.url!="") {				this.popupWindow.location.href=this.url;				}			else {				this.popupWindow.document.open();				this.popupWindow.document.writeln(this.contents);				this.popupWindow.document.close();			}			this.popupWindow.focus();			}		}	}// Position and show the popup, relative to an anchor objectfunction PopupWindow_showPopup(anchorname) {	this.getXYPosition(anchorname);	this.x += this.offsetX;	this.y += this.offsetY;	if (!this.populated && (this.contents != "")) {		this.populated = true;		this.refresh();		}	if (this.divName != null) {		// Show the DIV object		if (this.use_gebi) {			document.getElementById(this.divName).style.left = this.x + "px";			document.getElementById(this.divName).style.top = this.y + "px";			document.getElementById(this.divName).style.visibility = "visible";			}		else if (this.use_css) {			document.all[this.divName].style.left = this.x;			document.all[this.divName].style.top = this.y;			document.all[this.divName].style.visibility = "visible";			}		else if (this.use_layers) {			document.layers[this.divName].left = this.x;			document.layers[this.divName].top = this.y;			document.layers[this.divName].visibility = "visible";			}		}	else {		if (this.popupWindow == null || this.popupWindow.closed) {			// If the popup window will go off-screen, move it so it doesn't			if (this.x<0) { this.x=0; }			if (this.y<0) { this.y=0; }			if (screen && screen.availHeight) {				if ((this.y + this.height) > screen.availHeight) {					this.y = screen.availHeight - this.height;					}				}			if (screen && screen.availWidth) {				if ((this.x + this.width) > screen.availWidth) {					this.x = screen.availWidth - this.width;					}				}			var avoidAboutBlank = window.opera || ( document.layers && !navigator.mimeTypes['*'] ) || navigator.vendor == 'KDE' || ( document.childNodes && !document.all && !navigator.taintEnabled );			this.popupWindow = window.open(avoidAboutBlank?"":"about:blank","window_"+anchorname,this.windowProperties+",width="+this.width+",height="+this.height+",screenX="+this.x+",left="+this.x+",screenY="+this.y+",top="+this.y+"");			}		this.refresh();		}	}// Hide the popupfunction PopupWindow_hidePopup() {	if (this.divName != null) {		if (this.use_gebi) {			document.getElementById(this.divName).style.visibility = "hidden";			}		else if (this.use_css) {			document.all[this.divName].style.visibility = "hidden";			}		else if (this.use_layers) {			document.layers[this.divName].visibility = "hidden";			}		}	else {		if (this.popupWindow && !this.popupWindow.closed) {			this.popupWindow.close();			this.popupWindow = null;			}		}	}// Pass an event and return whether or not it was the popup DIV that was clickedfunction PopupWindow_isClicked(e) {	if (this.divName != null) {		if (this.use_layers) {			var clickX = e.pageX;			var clickY = e.pageY;			var t = document.layers[this.divName];			if ((clickX > t.left) && (clickX < t.left+t.clip.width) && (clickY > t.top) && (clickY < t.top+t.clip.height)) {				return true;				}			else { return false; }			}		else if (document.all) { // Need to hard-code this to trap IE for error-handling			var t = window.event.srcElement;			while (t.parentElement != null) {				if (t.id==this.divName) {					return true;					}				t = t.parentElement;				}			return false;			}		else if (this.use_gebi && e) {			var t = e.originalTarget;			while (t.parentNode != null) {				if (t.id==this.divName) {					return true;					}				t = t.parentNode;				}			return false;			}		return false;		}	return false;	}// Check an onMouseDown event to see if we should hidefunction PopupWindow_hideIfNotClicked(e) {	if (this.autoHideEnabled && !this.isClicked(e)) {		this.hidePopup();		}	}// Call this to make the DIV disable automatically when mouse is clicked outside itfunction PopupWindow_autoHide() {	this.autoHideEnabled = true;	}// This global function checks all PopupWindow objects onmouseup to see if they should be hiddenfunction PopupWindow_hidePopupWindows(e) {	for (var i=0; i<popupWindowObjects.length; i++) {		if (popupWindowObjects[i] != null) {			var p = popupWindowObjects[i];			p.hideIfNotClicked(e);			}		}	}// Run this immediately to attach the event listenerfunction PopupWindow_attachListener() {	if (document.layers) {		document.captureEvents(Event.MOUSEUP);		}	window.popupWindowOldEventListener = document.onmouseup;	if (window.popupWindowOldEventListener != null) {		document.onmouseup = new Function("window.popupWindowOldEventListener(); PopupWindow_hidePopupWindows();");		}	else {		document.onmouseup = PopupWindow_hidePopupWindows;		}	}// CONSTRUCTOR for the PopupWindow object// Pass it a DIV name to use a DHTML popup, otherwise will default to window popupfunction PopupWindow() {	if (!window.popupWindowIndex) { window.popupWindowIndex = 0; }	if (!window.popupWindowObjects) { window.popupWindowObjects = new Array(); }	if (!window.listenerAttached) {		window.listenerAttached = true;		PopupWindow_attachListener();		}	this.index = popupWindowIndex++;	popupWindowObjects[this.index] = this;	this.divName = null;	this.popupWindow = null;	this.width=0;	this.height=0;	this.populated = false;	this.visible = false;	this.autoHideEnabled = false;		this.contents = "";	this.url="";	this.windowProperties="toolbar=no,location=no,status=no,menubar=no,scrollbars=auto,resizable,alwaysRaised,dependent,titlebar=no";	if (arguments.length>0) {		this.type="DIV";		this.divName = arguments[0];		}	else {		this.type="WINDOW";		}	this.use_gebi = false;	this.use_css = false;	this.use_layers = false;	if (document.getElementById) { this.use_gebi = true; }	else if (document.all) { this.use_css = true; }	else if (document.layers) { this.use_layers = true; }	else { this.type = "WINDOW"; }	this.offsetX = 0;	this.offsetY = 0;	// Method mappings	this.getXYPosition = PopupWindow_getXYPosition;	this.populate = PopupWindow_populate;	this.setUrl = PopupWindow_setUrl;	this.setWindowProperties = PopupWindow_setWindowProperties;	this.refresh = PopupWindow_refresh;	this.showPopup = PopupWindow_showPopup;	this.hidePopup = PopupWindow_hidePopup;	this.setSize = PopupWindow_setSize;	this.isClicked = PopupWindow_isClicked;	this.autoHide = PopupWindow_autoHide;	this.hideIfNotClicked = PopupWindow_hideIfNotClicked;	}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产酒店精品激情| 久久久久久久综合色一本| 奇米色一区二区| 国产欧美综合在线| 777奇米四色成人影色区| 精品伊人久久久久7777人| 亚洲另类色综合网站| 久久影音资源网| 91麻豆精品国产91| 一本到高清视频免费精品| 老司机午夜精品99久久| 亚洲福利视频三区| 中文欧美字幕免费| 精品999久久久| 欧美精品亚洲一区二区在线播放| 成人av电影在线| 九色综合国产一区二区三区| 亚洲va在线va天堂| 亚洲日本va午夜在线电影| 久久色.com| 欧美videossexotv100| 欧美日韩精品欧美日韩精品一综合| 成人av电影在线观看| 国产成a人无v码亚洲福利| 久久国产精品色| 免费成人在线观看| 婷婷六月综合网| 亚洲图片欧美色图| 亚洲一区二区三区在线播放| 自拍av一区二区三区| 18欧美乱大交hd1984| 久久综合丝袜日本网| 精品日韩在线观看| 日韩欧美国产系列| 欧美成人猛片aaaaaaa| 日韩精品一区二区三区四区视频 | 亚洲精品你懂的| 亚洲视频在线观看一区| 国产精品免费视频一区| 国产精品视频一二三区| 国产欧美精品区一区二区三区| 精品国产91久久久久久久妲己| 日韩免费电影网站| 欧美zozozo| 久久久久久久久久久久久久久99 | 亚洲国产精品视频| 日韩精品乱码免费| 日本不卡高清视频| 丝袜美腿高跟呻吟高潮一区| 日韩在线观看一区二区| 免费观看在线综合色| 性欧美疯狂xxxxbbbb| 三级久久三级久久久| 日韩精品三区四区| 国内外成人在线视频| 国产精品网曝门| av午夜一区麻豆| 欧美吻胸吃奶大尺度电影 | 色噜噜狠狠色综合欧洲selulu| 99久久99久久久精品齐齐| 91女厕偷拍女厕偷拍高清| 欧美在线观看你懂的| 欧美日韩一级大片网址| 日韩午夜在线观看视频| 国产午夜亚洲精品理论片色戒| 国产精品毛片大码女人| 亚洲综合偷拍欧美一区色| 日韩精品一卡二卡三卡四卡无卡| 久久国产精品99久久久久久老狼| 国产高清久久久久| 在线一区二区三区| 欧美不卡视频一区| 亚洲视频1区2区| 日韩精品1区2区3区| 国产剧情av麻豆香蕉精品| 色婷婷久久一区二区三区麻豆| 欧美日本在线观看| 国产性做久久久久久| 亚洲综合色婷婷| 韩国欧美国产1区| 色综合天天综合给合国产| 欧美一区二区视频在线观看| 国产欧美精品在线观看| 久久一区二区三区四区| 国产成人精品亚洲日本在线桃色 | 婷婷中文字幕综合| 国产成a人亚洲精品| 欧美精品日韩精品| 久久蜜臀精品av| 亚洲综合自拍偷拍| 激情欧美一区二区| 日本道色综合久久| 久久精品网站免费观看| 午夜精品一区二区三区免费视频| 国产精品系列在线播放| 欧美日韩三级一区二区| 国产欧美一区二区在线| 日韩电影免费在线观看网站| www.性欧美| 久久午夜色播影院免费高清| 亚洲亚洲人成综合网络| 成人动漫av在线| 精品国产一区二区国模嫣然| 亚洲一区二区中文在线| 成人激情黄色小说| 欧美成人a∨高清免费观看| 亚洲免费在线播放| 成人中文字幕合集| 亚洲精品在线电影| 日韩精品国产精品| 欧美影院精品一区| 综合色天天鬼久久鬼色| 国产成人在线视频播放| 日韩三级电影网址| 天堂影院一区二区| 欧洲av一区二区嗯嗯嗯啊| 国产欧美一区二区精品性色| 日本亚洲天堂网| 欧美日韩成人一区| 亚洲线精品一区二区三区| 91在线观看免费视频| 日韩网站在线看片你懂的| 一区二区三区欧美视频| 99久久国产综合精品麻豆| 中文成人av在线| 懂色av一区二区三区免费观看| 精品国产乱码久久久久久牛牛| 日本人妖一区二区| 欧美久久免费观看| 婷婷亚洲久悠悠色悠在线播放| 欧美性生交片4| 亚洲一区二区欧美日韩| 欧美最新大片在线看 | 亚洲久本草在线中文字幕| 成人污污视频在线观看| 国产日韩高清在线| 国产精品一区二区在线播放| 久久久综合网站| 国产呦精品一区二区三区网站| 欧美不卡一区二区| 国产成人在线看| 国产精品麻豆99久久久久久| av电影在线不卡| 亚洲精品乱码久久久久久| 在线视频你懂得一区| 亚洲一区二区影院| 欧美一区二区美女| 国模娜娜一区二区三区| 日韩精品一区二区三区四区| 久久99国产精品成人| 久久婷婷一区二区三区| 丁香婷婷综合网| 亚洲美女淫视频| 欧洲精品一区二区三区在线观看| 午夜精品久久久久久久久久| 欧美一区二区三区不卡| 国产一区二区91| 日韩精品一区在线观看| 日韩女优制服丝袜电影| 国产精品亚洲一区二区三区妖精 | 国产精品初高中害羞小美女文| 色狠狠av一区二区三区| 午夜精品久久久久久久| 26uuu国产电影一区二区| 成人蜜臀av电影| 亚洲国产日韩综合久久精品| 日韩视频在线你懂得| 国产成人精品影院| 亚洲自拍与偷拍| 欧美videos中文字幕| 成人av免费在线| 日本中文字幕一区二区视频 | 日韩三级高清在线| 99视频超级精品| 日韩不卡一二三区| 国产精品拍天天在线| 欧美天堂亚洲电影院在线播放 | 色88888久久久久久影院按摩| 丝袜a∨在线一区二区三区不卡| 久久综合狠狠综合久久综合88| 99精品久久久久久| 久久精品久久综合| 亚洲欧美国产三级| 2023国产一二三区日本精品2022| 97se亚洲国产综合自在线不卡| 丝袜诱惑亚洲看片| **网站欧美大片在线观看| 日韩欧美中文字幕公布| 99re热视频精品| 国产综合成人久久大片91| 亚洲在线视频一区| 国产视频一区在线播放| 欧美日韩视频不卡| 99天天综合性| 精品一区二区三区在线播放| 一区二区三区成人在线视频| 久久久影视传媒| 欧美一区二区三区播放老司机| 91久久人澡人人添人人爽欧美| 国产高清成人在线|