亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
视频一区视频二区中文| 亚洲福利视频三区| 欧美日韩一级片网站| 极品少妇xxxx精品少妇| 亚洲激情图片qvod| 国产色综合一区| 欧美揉bbbbb揉bbbbb| 成人性生交大片免费看中文| 日韩电影在线观看一区| 国产精品国产三级国产aⅴ原创| 欧美日韩一区二区三区高清 | 亚洲一区二区三区国产| 久久先锋资源网| 3atv在线一区二区三区| 91成人在线免费观看| 成人天堂资源www在线| 黄色精品一二区| 日精品一区二区三区| 亚洲一区自拍偷拍| 中文字幕制服丝袜成人av| 国产欧美综合在线观看第十页 | 中文字幕视频一区二区三区久| 日韩欧美国产一二三区| 欧美日本免费一区二区三区| 91免费版pro下载短视频| 国产成人精品免费视频网站| 麻豆专区一区二区三区四区五区| 亚洲综合网站在线观看| 亚洲日本在线观看| 亚洲欧美在线高清| 久久久91精品国产一区二区精品| 欧美大片日本大片免费观看| 日韩视频免费观看高清在线视频| 91精品国产综合久久久久久久久久 | 日韩高清不卡一区二区三区| 樱花草国产18久久久久| 亚洲欧美视频在线观看视频| 国产精品久久久久影院| 国产精品美女视频| 中文字幕欧美国产| 国产日韩v精品一区二区| 久久午夜色播影院免费高清 | 日韩精品中午字幕| 日韩欧美亚洲一区二区| 日韩美女一区二区三区四区| 日韩欧美色综合网站| 精品国产sm最大网站免费看| 国产午夜精品一区二区| 国产三级精品在线| 一区视频在线播放| 亚洲人亚洲人成电影网站色| 一二三区精品视频| 午夜精品一区二区三区电影天堂| 午夜精品福利一区二区三区蜜桃| 三级影片在线观看欧美日韩一区二区 | 欧美一级在线观看| 精品国产91亚洲一区二区三区婷婷| 精品少妇一区二区| 久久久久久久久久久久电影| 国产精品久久久久影视| 亚洲精品乱码久久久久久| 国产中文一区二区三区| 国产成人自拍网| 91影视在线播放| 在线不卡欧美精品一区二区三区| 日韩视频免费观看高清完整版在线观看| 欧美成va人片在线观看| 国产精品久久一级| 伊人开心综合网| 蜜臀va亚洲va欧美va天堂| 国产精品123区| 欧美性猛交xxxxxx富婆| 日韩欧美一区中文| 国产精品女同一区二区三区| 一个色综合网站| 久久精品国产免费看久久精品| 国产aⅴ精品一区二区三区色成熟| 91亚洲永久精品| 日韩欧美国产高清| 中文字幕亚洲综合久久菠萝蜜| 午夜视频在线观看一区二区| 国产精品一二三区在线| 一本一道久久a久久精品| 欧美一区二区不卡视频| 中文字幕五月欧美| 久久精品国产99| 91免费版在线| 精品国产免费一区二区三区香蕉 | 麻豆成人久久精品二区三区小说| 懂色av一区二区在线播放| 欧美午夜影院一区| 久久理论电影网| 视频在线观看国产精品| 成人福利电影精品一区二区在线观看| 欧美日韩一级视频| 18成人在线观看| 精品一区二区成人精品| 色婷婷av一区二区三区之一色屋| 久久久久亚洲综合| 日本系列欧美系列| 色综合色狠狠综合色| 久久精品在这里| 久久精品国产精品亚洲精品| 在线看国产日韩| 国产精品久久看| 精品一区二区在线播放| 欧美体内she精视频| 亚洲日本在线视频观看| 国产黑丝在线一区二区三区| 亚洲国产精品ⅴa在线观看| 美日韩一区二区三区| 91成人免费在线| 国产精品无遮挡| 国产一区二区美女诱惑| 91精品在线一区二区| 亚洲综合一二区| 91麻豆精品在线观看| 国产精品久久久久婷婷二区次| 黄网站免费久久| 精品欧美久久久| 免费观看在线综合| 欧美日韩视频在线一区二区| 亚洲精品免费一二三区| 波多野结衣中文一区| 久久久一区二区三区| 日本在线播放一区二区三区| 欧美日韩在线精品一区二区三区激情| 欧美精品一卡两卡| 亚洲国产成人tv| 欧美日韩小视频| 日韩高清电影一区| 中文字幕在线视频一区| 精品国产99国产精品| 韩日av一区二区| 337p粉嫩大胆色噜噜噜噜亚洲| 日本亚洲视频在线| 精品国产精品一区二区夜夜嗨| 看国产成人h片视频| 欧美精品一区二区久久婷婷| 奇米精品一区二区三区在线观看| 777xxx欧美| 美女脱光内衣内裤视频久久网站| 8v天堂国产在线一区二区| 日韩精品福利网| 精品久久国产老人久久综合| 激情综合色综合久久综合| 2021久久国产精品不只是精品| 国产专区欧美精品| 国产欧美视频一区二区| 99久久精品久久久久久清纯| 中文字幕一区二区日韩精品绯色| 色综合久久久久久久久| 香蕉影视欧美成人| 欧美草草影院在线视频| 粉嫩一区二区三区性色av| 亚洲图片欧美激情| 欧美综合久久久| 日韩制服丝袜av| 久久这里只有精品视频网| 成人动漫一区二区在线| 亚洲国产一二三| 欧美精品一区二区三区在线播放| 精品视频999| 蜜臀av国产精品久久久久| 久久精品一区二区三区不卡 | 97久久超碰国产精品| 亚洲国产精品久久人人爱蜜臀| 日韩欧美亚洲一区二区| 成人午夜视频在线| 一区二区三区精品| 日韩欧美国产一区二区在线播放| 成人免费福利片| 亚洲第一激情av| 久久精品一级爱片| 欧美系列在线观看| 国产精品99精品久久免费| 亚洲在线成人精品| 精品国产乱码久久久久久免费| 99re成人精品视频| 麻豆91精品视频| 亚洲欧洲国产日本综合| 91麻豆精品国产91久久久资源速度| 国产精品系列在线播放| 亚洲一区二区影院| 欧美国产成人精品| 91麻豆精品国产91久久久更新时间| 成人午夜在线免费| 蜜芽一区二区三区| 亚洲另类色综合网站| 精品成人私密视频| 欧美天堂亚洲电影院在线播放| 国产精品一区三区| 偷拍日韩校园综合在线| 国产精品久久久久aaaa| 日韩三级高清在线| 色成人在线视频| 成人久久18免费网站麻豆| 青青草97国产精品免费观看| 亚洲欧美一区二区三区极速播放| 欧美精品一区二区在线播放|