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

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

?? rico_change.js

?? ajax窗體技術,有許多漂亮的窗體,實現漂亮的客戶端
?? JS
?? 第 1 頁 / 共 5 頁
字號:
/**
  *
  *  Copyright 2005 Sabre Airline Solutions
  *
  *  Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
  *  file except in compliance with the License. You may obtain a copy of the License at
  *
  *         http://www.apache.org/licenses/LICENSE-2.0
  *
  *  Unless required by applicable law or agreed to in writing, software distributed under the
  *  License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
  *  either express or implied. See the License for the specific language governing permissions
  *  and limitations under the License.
  **/


//-------------------- rico.js
var Rico = {
  Version: '1.1.2',
  prototypeVersion: parseFloat(Prototype.Version.split(".")[0] + "." + Prototype.Version.split(".")[1])
}

if((typeof Prototype=='undefined') || Rico.prototypeVersion < 1.3)
      throw("Rico requires the Prototype JavaScript framework >= 1.3");

Rico.ArrayExtensions = new Array();

if (Object.prototype.extend) {
   Rico.ArrayExtensions[ Rico.ArrayExtensions.length ] = Object.prototype.extend;
}else{
  Object.prototype.extend = function(object) {
    return Object.extend.apply(this, [this, object]);
  }
  Rico.ArrayExtensions[ Rico.ArrayExtensions.length ] = Object.prototype.extend;
}

if (Array.prototype.push) {
   Rico.ArrayExtensions[ Rico.ArrayExtensions.length ] = Array.prototype.push;
}

if (!Array.prototype.remove) {
   Array.prototype.remove = function(dx) {
      if( isNaN(dx) || dx > this.length )
         return false;
      for( var i=0,n=0; i<this.length; i++ )
         if( i != dx )
            this[n++]=this[i];
      this.length-=1;
   };
  Rico.ArrayExtensions[ Rico.ArrayExtensions.length ] = Array.prototype.remove;
}

if (!Array.prototype.removeItem) {
   Array.prototype.removeItem = function(item) {
      for ( var i = 0 ; i < this.length ; i++ )
         if ( this[i] == item ) {
            this.remove(i);
            break;
         }
   };
  Rico.ArrayExtensions[ Rico.ArrayExtensions.length ] = Array.prototype.removeItem;
}

if (!Array.prototype.indices) {
   Array.prototype.indices = function() {
      var indexArray = new Array();
      for ( index in this ) {
         var ignoreThis = false;
         for ( var i = 0 ; i < Rico.ArrayExtensions.length ; i++ ) {
            if ( this[index] == Rico.ArrayExtensions[i] ) {
               ignoreThis = true;
               break;
            }
         }
         if ( !ignoreThis )
            indexArray[ indexArray.length ] = index;
      }
      return indexArray;
   }
  Rico.ArrayExtensions[ Rico.ArrayExtensions.length ] = Array.prototype.indices;
}

// Create the loadXML method and xml getter for Mozilla
if ( window.DOMParser &&
	  window.XMLSerializer &&
	  window.Node && Node.prototype && Node.prototype.__defineGetter__ ) {

   if (!Document.prototype.loadXML) {
      Document.prototype.loadXML = function (s) {
         var doc2 = (new DOMParser()).parseFromString(s, "text/xml");
         while (this.hasChildNodes())
            this.removeChild(this.lastChild);

         for (var i = 0; i < doc2.childNodes.length; i++) {
            this.appendChild(this.importNode(doc2.childNodes[i], true));
         }
      };
	}

	Document.prototype.__defineGetter__( "xml",
	   function () {
		   return (new XMLSerializer()).serializeToString(this);
	   }
	 );
}

document.getElementsByTagAndClassName = function(tagName, className) {
  if ( tagName == null )
     tagName = '*';

  var children = document.getElementsByTagName(tagName) || document.all;
  var elements = new Array();

  if ( className == null )
    return children;

  for (var i = 0; i < children.length; i++) {
    var child = children[i];
    var classNames = child.className.split(' ');
    for (var j = 0; j < classNames.length; j++) {
      if (classNames[j] == className) {
        elements.push(child);
        break;
      }
    }
  }

  return elements;
}


