亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
欧美精品精品一区| www.亚洲免费av| 麻豆成人在线观看| 国产精品短视频| 蜜臀av性久久久久蜜臀aⅴ四虎| 日日夜夜一区二区| 麻豆精品蜜桃视频网站| 波多野结衣在线aⅴ中文字幕不卡| 91久久香蕉国产日韩欧美9色| 日本韩国欧美在线| 日韩精品在线看片z| 国产精品国产成人国产三级| 国产亚洲va综合人人澡精品| 亚洲精品欧美专区| 久久99日本精品| 99精品在线观看视频| 欧美精品在欧美一区二区少妇| 精品国产乱子伦一区| 亚洲国产综合人成综合网站| 国产精品一区二区免费不卡| 成人性色生活片| 久久婷婷综合激情| 亚洲3atv精品一区二区三区| 国产精品亚洲人在线观看| 欧美午夜精品理论片a级按摩| 久久一区二区三区国产精品| 一区二区久久久久久| 国产激情视频一区二区在线观看| 欧美日韩在线直播| 国产丝袜欧美中文另类| 午夜精品久久久久| 99re8在线精品视频免费播放| 日韩精品一区二区三区视频播放 | 国产亚洲欧美日韩日本| 一区二区三区在线视频播放| 国产成人精品一区二区三区四区 | 日韩一区二区电影网| 中文字幕综合网| 国产一区欧美一区| 国产色婷婷亚洲99精品小说| 亚洲成人午夜电影| 色综合中文字幕| 国产精品免费aⅴ片在线观看| 狠狠色狠狠色综合| 欧美一区二区在线看| 男人的天堂久久精品| 制服丝袜av成人在线看| 国产精品沙发午睡系列990531| 久久99精品久久只有精品| 91精品在线免费观看| 午夜精品免费在线观看| 欧美影院精品一区| 亚洲图片欧美一区| 国产成人aaaa| 91香蕉视频在线| 亚洲欧洲三级电影| 99国产精品国产精品毛片| 久久精品视频网| 国产乱码精品1区2区3区| 日韩一区二区三区四区五区六区| 性欧美疯狂xxxxbbbb| 色综合天天综合网国产成人综合天 | 亚洲激情图片一区| 日本高清不卡视频| 亚洲成人一区在线| 欧美久久一区二区| 日韩中文字幕麻豆| 欧美一区二区久久久| 精品中文字幕一区二区小辣椒| 国产精品免费视频观看| 91福利小视频| 久久美女艺术照精彩视频福利播放| 成人综合在线视频| 亚洲精品中文在线| 欧美日韩高清一区二区不卡| 天天色 色综合| 26uuu成人网一区二区三区| 日本视频在线一区| 久久久久99精品一区| 国产高清在线观看免费不卡| 久久久久99精品国产片| 99精品视频在线观看免费| 亚洲一区二区视频| 欧美日韩精品一区二区三区| 日本sm残虐另类| 久久久久一区二区三区四区| 国产在线播放一区三区四| 亚洲大片精品永久免费| 欧美成人高清电影在线| 国产乱人伦精品一区二区在线观看| 欧美国产成人精品| 欧美日韩精品一区二区三区| 国产婷婷一区二区| 91精品国产色综合久久ai换脸 | 欧美日韩专区在线| 国产成人在线视频网址| 午夜电影一区二区| 国产午夜精品久久久久久免费视| 成人短视频下载| 亚洲欧美另类图片小说| 日韩欧美一级二级三级| 一本色道久久加勒比精品| 日韩精品一级中文字幕精品视频免费观看 | 欧美在线视频全部完| 久久99在线观看| 亚洲毛片av在线| 国产丝袜欧美中文另类| 91精品国产综合久久香蕉麻豆 | 欧洲视频一区二区| 国产精品亚洲午夜一区二区三区 | 91精品在线观看入口| 91小视频在线免费看| 国产精品亚洲第一| 奇米精品一区二区三区在线观看一| 精品国产1区二区| 在线一区二区三区四区| 亚洲天堂精品视频| 中文幕一区二区三区久久蜜桃| 成人黄色av网站在线| 国产传媒欧美日韩成人| 美女视频黄 久久| 亚洲高清在线视频| 婷婷综合另类小说色区| 亚洲日本免费电影| 91福利在线观看| 在线日韩一区二区| 97se亚洲国产综合自在线观| 精品一区二区三区在线播放视频 | 成人欧美一区二区三区| 欧美精品少妇一区二区三区| 日本丰满少妇一区二区三区| 大尺度一区二区| 国产精品一二三| 国产91精品精华液一区二区三区 | 日韩国产精品大片| 久久精品99国产精品| 日本美女视频一区二区| 亚洲成av人片在线观看无码| 亚洲欧洲日韩av| 国产精品欧美一区二区三区| 国产欧美一二三区| 国产精品毛片a∨一区二区三区 | 91小视频在线观看| 91网站黄www| 色狠狠av一区二区三区| 在线观看av一区| 欧洲亚洲精品在线| 国产一区二区三区观看| 蜜臀av一区二区在线观看| 国产精品综合视频| 成人精品免费网站| 92精品国产成人观看免费| 91免费版pro下载短视频| 高清日韩电视剧大全免费| 成人黄色免费短视频| 91丝袜呻吟高潮美腿白嫩在线观看| 99国产精品国产精品久久| 欧美日韩中字一区| 色综合天天综合| 欧美日韩一区在线| 精品欧美黑人一区二区三区| 亚洲人妖av一区二区| 亚洲另类春色国产| 男女性色大片免费观看一区二区| 麻豆视频一区二区| eeuss鲁片一区二区三区在线看| 91性感美女视频| 91精品福利在线一区二区三区 | 欧美一区二区视频在线观看2022 | 欧美一二区视频| 亚洲日本中文字幕区| 青娱乐精品在线视频| 捆绑变态av一区二区三区| 麻豆视频观看网址久久| 国产酒店精品激情| 色呦呦日韩精品| 欧美精品一级二级| 中文字幕亚洲在| 爽爽淫人综合网网站| 亚洲一区二区在线观看视频| 亚洲黄色av一区| 亚洲精品你懂的| 亚洲综合区在线| 亚洲免费观看高清完整版在线 | 亚洲人成伊人成综合网小说| 日韩中文欧美在线| 美腿丝袜亚洲色图| 黑人精品欧美一区二区蜜桃| 91麻豆6部合集magnet| 精品久久国产字幕高潮| 一级精品视频在线观看宜春院| 国模一区二区三区白浆| 色婷婷综合久久久中文字幕| 久久免费视频一区| 偷窥少妇高潮呻吟av久久免费| 成人激情文学综合网| 日韩精品一区二区三区在线观看| 一区二区三区欧美日| 国产成人免费av在线| 欧美哺乳videos|