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

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

?? 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 ? 

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品亚洲一区二区三区妖精 | 亚洲国产成人va在线观看天堂| 国产河南妇女毛片精品久久久| 日韩欧美你懂的| 久草在线在线精品观看| 久久亚洲影视婷婷| 成人app软件下载大全免费| 亚洲欧洲日产国码二区| 91视频一区二区三区| 亚洲最大成人网4388xx| 欧美日韩国产一级二级| 久久av老司机精品网站导航| 2019国产精品| 91视视频在线直接观看在线看网页在线看| 亚洲精品久久7777| 日韩欧美在线网站| 成人av资源下载| 一二三区精品视频| 日韩美女天天操| 成人国产亚洲欧美成人综合网| 亚洲免费电影在线| 日韩欧美色电影| a在线播放不卡| 三级久久三级久久久| 欧美精品一区二区不卡| 成人av电影免费观看| 五月婷婷激情综合网| 久久精品欧美日韩| 欧美性xxxxxx少妇| 国产成人精品三级麻豆| 亚洲高清在线视频| 国产欧美日韩不卡免费| 欧美午夜一区二区三区| 在线亚洲免费视频| 开心九九激情九九欧美日韩精美视频电影| 久久久激情视频| 欧美日高清视频| 国产成人av资源| 婷婷久久综合九色综合绿巨人| 精品国产91洋老外米糕| 91在线国产观看| 另类欧美日韩国产在线| 亚洲精品成人少妇| 国产亚洲污的网站| 91精品在线观看入口| 99在线精品免费| 国产精品自拍毛片| 欧美aaa在线| 亚洲猫色日本管| 久久精品男人的天堂| 69堂国产成人免费视频| 91丨porny丨蝌蚪视频| 国产精品正在播放| 免费看日韩a级影片| 亚洲一区二区精品视频| 中文字幕一区免费在线观看| 精品国产乱码91久久久久久网站| 欧美日韩1234| 欧美中文字幕一区二区三区| 成人黄色av电影| 国产盗摄视频一区二区三区| 伦理电影国产精品| 日本欧美在线观看| 日韩精品色哟哟| 丝袜美腿亚洲一区| 午夜在线成人av| 亚洲一区二区精品久久av| 亚洲视频一区二区在线观看| 亚洲国产精品精华液2区45| 2023国产精华国产精品| 日韩欧美一区二区久久婷婷| 欧美日韩精品是欧美日韩精品| 色欧美日韩亚洲| 色综合久久天天| 色综合天天综合| 99re8在线精品视频免费播放| 成人精品一区二区三区四区| 国产精品夜夜爽| 丁香激情综合国产| 成人激情综合网站| 99久久久国产精品免费蜜臀| 色婷婷综合久色| 欧美性大战久久久久久久| 欧美性色综合网| 777色狠狠一区二区三区| 91精品久久久久久蜜臀| 日韩色视频在线观看| 欧美精品一区二区三区在线 | 久久综合色天天久久综合图片| 欧美一区二区三区视频| 日韩视频免费观看高清完整版| 亚洲精品一区二区三区香蕉| 欧美激情在线一区二区| 国产精品久久午夜夜伦鲁鲁| 国产精品成人在线观看| 又紧又大又爽精品一区二区| 亚洲一区二区精品久久av| av一本久道久久综合久久鬼色| 91蜜桃在线免费视频| 欧洲在线/亚洲| 91精品国产91久久综合桃花| 欧美mv日韩mv| 国产精品久久久久影院老司| 一区二区三区免费网站| 青青青爽久久午夜综合久久午夜| 久久 天天综合| caoporn国产一区二区| 欧美日韩精品欧美日韩精品| 日韩精品中文字幕一区二区三区| 国产偷v国产偷v亚洲高清| 亚洲欧美色综合| 男女男精品视频| 成人综合在线观看| 欧美日韩国产小视频在线观看| 日韩精品专区在线| 亚洲欧美一区二区视频| 日韩福利电影在线| 成人aaaa免费全部观看| 6080国产精品一区二区| 国产人妖乱国产精品人妖| 亚洲一区在线播放| 国产麻豆一精品一av一免费 | 国产福利一区二区三区| 91精品办公室少妇高潮对白| 日韩一区二区麻豆国产| 中文字幕在线不卡国产视频| 日韩电影免费在线| 99国产精品久久| 日韩午夜精品电影| 亚洲欧美一区二区久久| 精品一区二区三区在线观看 | 奇米影视在线99精品| 国产91对白在线观看九色| 欧美精品tushy高清| 国产精品久久夜| 久久精品国产一区二区三| 色乱码一区二区三区88| 国产三级一区二区| 日韩专区欧美专区| 91久久国产最好的精华液| 国产喷白浆一区二区三区| 麻豆成人91精品二区三区| 欧美性猛交一区二区三区精品| 国产精品欧美一区二区三区| 狠狠色狠狠色合久久伊人| 欧美日韩一区不卡| 亚洲精品乱码久久久久久| 国产91在线观看| 久久综合资源网| 七七婷婷婷婷精品国产| 欧美三级中文字幕| 一区av在线播放| 色婷婷国产精品综合在线观看| 国产精品国产精品国产专区不蜜| 国产制服丝袜一区| 日韩欧美的一区二区| 视频一区二区三区中文字幕| 欧美三级电影在线看| 亚洲制服欧美中文字幕中文字幕| 成人激情黄色小说| 欧美韩日一区二区三区四区| 国内精品不卡在线| 久久欧美一区二区| 国产一区三区三区| 26uuu国产在线精品一区二区| 精品一区二区三区香蕉蜜桃| 欧美tk—视频vk| 精品一区二区精品| 国产亚洲人成网站| 国产成人综合亚洲91猫咪| 国产日韩视频一区二区三区| 欧美一区二区三区精品| 男男成人高潮片免费网站| 日韩欧美精品在线| 国产一区二区电影| 中文字幕欧美三区| 色综合久久中文字幕综合网 | 欧美日韩极品在线观看一区| 亚洲图片一区二区| 91麻豆精品国产自产在线| 免费看欧美美女黄的网站| 精品久久久久一区| 国产激情精品久久久第一区二区 | 欧美性猛片xxxx免费看久爱| 日韩专区一卡二卡| 精品国产乱码久久久久久牛牛 | 欧美一区二区三区公司| 蜜桃av噜噜一区| 久久精品视频免费观看| 91免费在线视频观看| 天堂蜜桃91精品| 国产亚洲欧洲一区高清在线观看| 波多野结衣在线一区| 亚洲一区二区三区自拍| 日韩亚洲欧美在线| 成人一区二区三区视频| 一区二区三区四区高清精品免费观看 | 亚洲免费在线播放| 5858s免费视频成人| 国产精品综合av一区二区国产馆|