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

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

?? carousel-beta.js

?? 這是YUI的源碼及相關示例。里面有很多很炫的Javascript效果。
?? JS
?? 第 1 頁 / 共 5 頁
字號:
/*Copyright (c) 2008, Yahoo! Inc. All rights reserved.Code licensed under the BSD License:http://developer.yahoo.net/yui/license.txtversion: 2.6.0*//** * The Carousel module provides a widget for browsing among a set of like * objects represented pictorially. * * @module carousel * @requires yahoo, dom, event, element * @optional animation * @namespace YAHOO.widget * @title Carousel Widget */(function () {    var WidgetName;             // forward declaration    /**     * The Carousel widget.     *     * @class Carousel     * @extends YAHOO.util.Element     * @constructor     * @param el {HTMLElement | String} The HTML element that represents the     * the container that houses the Carousel.     * @param cfg {Object} (optional) The configuration values     */    YAHOO.widget.Carousel = function (el, cfg) {        this._navBtns = {};        this._pages = {};        YAHOO.widget.Carousel.superclass.constructor.call(this, el, cfg);    };    /*     * Private variables of the Carousel component     */    /* Some abbreviations to avoid lengthy typing and lookups. */    var Carousel    = YAHOO.widget.Carousel,        Dom         = YAHOO.util.Dom,        Event       = YAHOO.util.Event,        JS          = YAHOO.lang;    /**     * The widget name.     * @private     * @static     */    WidgetName = "Carousel";    /**     * The internal table of Carousel instances.     * @private     * @static     */    var instances = {};    /*     * Custom events of the Carousel component     */    /**     * @event afterScroll     * @description Fires when the Carousel has scrolled to the previous or     * next page.  Passes back the index of the first and last visible items in     * the Carousel.  See     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>     * for more information on listening for this event.     * @type YAHOO.util.CustomEvent     */    var afterScrollEvent = "afterScroll";    /**     * @event beforeHide     * @description Fires before the Carousel is hidden.  See     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>     * for more information on listening for this event.     * @type YAHOO.util.CustomEvent     */    var beforeHideEvent = "beforeHide";    /**     * @event beforePageChange     * @description Fires when the Carousel is about to scroll to the previous     * or next page.  Passes back the page number of the current page.  Note     * that the first page number is zero.  See     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>     * for more information on listening for this event.     * @type YAHOO.util.CustomEvent     */    var beforePageChangeEvent = "beforePageChange";    /**     * @event beforeScroll     * @description Fires when the Carousel is about to scroll to the previous     * or next page.  Passes back the index of the first and last visible items     * in the Carousel and the direction (backward/forward) of the scroll.  See     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>     * for more information on listening for this event.     * @type YAHOO.util.CustomEvent     */    var beforeScrollEvent = "beforeScroll";    /**     * @event beforeShow     * @description Fires when the Carousel is about to be shown.  See     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>     * for more information on listening for this event.     * @type YAHOO.util.CustomEvent     */    var beforeShowEvent = "beforeShow";    /**     * @event blur     * @description Fires when the Carousel loses focus.  See     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>     * for more information on listening for this event.     * @type YAHOO.util.CustomEvent     */    var blurEvent = "blur";    /**     * @event focus     * @description Fires when the Carousel gains focus.  See     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>     * for more information on listening for this event.     * @type YAHOO.util.CustomEvent     */    var focusEvent = "focus";    /**     * @event hide     * @description Fires when the Carousel is hidden.  See     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>     * for more information on listening for this event.     * @type YAHOO.util.CustomEvent     */    var hideEvent = "hide";    /**     * @event itemAdded     * @description Fires when an item has been added to the Carousel.  Passes     * back the content of the item that would be added, the index at which the     * item would be added, and the event itself.  See     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>     * for more information on listening for this event.     * @type YAHOO.util.CustomEvent     */    var itemAddedEvent = "itemAdded";    /**     * @event itemRemoved     * @description Fires when an item has been removed from the Carousel.     * Passes back the content of the item that would be removed, the index     * from which the item would be removed, and the event itself.  See     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>     * for more information on listening for this event.     * @type YAHOO.util.CustomEvent     */    var itemRemovedEvent = "itemRemoved";    /**     * @event itemSelected     * @description Fires when an item has been selected in the Carousel.     * Passes back the index of the selected item in the Carousel.  Note, that     * the index begins from zero.  See     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>     * for more information on listening for this event.     * @type YAHOO.util.CustomEvent     */    var itemSelectedEvent = "itemSelected";    /**     * @event loadItems     * @description Fires when the Carousel needs more items to be loaded for     * displaying them.  Passes back the first and last visible items in the     * Carousel, and the number of items needed to be loaded.  See     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>     * for more information on listening for this event.     * @type YAHOO.util.CustomEvent     */    var loadItemsEvent = "loadItems";    /**     * @event navigationStateChange     * @description Fires when the state of either one of the navigation     * buttons are changed from enabled to disabled or vice versa.  Passes back     * the state (true/false) of the previous and next buttons.  The value true     * signifies the button is enabled, false signifies disabled.  See     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>     * for more information on listening for this event.     * @type YAHOO.util.CustomEvent     */    var navigationStateChangeEvent = "navigationStateChange";    /**     * @event pageChange     * @description Fires after the Carousel has scrolled to the previous or     * next page.  Passes back the page number of the current page.  Note     * that the first page number is zero.  See     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>     * for more information on listening for this event.     * @type YAHOO.util.CustomEvent     */    var pageChangeEvent = "pageChange";    /**     * @event render     * @description Fires when the Carousel is rendered.  See     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>     * for more information on listening for this event.     * @type YAHOO.util.CustomEvent     */    var renderEvent = "render";    /**     * @event show     * @description Fires when the Carousel is shown.  See     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>     * for more information on listening for this event.     * @type YAHOO.util.CustomEvent     */    var showEvent = "show";    /**     * @event startAutoPlay     * @description Fires when the auto play has started in the Carousel.  See     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>     * for more information on listening for this event.     * @type YAHOO.util.CustomEvent     */    var startAutoPlayEvent = "startAutoPlay";    /**     * @event stopAutoPlay     * @description Fires when the auto play has been stopped in the Carousel.     * See     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>     * for more information on listening for this event.     * @type YAHOO.util.CustomEvent     */    var stopAutoPlayEvent = "stopAutoPlay";    /*     * Private helper functions used by the Carousel component     */    /**     * Automatically scroll the contents of the Carousel.     * @method autoScroll     * @private     */    function autoScroll() {        var currIndex = this._firstItem,            index;        if (currIndex >= this.get("numItems") - 1) {            if (this.get("isCircular")) {                index = 0;            } else {                this.stopAutoPlay();            }        } else {            index = currIndex + this.get("numVisible");        }        this.scrollTo.call(this, index);    }    /**     * Create an element, set its class name and optionally install the element     * to its parent.     * @method createElement     * @param el {String} The element to be created     * @param attrs {Object} Configuration of parent, class and id attributes.     * If the content is specified, it is inserted after creation of the     * element. The content can also be an HTML element in which case it would     * be appended as a child node of the created element.     * @private     */    function createElement(el, attrs) {        var newEl = document.createElement(el);        attrs = attrs || {};        if (attrs.className) {            Dom.addClass(newEl, attrs.className);        }        if (attrs.parent) {            attrs.parent.appendChild(newEl);        }        if (attrs.id) {            newEl.setAttribute("id", attrs.id);        }        if (attrs.content) {            if (attrs.content.nodeName) {                newEl.appendChild(attrs.content);            } else {                newEl.innerHTML = attrs.content;            }        }        return newEl;    }    /**     * Get the computed style of an element.     *     * @method getStyle     * @param el {HTMLElement} The element for which the style needs to be     * returned.     * @param style {String} The style attribute     * @param type {String} "int", "float", etc. (defaults to int)     * @private     */    function getStyle(el, style, type) {        var value;        function getStyleIntVal(el, style) {            var val;            val = parseInt(Dom.getStyle(el, style), 10);            return JS.isNumber(val) ? val : 0;        }        function getStyleFloatVal(el, style) {            var val;            val = parseFloat(Dom.getStyle(el, style));            return JS.isNumber(val) ? val : 0;        }        if (typeof type == "undefined") {            type = "int";        }        switch (style) {        case "height":            value = el.offsetHeight;            if (value > 0) {                value += getStyleIntVal(el, "marginTop")        +                        getStyleIntVal(el, "marginBottom");            } else {                value = getStyleFloatVal(el, "height")          +                        getStyleIntVal(el, "marginTop")         +                        getStyleIntVal(el, "marginBottom")      +                        getStyleIntVal(el, "borderTopWidth")    +                        getStyleIntVal(el, "borderBottomWidth") +                        getStyleIntVal(el, "paddingTop")        +                        getStyleIntVal(el, "paddingBottom");            }            break;        case "width":            value = el.offsetWidth;            if (value > 0) {                value += getStyleIntVal(el, "marginLeft")       +                        getStyleIntVal(el, "marginRight");            } else {                value = getStyleFloatVal(el, "width")           +                        getStyleIntVal(el, "marginLeft")        +                        getStyleIntVal(el, "marginRight")       +                        getStyleIntVal(el, "borderLeftWidth")   +                        getStyleIntVal(el, "borderRightWidth")  +                        getStyleIntVal(el, "paddingLeft")       +                        getStyleIntVal(el, "paddingRight");            }            break;        default:            if (type == "int") {                value = getStyleIntVal(el, style);                // XXX: Safari calculates incorrect marginRight for an element                // which has its parent element style set to overflow: hidden                // https://bugs.webkit.org/show_bug.cgi?id=13343                // Let us assume marginLeft == marginRight                if (style == "marginRight" && YAHOO.env.ua.webkit) {                    value = getStyleIntVal(el, "marginLeft");                }            } else if (type == "float") {                value = getStyleFloatVal(el, style);            } else {                value = Dom.getStyle(el, style);            }            break;        }        return value;    }    /**     * Compute and return the height or width of a single Carousel item     * depending upon the orientation.     *     * @method getCarouselItemSize     * @param which {String} "height" or "width" to be returned.  If this is     * passed explicitly, the calculated size is not cached.     * @private     */    function getCarouselItemSize(which) {        var child,            size     = 0,            vertical = false;        if (this._itemsTable.numItems === 0) {            return 0;        }        if (typeof which == "undefined") {

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美综合在线视频| 亚洲视频一区在线| 国产精品高潮呻吟久久| 奇米888四色在线精品| 97久久超碰国产精品| 久久夜色精品国产噜噜av| 亚洲人成影院在线观看| 国产成人啪免费观看软件| 欧美一区2区视频在线观看| 国产精品女上位| 国产一区中文字幕| 欧美一区二区三区免费观看视频| 日韩毛片视频在线看| 国产福利一区二区三区在线视频| 欧美一级高清片| 亚洲综合在线第一页| av男人天堂一区| 久久一日本道色综合| 日韩电影在线免费| 欧美日韩国产在线播放网站| 一卡二卡三卡日韩欧美| 成人a免费在线看| 亚洲精品在线免费播放| 麻豆视频观看网址久久| 欧美久久久久免费| 日韩精品福利网| 欧美日韩午夜精品| 亚洲制服丝袜一区| 欧美午夜电影一区| 捆绑调教美女网站视频一区| 91.xcao| 亚洲成人一二三| 欧美三级日韩在线| 婷婷亚洲久悠悠色悠在线播放| 欧美在线观看视频在线| 午夜精品久久久久影视| 91精品在线免费观看| 蜜臀av性久久久久蜜臀aⅴ| 欧美哺乳videos| 韩国女主播成人在线观看| 欧美sm美女调教| 国产精品12区| 国产精品乱码人人做人人爱| 99这里只有精品| 一区二区三区日本| 欧美日本乱大交xxxxx| 蜜臀久久99精品久久久画质超高清| 日韩欧美一区在线| 国产精品自拍三区| 亚洲欧美另类久久久精品| 欧美精品在线观看一区二区| 欧美一级片免费看| 亚洲视频狠狠干| 成人高清免费观看| 中文字幕亚洲一区二区av在线| 91久久精品一区二区三| 亚洲国产中文字幕在线视频综合| 欧美一区二区三区影视| 久久99精品久久久久久国产越南| 国产欧美日韩在线看| 欧美色图片你懂的| 国产在线不卡一区| 亚洲欧美一区二区三区久本道91| 91.com视频| 成人综合婷婷国产精品久久| 亚洲午夜精品久久久久久久久| 精品欧美一区二区在线观看| av一区二区三区在线| 日本三级亚洲精品| 亚洲欧洲色图综合| 日韩女同互慰一区二区| 99久久er热在这里只有精品15| 日韩电影免费在线观看网站| 国产精品色哟哟网站| 欧美一区二区三区四区久久| 波多野结衣一区二区三区| 男女激情视频一区| 亚洲女女做受ⅹxx高潮| 亚洲精品在线电影| 欧美视频中文字幕| 成人国产精品免费网站| 久久国产精品露脸对白| 亚洲高清免费观看高清完整版在线观看| 欧美精品一区二区高清在线观看| 日本高清成人免费播放| 国产精品羞羞答答xxdd| 日本欧美一区二区三区| 亚洲精品国产第一综合99久久| 久久久亚洲国产美女国产盗摄 | 秋霞av亚洲一区二区三| 亚洲女人****多毛耸耸8| 亚洲国产精品成人久久综合一区| 欧美一级夜夜爽| 欧美日韩一级二级三级| 色伊人久久综合中文字幕| 成人国产精品免费| 成人在线视频一区二区| 国模冰冰炮一区二区| 蜜桃在线一区二区三区| 日韩精品一区第一页| 亚洲成人综合在线| 一区二区免费在线| 一区二区三区中文字幕在线观看| 中文字幕乱码一区二区免费| 久久久久99精品一区| 精品福利一区二区三区| 欧美一级片在线观看| 日韩欧美高清一区| 欧美一二区视频| 日韩欧美国产综合在线一区二区三区| 欧美片网站yy| 欧美精品粉嫩高潮一区二区| 精品婷婷伊人一区三区三| 欧美在线三级电影| 欧美人与z0zoxxxx视频| 91精品久久久久久久久99蜜臂| 91麻豆精品国产自产在线 | 91热门视频在线观看| 成人动漫视频在线| 91视频一区二区三区| 91麻豆自制传媒国产之光| 色综合久久66| 欧美日韩亚洲综合一区二区三区| 欧美日韩中文字幕一区| 日韩一区二区精品葵司在线| 亚洲精品在线网站| 国产日韩综合av| 亚洲麻豆国产自偷在线| 亚洲国产精品一区二区www在线| 亚洲6080在线| 久草这里只有精品视频| 成人三级在线视频| 色哦色哦哦色天天综合| 欧美放荡的少妇| 久久久久久久久久久久久久久99 | 精品卡一卡二卡三卡四在线| 国产亚洲短视频| 1区2区3区欧美| 丝袜美腿亚洲综合| 国产黄色精品网站| 在线视频国产一区| 精品国产免费久久| 成人免费在线播放视频| 亚洲成人自拍一区| 国产在线日韩欧美| 色素色在线综合| 日韩欧美另类在线| 亚洲欧美综合另类在线卡通| 亚洲18色成人| 国产91露脸合集magnet| 欧美三级欧美一级| 日本一区二区三区四区| 午夜精品123| 成人久久视频在线观看| 欧美日韩国产免费| 欧美激情中文不卡| 日本不卡一区二区三区高清视频| 成人精品免费视频| 日韩欧美视频一区| 亚洲精品国产精华液| 国产在线一区观看| 欧美人牲a欧美精品| 国产精品福利一区| 久久成人麻豆午夜电影| 欧美在线|欧美| 国产女同性恋一区二区| 天天色天天爱天天射综合| 成人激情图片网| 日韩欧美国产1| 午夜精品视频一区| 一本色道亚洲精品aⅴ| 国产色综合一区| 日韩—二三区免费观看av| 色婷婷av一区二区三区大白胸 | 成+人+亚洲+综合天堂| 日韩视频中午一区| 亚洲一区二区成人在线观看| 成人黄色在线网站| 欧美精品一区二区不卡| 美女视频一区二区三区| 欧美视频中文一区二区三区在线观看| 国产精品久久免费看| 国产精品一二三四| 亚洲精品在线观看网站| 美国十次综合导航| 日韩西西人体444www| 五月婷婷色综合| 欧美日韩激情在线| 一区二区三区国产精品| 99国产精品久久久久| 亚洲少妇中出一区| 99精品一区二区三区| 亚洲欧洲av另类| 91麻豆免费看| 亚洲人成伊人成综合网小说| 色综合网色综合| 亚洲永久免费av| 欧美挠脚心视频网站| 免费在线一区观看| 精品国产乱码久久久久久浪潮 |