//-------------------- ricoAccordion.js
Rico.Accordion = Class.create();

Rico.Accordion.prototype = {

   initialize: function(container, options) {
      this.container            = $(container);
      this.lastExpandedTab      = null;
      this.accordionTabs        = new Array();
      this.setOptions(options);
      this._attachBehaviors();
      if(!container) return;

      this.container.style.borderBottom = '1px solid ' + this.options.borderColor;
      // validate onloadShowTab
       if (this.options.onLoadShowTab >= this.accordionTabs.length)
        this.options.onLoadShowTab = 0;

      // set the initial visual state...
      for ( var i=0 ; i < this.accordionTabs.length ; i++ )
      {
        if (i != this.options.onLoadShowTab){
         this.accordionTabs[i].collapse();
         this.accordionTabs[i].content.style.display = 'none';
        }
      }
      this.lastExpandedTab = this.accordionTabs[this.options.onLoadShowTab];
      if (this.options.panelHeight == 'auto'){
          var tabToCheck = (this.options.onloadShowTab === 0)? 1 : 0;
          var titleBarSize = parseInt(RicoUtil.getElementsComputedStyle(this.accordionTabs[tabToCheck].titleBar, 'height'));
          if (isNaN(titleBarSize))
            titleBarSize = this.accordionTabs[tabToCheck].titleBar.offsetHeight;
          
          var totalTitleBarSize = this.accordionTabs.length * titleBarSize;
          var parentHeight = parseInt(RicoUtil.getElementsComputedStyle(this.container.parentNode, 'height'));
          if (isNaN(parentHeight))
            parentHeight = this.container.parentNode.offsetHeight;
          
          this.options.panelHeight = parentHeight - totalTitleBarSize-2;
      }
      
      this.lastExpandedTab.content.style.height = this.options.panelHeight + "px";
      this.lastExpandedTab.showExpanded();
      this.lastExpandedTab.titleBar.style.fontWeight = this.options.expandedFontWeight;

   },

   setOptions: function(options) {
      this.options = {
         expandedBg          : '#545985',
         hoverBg             : '#63699c',
         collapsedBg         : '#6b79a5',
         expandedTextColor   : '#ffffff',
         expandedFontWeight  : 'bold',
         hoverTextColor      : '#ffffff',
         collapsedTextColor  : '#ced7ef',
         collapsedFontWeight : 'normal',
         hoverTextColor      : '#ffffff',
         borderColor         : '#ffffff',
         panelHeight         : 200,
         onHideTab           : null,
         onShowTab           : null,
         onLoadShowTab       : 0
      }
      Object.extend(this.options, options || {});
   },

   showTabByIndex: function( anIndex, animate ) {
      var doAnimate = arguments.length == 1 ? true : animate;
      this.showTab( this.accordionTabs[anIndex], doAnimate );
   },

   showTab: function( accordionTab, animate ) {
     if ( this.lastExpandedTab == accordionTab )
        return;

      var doAnimate = arguments.length == 1 ? true : animate;

      if ( this.options.onHideTab )
         this.options.onHideTab(this.lastExpandedTab);

      this.lastExpandedTab.showCollapsed(); 
      var accordion = this;
      var lastExpandedTab = this.lastExpandedTab;

      this.lastExpandedTab.content.style.height = (this.options.panelHeight - 1) + 'px';
      accordionTab.content.style.display = '';

      accordionTab.titleBar.style.fontWeight = this.options.expandedFontWeight;

      if ( doAnimate ) {
         new Rico.Effect.AccordionSize( this.lastExpandedTab.content,
                                   accordionTab.content,
                                   1,
                                   this.options.panelHeight,
                                   100, 10,
                                   { complete: function() {accordion.showTabDone(lastExpandedTab)} } );
         this.lastExpandedTab = accordionTab;
      }
      else {
         this.lastExpandedTab.content.style.height = "1px";
         accordionTab.content.style.height = this.options.panelHeight + "px";
         this.lastExpandedTab = accordionTab;
         this.showTabDone(lastExpandedTab);
      }
   },

   showTabDone: function(collapsedTab) {
      collapsedTab.content.style.display = 'none';
      this.lastExpandedTab.showExpanded();
      if ( this.options.onShowTab )
         this.options.onShowTab(this.lastExpandedTab);
   },

   _attachBehaviors: function() {
      var panels = this._getDirectChildrenByTag(this.container, 'DIV');
      for ( var i = 0 ; i < panels.length ; i++ ) {

         var tabChildren = this._getDirectChildrenByTag(panels[i],'DIV');
         if ( tabChildren.length != 2 )
            continue; // unexpected

         var tabTitleBar   = tabChildren[0];
         var tabContentBox = tabChildren[1];
         this.accordionTabs.push( new Rico.Accordion.Tab(this,tabTitleBar,tabContentBox) );
      }
   },

   _getDirectChildrenByTag: function(e, tagName) {
      var kids = new Array();
      var allKids = e.childNodes;
      for( var i = 0 ; i < allKids.length ; i++ )
         if ( allKids[i] && allKids[i].tagName && allKids[i].tagName == tagName )
            kids.push(allKids[i]);
      return kids;
   }

};

