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

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

?? controls.js

?? pebble-blog 博客源碼博客源碼博客源碼
?? JS
?? 第 1 頁 / 共 2 頁
字號:
// script.aculo.us controls.js v1.7.0, Fri Jan 19 19:16:36 CET 2007// Copyright (c) 2005, 2006 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)//           (c) 2005, 2006 Ivan Krstic (http://blogs.law.harvard.edu/ivan)//           (c) 2005, 2006 Jon Tirsen (http://www.tirsen.com)// Contributors://  Richard Livsey//  Rahul Bhargava//  Rob Wills// // script.aculo.us is freely distributable under the terms of an MIT-style license.// For details, see the script.aculo.us web site: http://script.aculo.us/// Autocompleter.Base handles all the autocompletion functionality // that's independent of the data source for autocompletion. This// includes drawing the autocompletion menu, observing keyboard// and mouse events, and similar.//// Specific autocompleters need to provide, at the very least, // a getUpdatedChoices function that will be invoked every time// the text inside the monitored textbox changes. This method // should get the text for which to provide autocompletion by// invoking this.getToken(), NOT by directly accessing// this.element.value. This is to allow incremental tokenized// autocompletion. Specific auto-completion logic (AJAX, etc)// belongs in getUpdatedChoices.//// Tokenized incremental autocompletion is enabled automatically// when an autocompleter is instantiated with the 'tokens' option// in the options parameter, e.g.:// new Ajax.Autocompleter('id','upd', '/url/', { tokens: ',' });// will incrementally autocomplete with a comma as the token.// Additionally, ',' in the above example can be replaced with// a token array, e.g. { tokens: [',', '\n'] } which// enables autocompletion on multiple tokens. This is most // useful when one of the tokens is \n (a newline), as it // allows smart autocompletion after linebreaks.if(typeof Effect == 'undefined')  throw("controls.js requires including script.aculo.us' effects.js library");var Autocompleter = {}Autocompleter.Base = function() {};Autocompleter.Base.prototype = {  baseInitialize: function(element, update, options) {    this.element     = $(element);     this.update      = $(update);      this.hasFocus    = false;     this.changed     = false;     this.active      = false;     this.index       = 0;         this.entryCount  = 0;    if(this.setOptions)      this.setOptions(options);    else      this.options = options || {};    this.options.paramName    = this.options.paramName || this.element.name;    this.options.tokens       = this.options.tokens || [];    this.options.frequency    = this.options.frequency || 0.4;    this.options.minChars     = this.options.minChars || 1;    this.options.onShow       = this.options.onShow ||       function(element, update){         if(!update.style.position || update.style.position=='absolute') {          update.style.position = 'absolute';          Position.clone(element, update, {            setHeight: false,             offsetTop: element.offsetHeight          });        }        Effect.Appear(update,{duration:0.15});      };    this.options.onHide = this.options.onHide ||       function(element, update){ new Effect.Fade(update,{duration:0.15}) };    if(typeof(this.options.tokens) == 'string')       this.options.tokens = new Array(this.options.tokens);    this.observer = null;        this.element.setAttribute('autocomplete','off');    Element.hide(this.update);    Event.observe(this.element, "blur", this.onBlur.bindAsEventListener(this));    Event.observe(this.element, "keypress", this.onKeyPress.bindAsEventListener(this));  },  show: function() {    if(Element.getStyle(this.update, 'display')=='none') this.options.onShow(this.element, this.update);    if(!this.iefix &&       (navigator.appVersion.indexOf('MSIE')>0) &&      (navigator.userAgent.indexOf('Opera')<0) &&      (Element.getStyle(this.update, 'position')=='absolute')) {      new Insertion.After(this.update,        '<iframe id="' + this.update.id + '_iefix" '+       'style="display:none;position:absolute;filter:progid:DXImageTransform.Microsoft.Alpha(opacity=0);" ' +       'src="javascript:false;" frameborder="0" scrolling="no"></iframe>');      this.iefix = $(this.update.id+'_iefix');    }    if(this.iefix) setTimeout(this.fixIEOverlapping.bind(this), 50);  },    fixIEOverlapping: function() {    Position.clone(this.update, this.iefix, {setTop:(!this.update.style.height)});    this.iefix.style.zIndex = 1;    this.update.style.zIndex = 2;    Element.show(this.iefix);  },  hide: function() {    this.stopIndicator();    if(Element.getStyle(this.update, 'display')!='none') this.options.onHide(this.element, this.update);    if(this.iefix) Element.hide(this.iefix);  },  startIndicator: function() {    if(this.options.indicator) Element.show(this.options.indicator);  },  stopIndicator: function() {    if(this.options.indicator) Element.hide(this.options.indicator);  },  onKeyPress: function(event) {    if(this.active)      switch(event.keyCode) {       case Event.KEY_TAB:       case Event.KEY_RETURN:         this.selectEntry();         Event.stop(event);       case Event.KEY_ESC:         this.hide();         this.active = false;         Event.stop(event);         return;       case Event.KEY_LEFT:       case Event.KEY_RIGHT:         return;       case Event.KEY_UP:         this.markPrevious();         this.render();         if(navigator.appVersion.indexOf('AppleWebKit')>0) Event.stop(event);         return;       case Event.KEY_DOWN:         this.markNext();         this.render();         if(navigator.appVersion.indexOf('AppleWebKit')>0) Event.stop(event);         return;      }     else        if(event.keyCode==Event.KEY_TAB || event.keyCode==Event.KEY_RETURN ||          (navigator.appVersion.indexOf('AppleWebKit') > 0 && event.keyCode == 0)) return;    this.changed = true;    this.hasFocus = true;    if(this.observer) clearTimeout(this.observer);      this.observer =         setTimeout(this.onObserverEvent.bind(this), this.options.frequency*1000);  },  activate: function() {    this.changed = false;    this.hasFocus = true;    this.getUpdatedChoices();  },  onHover: function(event) {    var element = Event.findElement(event, 'LI');    if(this.index != element.autocompleteIndex)     {        this.index = element.autocompleteIndex;        this.render();    }    Event.stop(event);  },    onClick: function(event) {    var element = Event.findElement(event, 'LI');    this.index = element.autocompleteIndex;    this.selectEntry();    this.hide();  },    onBlur: function(event) {    // needed to make click events working    setTimeout(this.hide.bind(this), 250);    this.hasFocus = false;    this.active = false;       },     render: function() {    if(this.entryCount > 0) {      for (var i = 0; i < this.entryCount; i++)        this.index==i ?           Element.addClassName(this.getEntry(i),"selected") :           Element.removeClassName(this.getEntry(i),"selected");              if(this.hasFocus) {         this.show();        this.active = true;      }    } else {      this.active = false;      this.hide();    }  },    markPrevious: function() {    if(this.index > 0) this.index--      else this.index = this.entryCount-1;    this.getEntry(this.index).scrollIntoView(true);  },    markNext: function() {    if(this.index < this.entryCount-1) this.index++      else this.index = 0;    this.getEntry(this.index).scrollIntoView(false);  },    getEntry: function(index) {    return this.update.firstChild.childNodes[index];  },    getCurrentEntry: function() {    return this.getEntry(this.index);  },    selectEntry: function() {    this.active = false;    this.updateElement(this.getCurrentEntry());  },  updateElement: function(selectedElement) {    if (this.options.updateElement) {      this.options.updateElement(selectedElement);      return;    }    var value = '';    if (this.options.select) {      var nodes = document.getElementsByClassName(this.options.select, selectedElement) || [];      if(nodes.length>0) value = Element.collectTextNodes(nodes[0], this.options.select);    } else      value = Element.collectTextNodesIgnoreClass(selectedElement, 'informal');        var lastTokenPos = this.findLastToken();    if (lastTokenPos != -1) {      var newValue = this.element.value.substr(0, lastTokenPos + 1);      var whitespace = this.element.value.substr(lastTokenPos + 1).match(/^\s+/);      if (whitespace)        newValue += whitespace[0];      this.element.value = newValue + value;    } else {      this.element.value = value;    }    this.element.focus();        if (this.options.afterUpdateElement)      this.options.afterUpdateElement(this.element, selectedElement);  },  updateChoices: function(choices) {    if(!this.changed && this.hasFocus) {      this.update.innerHTML = choices;      Element.cleanWhitespace(this.update);      Element.cleanWhitespace(this.update.down());      if(this.update.firstChild && this.update.down().childNodes) {        this.entryCount =           this.update.down().childNodes.length;        for (var i = 0; i < this.entryCount; i++) {          var entry = this.getEntry(i);          entry.autocompleteIndex = i;          this.addObservers(entry);        }      } else {         this.entryCount = 0;      }      this.stopIndicator();      this.index = 0;            if(this.entryCount==1 && this.options.autoSelect) {        this.selectEntry();        this.hide();      } else {        this.render();      }    }  },  addObservers: function(element) {    Event.observe(element, "mouseover", this.onHover.bindAsEventListener(this));    Event.observe(element, "click", this.onClick.bindAsEventListener(this));  },  onObserverEvent: function() {    this.changed = false;       if(this.getToken().length>=this.options.minChars) {      this.startIndicator();      this.getUpdatedChoices();    } else {      this.active = false;      this.hide();    }  },  getToken: function() {    var tokenPos = this.findLastToken();    if (tokenPos != -1)      var ret = this.element.value.substr(tokenPos + 1).replace(/^\s+/,'').replace(/\s+$/,'');    else      var ret = this.element.value;    return /\n/.test(ret) ? '' : ret;  },  findLastToken: function() {    var lastTokenPos = -1;    for (var i=0; i<this.options.tokens.length; i++) {      var thisTokenPos = this.element.value.lastIndexOf(this.options.tokens[i]);      if (thisTokenPos > lastTokenPos)        lastTokenPos = thisTokenPos;    }    return lastTokenPos;  }}Ajax.Autocompleter = Class.create();Object.extend(Object.extend(Ajax.Autocompleter.prototype, Autocompleter.Base.prototype), {  initialize: function(element, update, url, options) {    this.baseInitialize(element, update, options);    this.options.asynchronous  = true;    this.options.onComplete    = this.onComplete.bind(this);    this.options.defaultParams = this.options.parameters || null;    this.url                   = url;  },  getUpdatedChoices: function() {    entry = encodeURIComponent(this.options.paramName) + '=' +       encodeURIComponent(this.getToken());    this.options.parameters = this.options.callback ?      this.options.callback(this.element, entry) : entry;    if(this.options.defaultParams)       this.options.parameters += '&' + this.options.defaultParams;    new Ajax.Request(this.url, this.options);  },  onComplete: function(request) {    this.updateChoices(request.responseText);  }});// The local array autocompleter. Used when you'd prefer to// inject an array of autocompletion options into the page, rather// than sending out Ajax queries, which can be quite slow sometimes.//// The constructor takes four parameters. The first two are, as usual,// the id of the monitored textbox, and id of the autocompletion menu.// The third is the array you want to autocomplete from, and the fourth// is the options block.//// Extra local autocompletion options:// - choices - How many autocompletion choices to offer//// - partialSearch - If false, the autocompleter will match entered//                    text only at the beginning of strings in the //                    autocomplete array. Defaults to true, which will//                    match text at the beginning of any *word* in the//                    strings in the autocomplete array. If you want to//                    search anywhere in the string, additionally set//                    the option fullSearch to true (default: off).//// - fullSsearch - Search anywhere in autocomplete array strings.//// - partialChars - How many characters to enter before triggering//                   a partial match (unlike minChars, which defines//                   how many characters are required to do any match//                   at all). Defaults to 2.//// - ignoreCase - Whether to ignore case when autocompleting.//                 Defaults to true.//// It's possible to pass in a custom function as the 'selector' // option, if you prefer to write your own autocompletion logic.// In that case, the other options above will not apply unless// you support them.Autocompleter.Local = Class.create();Autocompleter.Local.prototype = Object.extend(new Autocompleter.Base(), {  initialize: function(element, update, array, options) {    this.baseInitialize(element, update, options);    this.options.array = array;  },  getUpdatedChoices: function() {    this.updateChoices(this.options.selector(this));  },  setOptions: function(options) {    this.options = Object.extend({      choices: 10,      partialSearch: true,      partialChars: 2,      ignoreCase: true,      fullSearch: false,      selector: function(instance) {        var ret       = []; // Beginning matches        var partial   = []; // Inside matches        var entry     = instance.getToken();        var count     = 0;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产.欧美.日韩| 欧美一区二区三区公司| 久久久99免费| 成人性生交大片免费看视频在线 | 91黄色激情网站| 一区二区在线观看视频在线观看| 色老汉一区二区三区| 亚洲最大成人综合| 欧美疯狂做受xxxx富婆| 久久99在线观看| 中文字幕在线不卡| 欧美视频自拍偷拍| 国产在线麻豆精品观看| 亚洲国产精品精华液ab| 日本电影欧美片| 蜜臀久久99精品久久久久久9| 国产调教视频一区| 日本精品免费观看高清观看| 日韩av电影免费观看高清完整版 | 国产欧美精品一区二区色综合 | 精品一二三四区| 91精品国模一区二区三区| 久久黄色级2电影| 欧美国产日韩在线观看| 欧美三级在线看| 精品一二三四区| 亚洲精品久久嫩草网站秘色| 欧美日韩欧美一区二区| 国产一区二区三区精品视频| 亚洲精品视频免费看| 欧美性受极品xxxx喷水| 极品少妇xxxx精品少妇| 一区二区免费视频| 精品国产一区二区在线观看| 欧美中文一区二区三区| 国产馆精品极品| 青青国产91久久久久久| 中文字幕在线一区免费| 精品一区二区三区香蕉蜜桃| 国精品**一区二区三区在线蜜桃| 亚洲欧美日韩国产成人精品影院 | 麻豆成人在线观看| 樱桃国产成人精品视频| 久久久久国产成人精品亚洲午夜 | 色综合一区二区| 激情另类小说区图片区视频区| 一区二区三区中文字幕在线观看| 国产网红主播福利一区二区| 欧美日韩成人综合| 在线亚洲高清视频| 99久久精品费精品国产一区二区| 精品写真视频在线观看| 亚洲国产裸拍裸体视频在线观看乱了 | 亚洲成人激情av| 亚洲人午夜精品天堂一二香蕉| 2024国产精品| 日韩一区二区精品在线观看| 91尤物视频在线观看| 国产精品一卡二| 免费看黄色91| 免费观看一级欧美片| 亚洲成人一区二区在线观看| 一区二区三区 在线观看视频| 国产精品久久综合| 国产精品视频一二三区| 国产日韩欧美电影| 国产午夜精品福利| 国产日韩欧美综合一区| 欧美精品一区男女天堂| 91精品国产欧美一区二区成人| 欧美亚日韩国产aⅴ精品中极品| 91视视频在线观看入口直接观看www| 国产精品一区三区| 国内精品第一页| 国产中文字幕精品| 国产一区二区美女| 777久久久精品| 欧美乱熟臀69xxxxxx| 欧美四级电影网| 91精品久久久久久蜜臀| 欧美一区二区三区在线观看 | 美女看a上一区| 狠狠狠色丁香婷婷综合久久五月| 六月婷婷色综合| 国产成人在线视频网站| 成人a免费在线看| 91视频你懂的| 欧美日韩在线播放一区| 91精品国产91久久久久久一区二区| 欧美日韩中文字幕一区二区| 欧美高清视频在线高清观看mv色露露十八 | 亚洲区小说区图片区qvod| 亚洲精品美国一| 午夜亚洲国产au精品一区二区| 男女男精品视频| 国产九色sp调教91| 99久久久无码国产精品| 色婷婷国产精品久久包臀| 欧美在线影院一区二区| 日韩精品一区二区三区swag| 国产网红主播福利一区二区| 亚洲精品中文在线| 青青草97国产精品免费观看 | 欧美福利一区二区| 久久综合久久综合九色| 国产精品久久久久久久第一福利| 亚洲一区二区三区国产| 蜜桃视频一区二区三区| 丁香六月久久综合狠狠色| 在线视频欧美精品| 精品少妇一区二区三区免费观看| 国产欧美日韩亚州综合| 一区二区三国产精华液| 国产真实乱对白精彩久久| 91日韩一区二区三区| 日韩欧美精品在线| 亚洲桃色在线一区| 蜜桃av一区二区| 99久久99久久久精品齐齐| 欧美一区二区网站| 亚洲欧洲国产专区| 秋霞电影网一区二区| 成人一区二区三区| 欧美一卡二卡在线| 亚洲免费观看高清| 国产精品自拍一区| 制服丝袜成人动漫| 伊人色综合久久天天人手人婷| 激情文学综合网| 欧美精品 日韩| 亚洲精品第1页| 高清国产一区二区| 日韩无一区二区| 亚洲午夜电影在线| 91网站最新网址| 国产日韩欧美一区二区三区综合| 亚洲mv在线观看| 99久久精品免费精品国产| 久久亚洲二区三区| 美女一区二区视频| 欧美区在线观看| 尤物在线观看一区| 91伊人久久大香线蕉| 久久精品网站免费观看| 视频一区欧美精品| 一本大道久久a久久综合| 欧美极品少妇xxxxⅹ高跟鞋 | 五月天久久比比资源色| av一区二区三区四区| 26uuu国产一区二区三区| 天天色 色综合| 欧洲另类一二三四区| 中文字幕在线不卡视频| 成人激情av网| 国产精品全国免费观看高清| 精品一区二区三区视频| 日韩一级在线观看| 日韩激情视频网站| 欧美日韩三级在线| 亚洲成a人v欧美综合天堂| 在线精品视频免费观看| 亚洲精品乱码久久久久久| 色综合中文字幕国产 | 亚洲国产精品精华液网站| 91丨九色丨蝌蚪富婆spa| 国产精品久久久久久久久动漫| 国产精品亚洲第一区在线暖暖韩国| 欧美本精品男人aⅴ天堂| 欧美aaa在线| 精品日产卡一卡二卡麻豆| 激情综合一区二区三区| 精品播放一区二区| 国产精品羞羞答答xxdd| 久久久噜噜噜久噜久久综合| 国产永久精品大片wwwapp| 久久久91精品国产一区二区三区| 国产精品一区久久久久| 欧美激情一区三区| 成人涩涩免费视频| 亚洲人成亚洲人成在线观看图片| 日本韩国精品在线| 视频一区中文字幕| 久久综合九色综合97婷婷女人| 精久久久久久久久久久| 国产精品无圣光一区二区| 91在线精品一区二区| 亚洲一区二区av电影| 337p亚洲精品色噜噜| 国产尤物一区二区在线| 欧美激情一区在线观看| 色综合久久中文字幕| 日日夜夜精品视频天天综合网| 精品欧美乱码久久久久久1区2区| 国产呦精品一区二区三区网站| 亚洲欧美综合色| 欧美疯狂性受xxxxx喷水图片| 国产精品影视天天线| 亚洲激情图片一区| 精品国产伦一区二区三区观看方式| 成人一区二区三区视频在线观看|