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

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

?? calendar-core.js

?? js日期插件
?? JS
?? 第 1 頁 / 共 5 頁
字號:
/* * $Id: calendar-core.js 7495 2007-06-27 14:12:11Z vasyl $ * The Zapatec DHTML Calendar * * Copyright (c) 2004-2006 by Zapatec, Inc. * http://www.zapatec.com * 1700 MLK Way, Berkeley, California, * 94709, U.S.A. * All rights reserved. * * Main Calendar file. Creates a popup or flat calendar with various options. * * Original version written by Mihai Bazon, * http://www.bazon.net/mishoo/calendar.epl */// $Id: calendar-core.js 7495 2007-06-27 14:12:11Z vasyl $/** * The Calendar object constructor.  Call it, for example, like this: * * \code *   // the following function is called when a date is clicked *   function selFunc(cal) { *      alert(cal.date); *   } *   // the following function is called when the calendar should be closed *   function closeFunc(cal) { *      cal.destroy(); *   } *   var cal = new Zapatec.Calendar(1, new Date(), selFunc, closeFunc); * \endcode * * The above creates a new Calendar object.  The Calendar isn't displayed * instantly; using the "cal" variable, the programmer can now set certain * configuration variables, hook his own event handlers and then display the * calendar using Zapatec.Calendar.create(). * * @param firstDayOfWeek [int] the first day of week (0 for Sun, 1 for Mon, ...) * @param dateStr [string or Date] a string to be the default date, or a reference to a Date object * @param onSelected [function] this function will be called when a date is selected * @param onClose [function] this is called when the calendar should be closed */Zapatec.Calendar = function (firstDayOfWeek, dateStr, onSelected, onClose) {	// Add this widget to the list	if (typeof this.id == 'undefined') {		// Find id		var iId = 0;		while (Zapatec.Widget.all[iId]) {			iId++;		}		this.id = iId;		Zapatec.Widget.all[iId] = this;	}	// member variables	this.bShowHistoryEvent=false;	// did the History event on Today fire?	this.activeDiv = null;	this.currentDateEl = null;	this.getDateStatus = null;	this.getDateToolTip = null;	this.getDateText = null;	this.timeout = null;	this.onSelected = onSelected || null;	this.onClose = onClose || null;	this.onFDOW = null;	this.dragging = false;	this.hidden = false;	this.minYear = 1970;	this.maxYear = 2050;	this.minMonth = 0;	this.maxMonth = 11;	this.dateFormat = Zapatec.Calendar.i18n("DEF_DATE_FORMAT");	this.ttDateFormat = Zapatec.Calendar.i18n("TT_DATE_FORMAT");	this.historyDateFormat = "%B %d, %Y";	this.isPopup = true;	this.weekNumbers = true;	this.noGrab = false;	if (Zapatec.Calendar.prefs.fdow || (Zapatec.Calendar.prefs.fdow == 0)) {		this.firstDayOfWeek = parseInt(Zapatec.Calendar.prefs.fdow, 10);	}	else {		var fd = 0;		if (typeof firstDayOfWeek == "number") {			fd = firstDayOfWeek;		} else if (typeof Zapatec.Calendar._FD == 'number') {			fd = Zapatec.Calendar._FD;		}		this.firstDayOfWeek = fd;	}	this.showsOtherMonths = false;	this.dateStr = dateStr;	this.showsTime = false;	this.sortOrder = "asc"; //Sort for multiple dates in ascending order	this.time24 = true;	this.timeInterval = null; //step for changing time	this.yearStep = 2;	this.hiliteToday = true;	this.multiple = null;	// HTML elements	this.table = null;	this.element = null;	this.tbody = new Array(); //array of rows of months	this.firstdayname = null;	// Combo boxes	this.monthsCombo = null;   // months	this.hilitedMonth = null;	this.activeMonth = null;	this.yearsCombo = null;	   // years	this.hilitedYear = null;	this.activeYear = null;	this.histCombo = null;	   // history	this.hilitedHist = null;	// Information	this.dateClicked = false;	this.numberMonths = 1; //number of months displayed	this.controlMonth = 1; //the number of month with all the combos to control the date	this.vertical = false; //vertical or horizontal positioning of months	this.monthsInRow = 1; //number of months in one row	this.titles = new Array(); //array of titles for the months	this.rowsOfDayNames = new Array(); //array of rows of day names	this.helpButton = true;	this.disableFdowClick = true;	this.disableDrag = false;	this.yearNav = true;	this.closeButton = true;	// one-time initializations	Zapatec.Calendar._initSDN();};/** * \internal This function is called from the constructor, only once, to * initialize some internal arrays containing translation strings.  It is also * called from the calendar wizard in order to reconfigure the calendar with a * language different than the initially selected one. */Zapatec.Calendar._initSDN = function() {	if (typeof Zapatec.Calendar._TT._SDN == "undefined") {		// table of short day names		if (typeof Zapatec.Calendar._TT._SDN_len == "undefined")			Zapatec.Calendar._TT._SDN_len = 3;		var ar = [];		for (var i = 8; i > 0;) {			ar[--i] = Zapatec.Calendar._TT._DN[i].substr(0, Zapatec.Calendar._TT._SDN_len);		}		Zapatec.Calendar._TT._SDN = ar;		// table of short month names		if (typeof Zapatec.Calendar._TT._SMN_len == "undefined")			Zapatec.Calendar._TT._SMN_len = 3;		ar = [];		for (var i = 12; i > 0;) {			ar[--i] = Zapatec.Calendar._TT._MN[i].substr(0, Zapatec.Calendar._TT._SMN_len);		}		Zapatec.Calendar._TT._SMN = ar;	}	if (typeof Zapatec.Calendar._TT._AMPM == "undefined") {		Zapatec.Calendar._TT._AMPM = {am : "am", pm : "pm"};	}};/** * Translate a string according to the currently loaded language table.  The * \em type variable can be null or missing, or can have one of the following * values: "dn", "sdn", "mn", "smn". * * -# if \em type is null or missing, the given \em str will be looked up in *    the translation table.  If a value is found, it is returned.  Otherwise, *    the string is looked up in the English table (if present).  If still not *    found, the value of \em str itself is returned. * -# if \em type is passed, then the value of \em str is looked up in one of *    the following internal arrays, depending on the value of \em type: *       - DN (day name) *       - SDN (short day name) *       - MN (month name) *       - SMN (short month name) * * @param str [string] ID of translation text (can be the English text) * @param type [string, optional] domain to search through * * @return the translation according to the current language. */Zapatec.Calendar.i18n = function(str, type) {	var tr = '';	if (!type) {		// normal _TT request		if (Zapatec.Calendar._TT)			tr = Zapatec.Calendar._TT[str];		if (!tr && Zapatec.Calendar._TT_en)			tr = Zapatec.Calendar._TT_en[str];	} else switch(type) {	    case "dn"  : tr = Zapatec.Calendar._TT._DN[str];  break;	    case "sdn" : tr = Zapatec.Calendar._TT._SDN[str]; break;	    case "mn"  : tr = Zapatec.Calendar._TT._MN[str];  break;	    case "smn" : tr = Zapatec.Calendar._TT._SMN[str]; break;		case "ampm" : tr = Zapatec.Calendar._TT._AMPM[str]; break;	}	if (!tr) tr = "" + str;	return tr;};// ** constants/// "static", needed for event handlers.Zapatec.Calendar._C = null;/// preferencesZapatec.Calendar.prefs = {	fdow     : null,	/**< when NULL we will use the options passed at Zapatec.Calendar.setup */	history  : "",		/**< keeps the history as one big string */	sortOrder : "asc", /**< Sort order for multiple dates. Ascending by default */	hsize    : 9		/**< maximum history size (number of stored items) */};// BEGIN: CALENDAR STATIC FUNCTIONS/** * Writes the preferences cookie. */Zapatec.Calendar.savePrefs = function() {	// FIXME: should we make the domain, path and expiration time configurable?	// I guess these defaults are right though..	Zapatec.Utils.writeCookie("ZP_CAL", Zapatec.Utils.makePref(this.prefs), null, '/', 30);};/** * Loads the preference cookie and merges saved prefs to Zapatec.Calendar.prefs. */Zapatec.Calendar.loadPrefs = function() {	var txt = Zapatec.Utils.getCookie("ZP_CAL"), tmp;	if (txt) {		tmp = Zapatec.Utils.loadPref(txt);		if (tmp)			Zapatec.Utils.mergeObjects(this.prefs, tmp);	}	// FIXME: DEBUG!	//this.prefs.history = "1979/03/08,1976/12/28,1978/08/31,1998/09/21";	//this.prefs.history = null;};/** * \internal Adds a set of events to make some element behave like a button. * * @param el [HTMLElement] reference to your element. */Zapatec.Calendar._add_evs = function(el) {	var C = Zapatec.Calendar;	el.onmouseover = C.dayMouseOver;	el.onmousedown = C.dayMouseDown;	el.onmouseout = C.dayMouseOut;	if (Zapatec.is_ie)		el.ondblclick = C.dayMouseDblClick;};/** * \internal This function undoes what Zapatec.Calendar._add_evs did, therefore * unregisters the event handlers. * * @param el [HTMLElement] reference to your element. */Zapatec.Calendar._del_evs = function(el) {	el.onmouseover = null;	el.onmousedown = null;	el.onmouseout = null;	if (Zapatec.is_ie)		el.ondblclick = null;};/** * Given an HTML element, this function determines if it's part of the "months" * combo box and if so it returns the element containing the month name. * * @param el [HTMLElement] some element (usually that triggered onclick) * @return [HTMLElement] element with the month */Zapatec.Calendar.findMonth = function(el) {	if (typeof el.month != "undefined") {		return el;	} else if (el.parentNode && typeof el.parentNode.month != "undefined") {		return el.parentNode;	}	return null;};/** Similar to findMonth() but for the history combo. */Zapatec.Calendar.findHist = function(el) {	if (typeof el.histDate != "undefined") {		return el;	} else if (el.parentNode && typeof el.parentNode.histDate != "undefined") {		return el.parentNode;	}	return null;};/** Similar to the above functions, but for the years combo. */Zapatec.Calendar.findYear = function(el) {	if (typeof el.year != "undefined") {		return el;	} else if (el.parentNode && typeof el.parentNode.year != "undefined") {		return el.parentNode;	}	return null;};/** * This function displays the months combo box.  It doesn't need any parameters * because it uses the static _C variable which maintains a reference to the * last calendar that was clicked in the page. */Zapatec.Calendar.showMonthsCombo = function () {	var cal = Zapatec.Calendar._C;	if (!cal) {		return false;	}	var cd = cal.activeDiv;	var mc = cal.monthsCombo;	var date = cal.date,		MM = cal.date.getMonth(),		YY = cal.date.getFullYear(),		min = (YY == cal.minYear),		max = (YY == cal.maxYear);	for (var i = mc.firstChild; i; i = i.nextSibling) {		var m = i.month;		Zapatec.Utils.removeClass(i, "hilite");		Zapatec.Utils.removeClass(i, "active");		Zapatec.Utils.removeClass(i, "disabled");		i.disabled = false;		if ((min && m < cal.minMonth) ||		    (max && m > cal.maxMonth)) {			Zapatec.Utils.addClass(i, "disabled");			i.disabled = true;		}		if (m == MM)			Zapatec.Utils.addClass(cal.activeMonth = i, "active");	}	var s = mc.style;	s.display = "block";	if (cd.navtype < 0)		s.left = cd.offsetLeft + "px";	else {		var mcw = mc.offsetWidth;		if (typeof mcw == "undefined")			// Konqueror brain-dead techniques			mcw = 50;		s.left = (cd.offsetLeft + cd.offsetWidth - mcw) + "px";	}	s.top = (cd.offsetTop + cd.offsetHeight) + "px";	cal.updateWCH(mc);};/** * Same as the above, this function displays the history combo box for the * active calendar. */Zapatec.Calendar.showHistoryCombo = function() {	var cal = Zapatec.Calendar._C, a, h, i, cd, hc, s, tmp, div;	if (!cal)		return false;	hc = cal.histCombo;	while (hc.firstChild)		hc.removeChild(hc.lastChild);	if (Zapatec.Calendar.prefs.history) {		a = Zapatec.Calendar.prefs.history.split(/,/);		i = 0;		while (tmp = a[i++]) {			tmp = tmp.split(/\//);			h = Zapatec.Utils.createElement("div");			h.className = Zapatec.is_ie ? "label-IEfix" : "label";			h.id = "zpCal" + cal.id + "HistoryDropdownItem" + (i - 1);			h.histDate = new Date(parseInt(tmp[0], 10), parseInt(tmp[1], 10)-1, parseInt(tmp[2], 10),					      tmp[3] ? parseInt(tmp[3], 10) : 0,					      tmp[4] ? parseInt(tmp[4], 10) : 0);			h.appendChild(window.document.createTextNode(h.histDate.print(cal.historyDateFormat)));

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩欧美国产精品一区| 欧美中文字幕一区| 国产精品三级视频| 波多野洁衣一区| 亚洲人亚洲人成电影网站色| 色久综合一二码| 一区二区三区欧美亚洲| 在线观看免费视频综合| 日韩国产在线观看一区| 精品少妇一区二区三区在线视频| 久久91精品久久久久久秒播| 国产日韩亚洲欧美综合| 一本久久a久久免费精品不卡| 亚洲国产精品久久艾草纯爱| 制服丝袜国产精品| 大胆欧美人体老妇| 一级特黄大欧美久久久| 日韩一本二本av| 不卡大黄网站免费看| 性欧美疯狂xxxxbbbb| 久久丝袜美腿综合| 色综合亚洲欧洲| 麻豆精品视频在线观看视频| 国产日产精品一区| 欧美日韩视频不卡| 岛国一区二区三区| 天天亚洲美女在线视频| 国产亚洲精品免费| 欧美日韩美少妇| 国产成人免费视频网站高清观看视频| 一区二区三区在线免费观看| 欧美xxx久久| 欧美这里有精品| 福利一区二区在线| 日韩黄色一级片| 亚洲免费观看高清完整版在线 | 日韩三区在线观看| 成人性生交大片免费看视频在线| 五月婷婷激情综合| 亚洲日本在线观看| 欧美精品一区男女天堂| 欧美日韩日日骚| av亚洲精华国产精华精| 六月丁香婷婷色狠狠久久| 樱花草国产18久久久久| 国产午夜久久久久| 欧美一级久久久久久久大片| 色激情天天射综合网| 成人免费视频caoporn| 久久国产尿小便嘘嘘尿| 日日夜夜精品视频免费| 亚洲欧美另类小说| 中文字幕第一区综合| 精品国产91洋老外米糕| 91精品国产综合久久婷婷香蕉 | 精品制服美女丁香| 亚洲一区影音先锋| 亚洲美女在线国产| 国产精品久久毛片a| 久久亚洲精品国产精品紫薇| 日韩欧美在线1卡| 555夜色666亚洲国产免| 欧美日韩精品欧美日韩精品一综合| 不卡电影免费在线播放一区| 国产精品影视网| 久久99精品一区二区三区| 免费成人美女在线观看| 日产国产高清一区二区三区| 亚洲午夜激情av| 亚洲国产日韩精品| 伊人色综合久久天天| 亚洲精品视频观看| 亚洲一区二区综合| 亚洲国产综合在线| 午夜av一区二区| 青青青伊人色综合久久| 日本不卡123| 久久精品久久综合| 国产精品综合视频| 国产91精品免费| 99国产精品视频免费观看| 91在线云播放| 在线看不卡av| 8v天堂国产在线一区二区| 88在线观看91蜜桃国自产| 日韩欧美色综合网站| 精品成人一区二区三区四区| 久久精品无码一区二区三区| 国产精品无圣光一区二区| 亚洲欧洲日韩av| 亚洲在线观看免费| 免费久久精品视频| 国产美女在线精品| 91在线看国产| 欧美久久久久久蜜桃| 日韩欧美视频在线| 国产精品全国免费观看高清 | www.欧美日韩国产在线| 26uuu亚洲婷婷狠狠天堂| 国产欧美一区二区精品性| 久久久久久久国产精品影院| 精品国产乱码久久久久久免费| 久久先锋影音av鲁色资源| 国产精品麻豆欧美日韩ww| 懂色av一区二区在线播放| 亚洲成人av免费| 男人操女人的视频在线观看欧美| 久草这里只有精品视频| av中文字幕一区| 欧美日韩国产天堂| 国产亚洲一区二区三区在线观看| 综合激情成人伊人| 日韩电影在线观看网站| 国产91丝袜在线播放九色| 欧美日韩一区二区三区在线看| 精品国产污污免费网站入口| 国产精品久久久久桃色tv| 午夜久久福利影院| 粉嫩嫩av羞羞动漫久久久| 欧美精品日日鲁夜夜添| 欧美国产日韩精品免费观看| 亚洲成人激情av| 成人黄色网址在线观看| 日韩一区二区三区精品视频| 国产精品第13页| 精品一二三四在线| 欧美亚洲综合色| 国产精品视频看| 奇米影视一区二区三区| 色婷婷av一区二区三区软件 | 久久蜜桃一区二区| 亚洲国产精品天堂| 成人av动漫网站| 精品三级在线观看| 五月天激情小说综合| 99久久精品国产导航| 精品国产1区2区3区| 亚洲国产视频一区二区| 成人毛片老司机大片| 精品捆绑美女sm三区| 视频一区中文字幕| 在线免费观看日本欧美| 日韩美女视频一区二区| 丁香婷婷综合网| 337p粉嫩大胆色噜噜噜噜亚洲| 亚洲成av人综合在线观看| 91搞黄在线观看| 亚洲欧洲日本在线| 成人av在线一区二区| 久久免费看少妇高潮| 韩国女主播成人在线观看| 7878成人国产在线观看| 午夜精品久久久久久| 在线观看日韩电影| 1000部国产精品成人观看| 国产v综合v亚洲欧| 久久久国产精华| 国产99久久久久久免费看农村| 精品国产乱码久久久久久图片| 日本va欧美va瓶| 欧美一二三四在线| 美女一区二区三区| 欧美xxxx在线观看| 国内成人精品2018免费看| 欧美精品一区男女天堂| 国模一区二区三区白浆| 欧美不卡一区二区三区四区| 久久精品国产精品青草| 精品国产91九色蝌蚪| 国产成人午夜99999| 国产日韩精品一区二区三区 | 国产一区二区三区在线观看精品 | 色综合一区二区| 亚洲免费观看在线视频| 在线观看日韩电影| 视频一区二区三区入口| 日韩欧美一级特黄在线播放| 麻豆传媒一区二区三区| 国产亚洲va综合人人澡精品| 成人深夜视频在线观看| 亚洲免费观看高清完整版在线观看| 色天天综合久久久久综合片| 亚洲午夜电影在线观看| 69堂成人精品免费视频| 九九九精品视频| 国产拍欧美日韩视频二区| av激情亚洲男人天堂| 亚洲激情第一区| 日韩欧美在线一区二区三区| 国产精品一区专区| 亚洲欧美国产高清| 欧美日韩高清在线| 国产乱子轮精品视频| 最近日韩中文字幕| 8v天堂国产在线一区二区| 国产成人自拍网| 亚洲最大的成人av| 26uuu色噜噜精品一区| 色综合久久66| 免费欧美在线视频|