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

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

?? rico.js

?? 尚學堂JavaScript視頻教程源碼,可以配合視頻使用,其中一些有用的例子也可以在自己的網站中嵌入使用
?? 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          : '#63699c',
         hoverBg             : '#63699c',
         collapsedBg         : '#6b79a5',
         expandedTextColor   : '#ffffff',
         expandedFontWeight  : 'bold',
         hoverTextColor      : '#ffffff',
         collapsedTextColor  : '#ced7ef',
         collapsedFontWeight : 'normal',
         hoverTextColor      : '#ffffff',
         borderColor         : '#1f669b',
         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一区二区三区免费野_久草精品视频
日韩精品专区在线| 五月婷婷激情综合| 亚洲动漫第一页| 黄色精品一二区| 7777精品伊人久久久大香线蕉经典版下载 | 午夜精品视频在线观看| 国产精品1区2区3区在线观看| 欧美日本乱大交xxxxx| 国产精品美女久久久久aⅴ国产馆 国产精品美女久久久久av爽李琼 国产精品美女久久久久高潮 | 日韩主播视频在线| www.欧美色图| 精品久久人人做人人爽| 亚洲一区二区成人在线观看| 国产成人超碰人人澡人人澡| 日韩欧美亚洲另类制服综合在线| 欧美一区二区精品久久911| 久久久久久久久免费| 青草国产精品久久久久久| 91论坛在线播放| 国产精品免费av| 国产91丝袜在线播放九色| 精品国精品自拍自在线| 日韩福利电影在线| 欧美日韩日日骚| 亚洲一卡二卡三卡四卡 | 蓝色福利精品导航| 欧美丰满嫩嫩电影| 亚洲国产精品天堂| 欧美色国产精品| 亚洲va欧美va人人爽| 欧美日韩午夜精品| 日韩精品亚洲一区二区三区免费| 欧美日韩一区成人| 视频在线在亚洲| 欧美电影在线免费观看| 日韩精品电影一区亚洲| 欧美精品粉嫩高潮一区二区| 午夜成人在线视频| 日韩欧美卡一卡二| 国产美女精品在线| 国产女主播一区| 91在线高清观看| 亚洲综合丝袜美腿| 91精品欧美综合在线观看最新| 日本中文在线一区| 2023国产精品| 99在线精品视频| 一区二区三区中文免费| 欧美日本在线播放| 久久成人综合网| 国产精品久久久久久福利一牛影视 | 久久精工是国产品牌吗| 精品久久久久久久人人人人传媒| 极品美女销魂一区二区三区| 国产午夜亚洲精品午夜鲁丝片| 国产 日韩 欧美大片| ㊣最新国产の精品bt伙计久久| 色呦呦国产精品| 日本大胆欧美人术艺术动态| 欧美国产亚洲另类动漫| 在线观看91精品国产入口| 日韩国产在线观看| 国产欧美日韩三级| 欧美三区在线观看| 欧洲亚洲国产日韩| 日韩一级免费一区| 91精品国产欧美一区二区| 激情文学综合插| 中文字幕日韩一区| 欧美日韩国产综合视频在线观看| 欧美精品aⅴ在线视频| 精品成人a区在线观看| 日韩av电影免费观看高清完整版| 欧美亚洲尤物久久| 一区二区高清免费观看影视大全| 成人中文字幕在线| 亚洲国产高清在线| jlzzjlzz亚洲女人18| 中文字幕一区二区三区不卡在线| 丁香婷婷深情五月亚洲| 国产精品不卡视频| 91蝌蚪国产九色| 亚洲一级二级三级在线免费观看| 欧美私人免费视频| 日韩电影在线观看一区| 精品区一区二区| 国产一区二区精品久久| 国产亚洲欧美色| av电影一区二区| 亚洲免费av高清| 欧美日韩精品系列| 日韩成人午夜精品| 久久这里都是精品| 不卡欧美aaaaa| 一二三区精品福利视频| 欧美精品亚洲二区| 激情综合网天天干| 中文字幕中文在线不卡住| 日本大香伊一区二区三区| 亚洲.国产.中文慕字在线| 在线播放欧美女士性生活| 久久99热国产| 日韩毛片精品高清免费| 777亚洲妇女| 成人综合激情网| 五月天婷婷综合| 国产亚洲欧美日韩日本| 欧美无砖砖区免费| 国产乱对白刺激视频不卡| 亚洲伦理在线免费看| 日韩一级成人av| 91视频一区二区三区| 日韩va亚洲va欧美va久久| 国产女人18水真多18精品一级做| 91精品福利视频| 国产精品一区一区| 午夜精品久久一牛影视| 国产清纯美女被跳蛋高潮一区二区久久w | 丁香激情综合国产| 亚洲丶国产丶欧美一区二区三区| 久久久久久免费| 欧美日韩国产美女| 不卡av在线免费观看| 精品午夜一区二区三区在线观看| 亚洲一区二区三区视频在线| 国产婷婷色一区二区三区在线| 欧美人伦禁忌dvd放荡欲情| 从欧美一区二区三区| 美女尤物国产一区| 夜夜精品视频一区二区| 国产日韩精品视频一区| 日韩一区二区三区视频在线观看 | 欧美电影影音先锋| 色综合久久中文字幕| 国产aⅴ综合色| 国内成人精品2018免费看| 亚洲地区一二三色| 亚洲精品成人精品456| 中文字幕电影一区| 国产视频一区二区在线| 精品日韩欧美在线| 91精品国产色综合久久不卡蜜臀| 在线观看视频欧美| 91福利视频网站| 91黄色激情网站| 在线观看网站黄不卡| 在线观看网站黄不卡| 色一区在线观看| 日本久久一区二区三区| 色欧美日韩亚洲| 欧美亚洲综合另类| 欧美日韩一级视频| 欧美高清精品3d| 日韩精品中文字幕一区| 欧美mv日韩mv亚洲| 亚洲精品一区二区三区99| 精品国产乱子伦一区| 欧美成人一区二区三区在线观看| 欧美一级片在线| 精品国产免费一区二区三区香蕉| 精品国精品国产尤物美女| 久久五月婷婷丁香社区| 国产片一区二区三区| 18欧美乱大交hd1984| 亚洲日本乱码在线观看| 亚洲国产va精品久久久不卡综合 | 国产一区二区伦理片| 国产成人免费在线视频| 99视频精品全部免费在线| 一本久久精品一区二区| 欧美日韩精品一区二区天天拍小说| 欧美酷刑日本凌虐凌虐| 精品久久一二三区| 欧美国产一区视频在线观看| 国产精品成人一区二区三区夜夜夜| 亚洲欧洲韩国日本视频| 婷婷综合另类小说色区| 精品伊人久久久久7777人| aaa亚洲精品| 欧美色精品在线视频| 精品处破学生在线二十三| 亚洲视频一区在线| 丝袜美腿一区二区三区| 精品一区二区影视| 91免费观看在线| 欧美tickling挠脚心丨vk| 中文字幕日韩一区| 日本vs亚洲vs韩国一区三区二区 | 国产成人a级片| 欧美三级午夜理伦三级中视频| 欧美一级二级三级蜜桃| 国产精品无遮挡| 视频一区二区三区中文字幕| 国产成人99久久亚洲综合精品| 欧美在线观看一区| 欧美韩国日本不卡| 日韩av成人高清| 色吊一区二区三区| 国产欧美日韩不卡| 免费xxxx性欧美18vr|