Rico.Accordion.Tab = Class.create();

Rico.Accordion.Tab.prototype = {

   initialize: function(accordion, titleBar, content) {
      this.accordion = accordion;
      this.titleBar  = titleBar;
      this.content   = content;
      this._attachBehaviors();
   },

   collapse: function() {
      this.showCollapsed();
      this.content.style.height = "1px";
   },

   showCollapsed: function() {
      this.expanded = false;
      this.titleBar.style.backgroundColor = this.accordion.options.collapsedBg;
      this.titleBar.style.color           = this.accordion.options.collapsedTextColor;
      this.titleBar.style.fontWeight      = this.accordion.options.collapsedFontWeight;
      this.content.style.overflow = "hidden";
   },

   showExpanded: function() {
      this.expanded = true;
      this.titleBar.style.backgroundColor = this.accordion.options.expandedBg;
      this.titleBar.style.color           = this.accordion.options.expandedTextColor;
      this.content.style.overflow         = "auto";
   },

   titleBarClicked: function(e) {
      if ( this.accordion.lastExpandedTab == this )
         return;
      this.accordion.showTab(this);
   },

   hover: function(e) {
		this.titleBar.style.backgroundColor = this.accordion.options.hoverBg;
		this.titleBar.style.color           = this.accordion.options.hoverTextColor;
   },

   unhover: function(e) {
      if ( this.expanded ) {
         this.titleBar.style.backgroundColor = this.accordion.options.expandedBg;
         this.titleBar.style.color           = this.accordion.options.expandedTextColor;
      }
      else {
         this.titleBar.style.backgroundColor = this.accordion.options.collapsedBg;
         this.titleBar.style.color           = this.accordion.options.collapsedTextColor;
      }
   },

   _attachBehaviors: function() {
      this.content.style.border = "1px solid " + this.accordion.options.borderColor;
      this.content.style.borderTopWidth    = "0px";
      this.content.style.borderBottomWidth = "0px";
      this.content.style.margin            = "0px";

      this.titleBar.onclick     = this.titleBarClicked.bindAsEventListener(this);
      this.titleBar.onmouseover = this.hover.bindAsEventListener(this);
      this.titleBar.onmouseout  = this.unhover.bindAsEventListener(this);
   }

};


//-------------------- ricoAjaxEngine.js
Rico.AjaxEngine = Class.create();

