亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
成人午夜私人影院| 欧美韩日一区二区三区四区| 国产精品网曝门| 国产偷国产偷精品高清尤物| 久久综合给合久久狠狠狠97色69| 欧美大黄免费观看| 久久色在线观看| 国产亚洲午夜高清国产拍精品| 久久色成人在线| 久久久久国产精品麻豆ai换脸| 亚洲精品一线二线三线无人区| 欧美videofree性高清杂交| 精品国产一区二区在线观看| 2019国产精品| 国产欧美一区视频| 国产精品久久久爽爽爽麻豆色哟哟| 中文字幕欧美激情| 亚洲精选视频在线| 三级精品在线观看| 久久精品国产精品亚洲综合| 国产精品一区一区| 不卡免费追剧大全电视剧网站| 成人app在线| 91久久精品网| 欧美一区二区三区四区视频| 精品成人免费观看| 国产精品福利一区二区| 一区二区欧美国产| 美女高潮久久久| 国产成人在线免费观看| 日本精品视频一区二区| 欧美美女喷水视频| 久久久久国产精品麻豆ai换脸 | 国产精品1024久久| 99视频一区二区| 欧美日产在线观看| 精品久久久久久最新网址| 欧美国产激情二区三区| 亚洲一区在线免费观看| 美腿丝袜亚洲三区| av亚洲精华国产精华精| 欧美电影影音先锋| 国产亚洲精品7777| 亚洲午夜免费视频| 国内精品伊人久久久久av影院| 97se亚洲国产综合自在线不卡| 欧美美女喷水视频| 国产精品久久久久9999吃药| 午夜av电影一区| 成人国产精品免费网站| 欧美日韩国产精品自在自线| 国产午夜久久久久| 亚洲成人你懂的| 国产又粗又猛又爽又黄91精品| 91免费小视频| 久久综合狠狠综合久久综合88| 玉米视频成人免费看| 国产又粗又猛又爽又黄91精品| 91国偷自产一区二区三区成为亚洲经典 | 亚洲123区在线观看| 国产精品66部| 欧美日韩国产美女| 中文字幕一区二区三区不卡在线 | 国产精品色婷婷| 天天综合网天天综合色 | 国产亚洲1区2区3区| 亚洲国产一区二区视频| 成人一二三区视频| 日韩精品一区二区三区视频播放 | 在线播放亚洲一区| 亚洲欧洲av另类| 国内精品免费**视频| 欧美日韩国产首页| 亚洲视频中文字幕| 国产成人精品免费视频网站| 日韩欧美国产三级电影视频| 亚洲一区视频在线观看视频| 不卡在线视频中文字幕| 2020国产精品| 裸体歌舞表演一区二区| 欧美久久一二三四区| 亚洲丝袜美腿综合| 国产不卡在线播放| 久久综合五月天婷婷伊人| 日本亚洲最大的色成网站www| 在线观看成人免费视频| **欧美大码日韩| 成人免费av资源| 国产日产欧美精品一区二区三区| 日本女人一区二区三区| 欧美亚洲自拍偷拍| 一区二区三区中文字幕精品精品 | 亚洲视频图片小说| 成人免费视频视频| 亚洲国产精华液网站w| 国产呦精品一区二区三区网站| 日韩一级在线观看| 日韩av电影天堂| 7777精品伊人久久久大香线蕉 | 国产成人综合亚洲91猫咪| 精品国产免费视频| 激情五月激情综合网| 日韩精品一区二区三区视频播放| 裸体歌舞表演一区二区| 欧美哺乳videos| 毛片基地黄久久久久久天堂| 91精品国产综合久久久蜜臀粉嫩 | 国产高清不卡一区二区| 久久综合精品国产一区二区三区| 国产一区二区三区免费观看| 久久免费电影网| 国产精品99久| 国产精品久线在线观看| 97久久精品人人做人人爽| 国产精品大尺度| 一本色道久久综合狠狠躁的推荐| 亚洲免费高清视频在线| 欧美熟乱第一页| 日韩在线一二三区| 欧美日韩久久一区二区| 日韩和欧美一区二区三区| 欧美va亚洲va国产综合| 国产精品一二三| 亚洲人吸女人奶水| 欧美日韩亚洲另类| 久久国产福利国产秒拍| 欧美精品一区二区在线观看| 处破女av一区二区| 亚洲精品欧美激情| 日韩一区二区三区高清免费看看 | 色av综合在线| 日韩电影在线一区| 久久男人中文字幕资源站| 99久久精品免费精品国产| 亚洲中国最大av网站| 日韩欧美中文字幕精品| 成人午夜电影小说| 亚洲一级电影视频| 欧美不卡一区二区| 99国内精品久久| 亚洲不卡av一区二区三区| 久久综合久久综合久久综合| 成人一级片在线观看| 亚洲福利一二三区| 久久尤物电影视频在线观看| 91麻豆免费观看| 久久精品噜噜噜成人av农村| 中文字幕一区二区三区四区| 欧美精品久久一区| 成人午夜在线视频| 日韩高清在线不卡| 国产精品黄色在线观看| 欧美欧美欧美欧美| 国产成人午夜高潮毛片| 亚洲一区二区3| 日本一区二区三区dvd视频在线| 欧美三级午夜理伦三级中视频| 激情av综合网| 亚洲午夜免费视频| 中文字幕乱码一区二区免费| 欧美日本视频在线| 成人精品视频一区二区三区 | 日韩电影免费在线观看网站| 欧美国产欧美综合| 欧美老年两性高潮| 成a人片亚洲日本久久| 麻豆免费精品视频| 亚洲精品高清在线观看| 国产亚洲人成网站| 欧美一级黄色大片| 欧美中文字幕一区二区三区亚洲| 国产一区二区在线观看视频| 性感美女极品91精品| 中文字幕一区二区在线观看| 精品国内二区三区| 欧美精品1区2区3区| 色综合久久久久网| 岛国av在线一区| 精品亚洲欧美一区| 日韩精品一卡二卡三卡四卡无卡| 亚洲另类春色校园小说| 欧美激情一区二区三区四区| 精品日本一线二线三线不卡| 欧美三级欧美一级| 色成年激情久久综合| 成人av在线播放网站| 国产精品99久久久久久宅男| 伦理电影国产精品| 日本网站在线观看一区二区三区| 亚洲自拍偷拍综合| 一区二区三区在线影院| 国产精品美女久久久久aⅴ | 综合久久国产九一剧情麻豆| 久久综合成人精品亚洲另类欧美 | 日韩综合一区二区| 亚洲一区二区在线免费看| 一区免费观看视频| 国产精品电影一区二区| 中文在线资源观看网站视频免费不卡| 亚洲精品一区二区在线观看|