亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
亚洲免费资源在线播放| 久久草av在线| 日韩精品一级中文字幕精品视频免费观看 | 久久久影视传媒| 亚洲一区二区在线免费看| 国产一区二区三区四| 欧美久久一二区| 亚洲欧美色图小说| 国产精品自拍毛片| 欧美一级二级三级蜜桃| 亚洲激情第一区| 成人免费黄色大片| www欧美成人18+| 日韩国产高清影视| 欧美天堂亚洲电影院在线播放| 国产女主播视频一区二区| 麻豆传媒一区二区三区| 91精品视频网| 日韩精品亚洲一区| 欧美色视频一区| 亚洲国产日韩a在线播放| 麻豆一区二区三| 亚洲综合视频在线| 国产91综合一区在线观看| 91精品国产综合久久香蕉的特点| 一区二区三区在线视频免费观看| av在线播放不卡| 国产精品网曝门| 国产iv一区二区三区| 久久久久久久久久久99999| 麻豆精品在线观看| 日韩亚洲欧美一区二区三区| 免费不卡在线观看| 日韩一区二区在线观看视频| 日本不卡不码高清免费观看| 欧美一区在线视频| 久久成人综合网| 久久综合丝袜日本网| 懂色av一区二区在线播放| 欧美国产一区二区在线观看| 国产成人精品一区二| 欧美国产精品久久| 99re在线视频这里只有精品| 亚洲精品大片www| 欧美日韩www| 精品一区二区三区久久| 欧美国产精品一区二区| 99re8在线精品视频免费播放| 亚洲日本在线观看| 欧美精品黑人性xxxx| 极品美女销魂一区二区三区 | 欧美优质美女网站| 亚洲大尺度视频在线观看| 日韩精品一区二区三区蜜臀 | 美女精品自拍一二三四| 久久久无码精品亚洲日韩按摩| 成人97人人超碰人人99| 亚洲一区二区三区不卡国产欧美| 日韩视频免费观看高清完整版 | 91精品婷婷国产综合久久性色 | 欧美特级限制片免费在线观看| 亚洲成a人v欧美综合天堂下载| 日韩精品综合一本久道在线视频| 激情亚洲综合在线| 国产精品嫩草影院av蜜臀| 欧美怡红院视频| 国产精品系列在线播放| 国产精品福利影院| 在线91免费看| 成人高清av在线| 天天综合色天天综合| 亚洲国产电影在线观看| 欧美久久久影院| 高清久久久久久| 日韩国产欧美在线观看| 亚洲国产精品成人综合| 欧美丰满少妇xxxxx高潮对白| 国产乱码一区二区三区| 亚洲va国产va欧美va观看| 国产三级久久久| 欧美一级理论性理论a| 99视频精品全部免费在线| 久久精品噜噜噜成人88aⅴ| 自拍偷拍欧美精品| 26uuuu精品一区二区| 欧美优质美女网站| av中文字幕在线不卡| 狠狠色丁香婷婷综合久久片| 亚洲一区二区三区不卡国产欧美| 中文字幕av不卡| 精品剧情在线观看| 在线不卡一区二区| 在线观看不卡视频| 97se亚洲国产综合自在线观| 国产久卡久卡久卡久卡视频精品| 日韩在线卡一卡二| 亚洲国产精品久久久久婷婷884| 国产精品高潮呻吟久久| 国产欧美一区二区精品性色超碰 | 国产婷婷色一区二区三区 | 欧美日韩中文精品| 不卡影院免费观看| 国产精品综合在线视频| 看片的网站亚洲| 日韩在线一区二区| 午夜激情一区二区| 亚洲小说春色综合另类电影| 亚洲精品视频在线| 亚洲三级免费观看| 亚洲人成影院在线观看| 亚洲人成伊人成综合网小说| 成人免费一区二区三区视频| 国产精品伦一区| 中文字幕不卡的av| 国产免费成人在线视频| 国产日韩欧美亚洲| 国产精品午夜免费| 最新国产精品久久精品| 亚洲丝袜自拍清纯另类| 亚洲素人一区二区| 一区二区日韩电影| 视频一区欧美日韩| 美日韩一区二区| 国产在线不卡一区| 成人动漫一区二区| 91福利在线免费观看| 欧美理论片在线| 日韩欧美视频一区| 国产三级一区二区三区| 国产精品私人影院| 亚洲精品写真福利| 日本午夜精品视频在线观看 | 日本亚洲电影天堂| 激情文学综合丁香| 欧美视频你懂的| 91超碰这里只有精品国产| 日韩三级电影网址| 中文字幕欧美日本乱码一线二线| 自拍偷拍欧美激情| 奇米影视在线99精品| 国产精品乡下勾搭老头1| 91免费在线播放| 欧美日韩亚洲国产综合| 欧美videofree性高清杂交| 国产清纯美女被跳蛋高潮一区二区久久w| 久久精子c满五个校花| 亚洲欧美区自拍先锋| 日本伊人色综合网| eeuss鲁片一区二区三区| 欧美乱妇23p| 国产精品久久久久久久久免费桃花| 亚洲一区免费在线观看| 国产精品一线二线三线精华| 91色综合久久久久婷婷| 91精品一区二区三区在线观看| 国产亚洲成aⅴ人片在线观看| 亚洲综合激情另类小说区| 美女高潮久久久| 色综合久久九月婷婷色综合| 精品国产一区二区三区忘忧草 | 图片区小说区区亚洲影院| 国产精品夜夜爽| 欧美日韩一区不卡| 亚洲欧美一区二区视频| 久草在线在线精品观看| 日本道免费精品一区二区三区| 欧美xxxxxxxxx| 亚洲 欧美综合在线网络| 国产成人午夜视频| 日韩一区二区中文字幕| 亚洲欧美欧美一区二区三区| 国产精品综合一区二区三区| 欧美一区二区三区在| 一区二区三区中文字幕精品精品| 韩国视频一区二区| 日韩一区二区三区在线观看| 一区二区三区高清| 成人国产精品免费| 国产欧美日产一区| 国产一区二三区| 精品国精品自拍自在线| 日韩精品1区2区3区| 欧美视频三区在线播放| 一区二区三区四区在线免费观看| 成人在线一区二区三区| 欧美精品一区二区在线观看| 免费成人av在线| 欧美成人在线直播| 久久99精品一区二区三区三区| 欧美精品一卡二卡| 日韩av电影一区| 欧美一区二区观看视频| 日日夜夜一区二区| 91精品免费在线观看| 免费在线成人网| 欧美一级日韩一级| 久久99蜜桃精品| 精品国产髙清在线看国产毛片| 免费精品视频最新在线| 精品国产第一区二区三区观看体验 |