Rico.AjaxEngine.prototype = {

   initialize: function() {
      this.ajaxElements = new Array();
      this.ajaxObjects  = new Array();
      this.requestURLS  = new Array();
      this.options = {};
   },

   registerAjaxElement: function( anId, anElement ) {
      if ( !anElement )
         anElement = $(anId);
      this.ajaxElements[anId] = anElement;
   },

   registerAjaxObject: function( anId, anObject ) {
      this.ajaxObjects[anId] = anObject;
   },

   registerRequest: function (requestLogicalName, requestURL) {
      this.requestURLS[requestLogicalName] = requestURL;
   },

   sendRequest: function(requestName, options) {
      // Allow for backwards Compatibility
      if ( arguments.length >= 2 )
       if (typeof arguments[1] == 'string')
         options = {parameters: this._createQueryString(arguments, 1)};
      this.sendRequestWithData(requestName, null, options);
   },

   sendRequestWithData: function(requestName, xmlDocument, options) {
      var requestURL = this.requestURLS[requestName];
      if ( requestURL == null )
         return;

      // Allow for backwards Compatibility
      if ( arguments.length >= 3 )
        if (typeof arguments[2] == 'string')
          options.parameters = this._createQueryString(arguments, 2);

      new Ajax.Request(requestURL, this._requestOptions(options,xmlDocument));
   },

   sendRequestAndUpdate: function(requestName,container,options) {
      // Allow for backwards Compatibility
      if ( arguments.length >= 3 )
        if (typeof arguments[2] == 'string')
          options.parameters = this._createQueryString(arguments, 2);

      this.sendRequestWithDataAndUpdate(requestName, null, container, options);
   },

   sendRequestWithDataAndUpdate: function(requestName,xmlDocument,container,options) {
      var requestURL = this.requestURLS[requestName];
      if ( requestURL == null )
         return;

      // Allow for backwards Compatibility
      if ( arguments.length >= 4 )
        if (typeof arguments[3] == 'string')
          options.parameters = this._createQueryString(arguments, 3);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美性受xxxx| 亚洲1区2区3区视频| 一个色在线综合| 免费黄网站欧美| 99vv1com这只有精品| 欧美一区三区四区| 亚洲三级电影全部在线观看高清| 蜜桃av一区二区三区| 91蝌蚪porny| 久久九九国产精品| 亚洲6080在线| 欧美在线高清视频| 中文字幕一区二区在线观看| 免费成人深夜小野草| 欧美日韩国产综合一区二区| 国产精品乱码一区二区三区软件| 欧美aaaaa成人免费观看视频| 91视频观看视频| 国产精品视频九色porn| 国内一区二区视频| 日韩女优视频免费观看| 偷拍与自拍一区| 欧美日韩在线观看一区二区 | 99久久精品费精品国产一区二区| 欧美一二三四区在线| 亚洲高清视频中文字幕| 欧美一二三四在线| 免费精品99久久国产综合精品| 在线视频欧美区| 亚洲精品国产一区二区三区四区在线| 丰满亚洲少妇av| 亚洲国产精品v| 粉嫩av一区二区三区在线播放| 精品国产欧美一区二区| 精品制服美女久久| 精品奇米国产一区二区三区| 久久99国产精品久久| 日韩视频在线你懂得| 久久国产精品区| 精品成人佐山爱一区二区| 久久精品国产久精国产| 精品噜噜噜噜久久久久久久久试看| 免费在线观看一区| 日韩欧美一卡二卡| 久久精品99国产国产精| 精品国产免费久久 | 91精品国产一区二区三区蜜臀 | 欧美日韩一区 二区 三区 久久精品| 亚洲卡通动漫在线| 欧美三区免费完整视频在线观看| 天天影视色香欲综合网老头| 欧美一区二区三区影视| 精品一区二区三区影院在线午夜| 久久久99精品免费观看| 9l国产精品久久久久麻豆| 亚洲国产欧美另类丝袜| 欧美一区二区在线观看| 久久精品国产亚洲a| 国产女人18水真多18精品一级做| www.av精品| 香蕉成人伊视频在线观看| 日韩免费福利电影在线观看| 国产成人亚洲综合a∨婷婷| 国产精品国产自产拍高清av| 欧美亚男人的天堂| 国产在线看一区| 亚洲色图色小说| 欧美变态凌虐bdsm| 91蜜桃在线观看| 久久99最新地址| 亚洲精品你懂的| 26uuu国产日韩综合| 91免费国产在线| 国产乱人伦精品一区二区在线观看| 一区二区中文字幕在线| 日韩三区在线观看| 在线精品视频免费观看| 国模大尺度一区二区三区| 亚洲免费大片在线观看| 久久综合九色综合97_久久久| 色视频一区二区| 国产麻豆精品一区二区| 亚洲444eee在线观看| 中文字幕精品一区二区精品绿巨人 | 久久激情综合网| 亚洲一区中文日韩| 中文字幕第一区二区| 日韩欧美在线观看一区二区三区| 成人av网站在线| 国产剧情一区在线| 免费在线观看成人| 亚洲国产精品久久一线不卡| 国产精品久久久久国产精品日日| 日韩午夜激情视频| 欧美日韩激情一区二区| 色吊一区二区三区| 成人毛片视频在线观看| 国产精品一卡二卡| 久久精品国产第一区二区三区| 亚洲小说欧美激情另类| 日韩av一级片| 玉米视频成人免费看| 国产精品丝袜久久久久久app| 精品噜噜噜噜久久久久久久久试看 | 久久久久青草大香线综合精品| 欧美日免费三级在线| 色综合久久久网| 99国产欧美另类久久久精品| 成人一区二区三区视频| 国产大陆a不卡| 国产精品亚洲第一区在线暖暖韩国| 久久av老司机精品网站导航| 麻豆精品一区二区av白丝在线| 日韩精品一二三| 日韩国产在线一| 秋霞电影网一区二区| 日韩精品免费视频人成| 视频一区中文字幕国产| 日韩中文欧美在线| 麻豆国产91在线播放| 麻豆精品视频在线观看| 蜜臀av性久久久久av蜜臀妖精| 日本不卡免费在线视频| 青娱乐精品视频| 精品一二线国产| 国产一区二区精品久久99| 国产成人啪午夜精品网站男同| 国产专区欧美精品| 99亚偷拍自图区亚洲| 91美女蜜桃在线| 欧美人妇做爰xxxⅹ性高电影 | 精品国产乱码久久久久久牛牛 | 久久久影院官网| 欧美国产激情二区三区| 亚洲色图欧洲色图| 亚洲国产精品嫩草影院| 蜜乳av一区二区三区| 国产一区二区三区免费播放| 不卡在线视频中文字幕| 色狠狠桃花综合| 日韩一区二区精品在线观看| 久久精品一区二区| 一区二区三区四区在线| 青娱乐精品在线视频| 国产成人在线视频网站| 色综合天天综合狠狠| 69久久夜色精品国产69蝌蚪网| 久久中文字幕电影| 亚洲麻豆国产自偷在线| 秋霞午夜鲁丝一区二区老狼| 成人免费毛片app| 欧美日韩一级黄| 欧美精品一区二区三区在线| 18欧美乱大交hd1984| 日本欧美在线观看| 成人永久aaa| 制服丝袜中文字幕一区| 国产精品欧美一区喷水| 日本三级亚洲精品| 99精品久久只有精品| 日韩免费视频一区二区| 懂色av一区二区三区蜜臀 | 欧美精品777| 中文字幕高清不卡| 日产国产欧美视频一区精品| 99热这里都是精品| 欧美mv和日韩mv的网站| 一区二区不卡在线视频 午夜欧美不卡在 | 在线视频欧美精品| 国产日韩成人精品| 日本va欧美va欧美va精品| 99v久久综合狠狠综合久久| 日韩女优av电影| 午夜伊人狠狠久久| 99精品国产热久久91蜜凸| 欧美mv和日韩mv国产网站| 亚洲va韩国va欧美va| 91在线视频免费91| 国产欧美日韩亚州综合| 日韩二区在线观看| 欧美三级电影在线观看| 亚洲欧洲av色图| 懂色av中文字幕一区二区三区 | 国产欧美精品国产国产专区 | 懂色中文一区二区在线播放| 日韩午夜三级在线| 丝袜诱惑制服诱惑色一区在线观看| www.欧美日韩| 国产精品久久久久精k8| 高清国产一区二区| 久久免费偷拍视频| 韩国精品在线观看| 日韩欧美国产综合一区| 色婷婷综合久久久中文一区二区| 国产精品人妖ts系列视频| 国产成人av电影在线| 久久久国产午夜精品| 国产在线视频一区二区三区| 久久日韩精品一区二区五区| 久久99国产精品久久|