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

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

?? carousel-beta-debug.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) {        YAHOO.log("Component creation", WidgetName);        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,

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲精品美国一| 97精品电影院| 成人国产精品免费观看| 欧美精品777| 中文无字幕一区二区三区| 亚洲国产综合91精品麻豆| 国产高清久久久| 日韩亚洲欧美高清| 一区二区三区不卡视频| 白白色 亚洲乱淫| 欧美精品一区二| 丝袜美腿亚洲色图| 日本久久电影网| 国产精品电影一区二区三区| 韩日精品视频一区| 日韩欧美一二三区| 亚洲成av人片一区二区梦乃| 91久久精品网| 最新中文字幕一区二区三区| 国产成人欧美日韩在线电影| 日韩一区二区精品葵司在线 | 国产黄色精品网站| 欧美老女人在线| 午夜精品视频一区| 91激情五月电影| 亚洲精品美国一| 色婷婷综合久久久中文一区二区| 国产日韩欧美综合一区| 久久99热这里只有精品| 日韩欧美黄色影院| 九九视频精品免费| 欧美第一区第二区| 免费高清成人在线| 精品国产一区二区三区久久影院| 亚洲成人综合视频| 欧美乱熟臀69xxxxxx| 亚洲在线视频免费观看| 欧美午夜一区二区三区免费大片| 伊人一区二区三区| 欧美三级在线看| 日韩国产欧美在线播放| 欧美一级片在线| 精品午夜一区二区三区在线观看| 久久老女人爱爱| 成人av网址在线| 一区二区视频免费在线观看| 欧美丝袜自拍制服另类| 天天综合色天天综合色h| 777色狠狠一区二区三区| 免费观看日韩av| 国产欧美综合色| 色综合久久久久综合体桃花网| 亚洲精品成人在线| 欧美精品久久一区二区三区 | 国产精品国产馆在线真实露脸| 成人丝袜视频网| 中文字幕第一页久久| 色94色欧美sute亚洲线路二| 日韩福利视频网| 国产亚洲欧美激情| 91香蕉国产在线观看软件| 一区二区三区四区激情| 欧美疯狂性受xxxxx喷水图片| 极品美女销魂一区二区三区| 欧美激情在线一区二区| 色综合天天综合色综合av | 亚洲综合色区另类av| 67194成人在线观看| 国产成人在线电影| 亚洲午夜免费电影| 精品嫩草影院久久| 99久久精品国产一区二区三区| 婷婷成人激情在线网| 中文字幕精品一区二区精品绿巨人| 欧美性三三影院| 国产麻豆91精品| 亚洲与欧洲av电影| 国产亚洲精品久| 欧美日韩一本到| 成人a级免费电影| 日韩不卡手机在线v区| 国产精品污网站| 欧美α欧美αv大片| 日本韩国欧美国产| 国产成人综合在线播放| 日本在线不卡视频| 亚洲另类春色国产| 国产亚洲1区2区3区| 日韩一区二区三| 欧美三级韩国三级日本三斤| 风流少妇一区二区| 久久99精品久久久久久国产越南 | 99精品视频在线免费观看| 免费精品视频在线| 亚洲成a人v欧美综合天堂| 国产精品国产成人国产三级| 久久综合久久综合九色| 3atv一区二区三区| 在线观看日韩一区| aaa欧美日韩| 风流少妇一区二区| 国产精品正在播放| 免费成人美女在线观看.| 亚洲福利一区二区| 亚洲精品国产一区二区三区四区在线 | 欧美高清性hdvideosex| 色狠狠桃花综合| 91美女视频网站| 99riav久久精品riav| 成人一区二区三区| 成人免费视频一区| 北条麻妃国产九九精品视频| 国产成人免费视频网站高清观看视频 | 在线播放91灌醉迷j高跟美女| 欧美性色欧美a在线播放| 在线观看欧美黄色| 欧美日韩精品电影| 欧美日本不卡视频| 884aa四虎影成人精品一区| 精品视频免费看| 欧美精品v日韩精品v韩国精品v| 欧美日韩中文字幕一区二区| 欧美天堂一区二区三区| 欧美艳星brazzers| 91精品国产黑色紧身裤美女| 欧美一区二区二区| 久久一区二区三区四区| 欧美激情一区二区在线| 国产精品免费看片| 亚洲一区在线观看视频| 丝袜亚洲另类丝袜在线| 久久精品国产一区二区三| 国产一区二区三区高清播放| 国产美女av一区二区三区| 高清日韩电视剧大全免费| 色一情一伦一子一伦一区| 欧美精品第一页| 亚洲精品一区二区三区影院| 亚洲影院在线观看| 日韩专区在线视频| 国产在线国偷精品免费看| 成人午夜视频在线| 欧美丝袜丝交足nylons图片| 日韩视频在线永久播放| 国产日韩av一区二区| 亚洲激情av在线| 免费精品99久久国产综合精品| 国产精品白丝jk白祙喷水网站 | 青椒成人免费视频| 国产一区不卡视频| 日韩一区二区麻豆国产| 国产精品乱码人人做人人爱 | 日韩精品成人一区二区三区| 国产一区二区0| 欧美在线啊v一区| 日韩午夜精品电影| 国产精品国产三级国产普通话蜜臀 | 26uuu亚洲综合色| 亚洲免费观看高清完整| 青青草视频一区| 99精品视频在线观看免费| 91精品国产一区二区三区 | 亚洲国产精品久久久久秋霞影院 | 成人av动漫网站| 欧美精品aⅴ在线视频| 国产精品麻豆视频| 奇米精品一区二区三区四区 | 7777精品伊人久久久大香线蕉的 | 26uuu另类欧美| 亚洲一区二区三区精品在线| 国产精品中文字幕日韩精品 | 91精品欧美综合在线观看最新| 国产欧美精品在线观看| 免费观看在线色综合| 91色九色蝌蚪| 国产人久久人人人人爽| 日韩电影一区二区三区四区| av电影天堂一区二区在线| 一级精品视频在线观看宜春院| 男女性色大片免费观看一区二区| www.综合网.com| 国产校园另类小说区| 九色porny丨国产精品| 在线电影一区二区三区| 一区二区三区色| 色综合久久久久综合体| 国产精品成人一区二区三区夜夜夜| 美女视频黄a大片欧美| 欧美日韩精品专区| 亚洲综合激情另类小说区| 99国产精品久久久久| 日本一区二区免费在线| 国产精品一卡二卡| 日韩美女主播在线视频一区二区三区| 一区二区高清视频在线观看| 色偷偷成人一区二区三区91| 亚洲精品大片www| 91久久精品一区二区二区| 一区二区三区在线视频免费| 色婷婷综合五月|