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

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

?? controls.js

?? grails用戶使用指南
?? JS
?? 第 1 頁 / 共 2 頁
字號:
// Copyright (c) 2005 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)//           (c) 2005 Ivan Krstic (http://blogs.law.harvard.edu/ivan)//           (c) 2005 Jon Tirsen (http://www.tirsen.com)// Contributors://  Richard Livsey//  Rahul Bhargava//  Rob Wills// // See scriptaculous.js for full license.// 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.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);    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;  },    markNext: function() {    if(this.index < this.entryCount-1) this.index++      else this.index = 0;  },    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.firstChild);      if(this.update.firstChild && this.update.firstChild.childNodes) {        this.entryCount =           this.update.firstChild.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;      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;        for (var i = 0; i < instance.options.array.length &&            ret.length < instance.options.choices ; i++) {           var elem = instance.options.array[i];          var foundPos = instance.options.ignoreCase ? 

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人av电影在线| 日本免费在线视频不卡一不卡二| 国产乱码精品一品二品| 久久亚区不卡日本| 成人午夜视频网站| 亚洲欧美成人一区二区三区| 欧洲一区二区三区在线| 日韩电影在线免费看| 精品久久久久久亚洲综合网| 国产成人午夜精品5599| 亚洲色图都市小说| 欧美日韩国产精选| 国产一区二区三区综合| 最新高清无码专区| 91精品婷婷国产综合久久| 狠狠狠色丁香婷婷综合激情| 国产欧美一区在线| 91黄色小视频| 激情综合网天天干| 综合久久久久久久| 欧美一级日韩免费不卡| 国产成人av一区| 一区二区欧美国产| 久久女同性恋中文字幕| 色综合久久久久综合体| 男女性色大片免费观看一区二区 | 欧美视频一区二区三区四区| 青草av.久久免费一区| 国产精品视频yy9299一区| 在线看国产日韩| 国内一区二区视频| 一区二区三区欧美日| 日韩欧美aaaaaa| 91蜜桃免费观看视频| 日本va欧美va精品发布| 亚洲日韩欧美一区二区在线| 日韩一区二区精品葵司在线| 国产福利一区二区三区视频| 午夜电影久久久| 国产精品丝袜一区| 日韩欧美国产三级| 欧美三级韩国三级日本一级| 国产91精品一区二区麻豆亚洲| 一区二区三区高清| 国产免费观看久久| 日韩一区二区三区电影| 91亚洲永久精品| 国产真实乱对白精彩久久| 亚洲大片一区二区三区| 一区免费观看视频| 国产欧美综合在线观看第十页| 69堂国产成人免费视频| 欧美这里有精品| 不卡的电视剧免费网站有什么| 日本亚洲天堂网| 偷拍亚洲欧洲综合| 亚洲精选视频在线| 中文成人av在线| 久久精品亚洲精品国产欧美 | 亚洲在线成人精品| 国产精品麻豆99久久久久久| 久久久亚洲午夜电影| 日韩午夜在线观看视频| 7777精品伊人久久久大香线蕉的 | 成人一区二区三区视频| 精品在线播放午夜| 久久综合综合久久综合| 免费高清视频精品| 日本免费新一区视频| 日韩成人午夜电影| 天天色综合天天| 亚欧色一区w666天堂| 亚洲一区二区成人在线观看| 亚洲欧洲精品天堂一级| 中文字幕一区不卡| 亚洲天堂福利av| 成人免费一区二区三区视频| 国产精品另类一区| 国产精品理论在线观看| 中文字幕一区二区三中文字幕| 国产精品久久久久久久久免费相片 | 国产精品亚洲а∨天堂免在线| 久久不见久久见免费视频1| 免费成人在线观看视频| 久久99精品一区二区三区| 国产做a爰片久久毛片| 国产麻豆午夜三级精品| 国产成人精品一区二| 成人免费毛片aaaaa**| 99久久99久久精品免费看蜜桃 | 欧美在线视频不卡| 欧美日韩大陆一区二区| 欧美一区二区三区免费视频| 日韩一区和二区| 久久精品夜色噜噜亚洲a∨| 中文字幕av一区二区三区高 | 免播放器亚洲一区| 九色综合狠狠综合久久| 成人午夜电影网站| 欧美亚洲日本一区| 日韩欧美一级精品久久| 久久精品亚洲精品国产欧美kt∨| 欧美激情一区在线观看| 亚洲精品亚洲人成人网在线播放| 亚洲一区二区三区国产| 久久狠狠亚洲综合| www.亚洲激情.com| 欧美一区二区网站| 国产精品网站一区| 亚洲高清不卡在线| 国产资源在线一区| 在线观看中文字幕不卡| 日韩网站在线看片你懂的| 国产欧美一区二区精品性色超碰| 1024国产精品| 欧美aⅴ一区二区三区视频| 懂色一区二区三区免费观看 | 91久久精品网| 精品国产伦一区二区三区观看方式| 国产目拍亚洲精品99久久精品| 亚洲综合区在线| 韩国在线一区二区| 91尤物视频在线观看| 日韩一区二区免费视频| 亚洲欧美自拍偷拍| 蜜桃av一区二区| 色乱码一区二区三区88| 精品久久久久av影院| 亚洲综合色丁香婷婷六月图片| 精品亚洲国内自在自线福利| 色猫猫国产区一区二在线视频| 精品国产一区二区三区四区四| 一区二区三区在线看| 国产乱码精品一区二区三区av | 青青草原综合久久大伊人精品 | 99久久er热在这里只有精品66| 欧美一级黄色录像| 亚洲精品v日韩精品| 国产精品影音先锋| 欧美精品久久99久久在免费线 | 久久精品国产在热久久| 欧洲av一区二区嗯嗯嗯啊| 国产日产亚洲精品系列| 蜜臀91精品一区二区三区| 色综合色狠狠综合色| 亚洲国产精品v| 精品伊人久久久久7777人| 91.麻豆视频| 亚洲综合激情另类小说区| www.视频一区| 国产女同互慰高潮91漫画| 韩国女主播一区二区三区| 91精品在线一区二区| 偷窥少妇高潮呻吟av久久免费| 91传媒视频在线播放| 18成人在线观看| 99国产麻豆精品| 国产精品电影一区二区三区| 成人综合在线观看| 国产欧美日韩视频一区二区| 国内不卡的二区三区中文字幕| 日韩精品专区在线影院重磅| 日韩国产一二三区| 欧美视频在线观看一区二区| 亚洲一区中文日韩| 在线观看视频欧美| 一区二区三区电影在线播| 在线视频一区二区三区| 一区二区三区在线视频观看58| 99在线精品视频| 亚洲欧洲精品成人久久奇米网| 92精品国产成人观看免费| 国产精品天美传媒沈樵| 高清在线成人网| 国产精品久久久久影视| 成人aa视频在线观看| 亚洲欧洲国产日本综合| 色婷婷av一区二区三区gif| 一级精品视频在线观看宜春院| 在线观看视频欧美| 日本最新不卡在线| 2019国产精品| 91亚洲国产成人精品一区二三| 亚洲视频一区在线观看| 欧美午夜一区二区三区| 麻豆一区二区三| 国产农村妇女毛片精品久久麻豆| 成人精品电影在线观看| 一区二区三区中文字幕精品精品 | 国产精品毛片久久久久久久| 成人app在线| 亚洲一二三四在线观看| 337p亚洲精品色噜噜狠狠| 美女脱光内衣内裤视频久久网站| 久久久精品2019中文字幕之3| 成人av在线电影| 午夜久久久久久| 精品国产伦一区二区三区观看方式 | 国产精品久久久久影院亚瑟| 91免费精品国自产拍在线不卡|