Download
- Overview
- Documents
- Demos
User Rating: 4.6/5 ( 1 votes)
Your Rating:
Simple Carousel Plugin is a very practical Carousel plug-ins written in jQuery. Used to show a set (list) content of transverse or longitudinal rolling. Simple Carousel is complete function, browser compatibility, scalability. It can be used for any similar to the Carousel structure of the HTML code.
sex shop sex shop sex shop sex shop sex shop seks shop spanish fly psikolog sohbet numara sohbet hatti
Source: yaohaixiao.com
1. INCLUDE CSS AND JS FILES
<link href="css/horizontal-carousel.css" rel="stylesheet" type="text/css" media="screen" /> <script type="text/javascript" src="../libs/jquery/jquery.js"></script> <script type="text/javascript" src="../src/jquery.SimpleCarousel.js"></script>
2. HTML
<div id="carousel" class="carousel"> <a title="Previous Page" id="carousel-prev-btn" class="carousel-prev-btn" href="#prev">‹</a> <div id="carousel-container" class="carousel-container"> <ul id="carousel-list" class="carousel-list"> <li> <p><a href="http://www.yaohaixiao.com/"><img width="230" height="144" alt="SimpleCarousel (1)" src="images/s-01.jpg"></a></p> <h3><a target="_blank" href="http://www.yaohaixiao.com/">SimpleCarousel (1)</a></h3> </li> <li> <p><a href="http://www.yaohaixiao.com/"><img width="230" height="144" alt="SimpleCarousel (2)" src="images/s-02.jpg"></a></p> <h3><a target="_blank" href="http://www.yaohaixiao.com/">SimpleCarousel (2)</a></h3> </li> <li> <p><a href="http://www.yaohaixiao.com/"><img width="230" height="144" alt="SimpleCarousel (3)" src="images/s-03.jpg"></a></p> <h3><a target="_blank" href="http://www.yaohaixiao.com/">SimpleCarousel (3)</a></h3> </li> <li> <p><a href="http://www.yaohaixiao.com/"><img width="230" height="144" alt="SimpleCarousel (4)" src="images/s-04.jpg"></a></p> <h3><a target="_blank" href="http://www.yaohaixiao.com/">SimpleCarousel (4)</a></h3> </li> <li> <p><a href="http://www.yaohaixiao.com/"><img width="230" height="144" alt="SimpleCarousel (5)" src="images/s-05.jpg"></a></p> <h3><a target="_blank" href="http://www.yaohaixiao.com/">SimpleCarousel (5)</a></h3> </li> <li> <p><a href="http://www.yaohaixiao.com/"><img width="230" height="144" alt="SimpleCarousel (6)" src="images/s-06.jpg"></a></p> <h3><a target="_blank" href="http://www.yaohaixiao.com/">SimpleCarousel (6)</a></h3> </li> <li> <p><a href="http://www.yaohaixiao.com/"><img width="230" height="144" alt="SimpleCarousel (7)" src="images/s-07.jpg"></a></p> <h3><a target="_blank" href="http://www.yaohaixiao.com/">SimpleCarousel (7)</a></h3> </li> <li> <p><a href="http://www.yaohaixiao.com/"><img width="230" height="144" alt="SimpleCarousel (8)" src="images/s-08.jpg"></a></p> <h3><a target="_blank" href="http://www.yaohaixiao.com/">SimpleCarousel (8)</a></h3> </li> <li> <p><a href="http://www.yaohaixiao.com/"><img width="230" height="144" alt="SimpleCarousel (9)" src="images/s-09.jpg"></a></p> <h3><a target="_blank" href="http://www.yaohaixiao.com/">SimpleCarousel (9)</a></h3> </li> <li> <p><a href="http://www.yaohaixiao.com/"><img width="230" height="144" alt="SimpleCarousel (10)" src="images/s-10.jpg"></a></p> <h3><a target="_blank" href="http://www.yaohaixiao.com/">SimpleCarousel (10)</a></h3> </li> </ul> </div> <a title="Next Page" id="carousel-next-btn" class="carousel-next-btn" href="#next">›</a> </div>
3. JAVASCRIPT
function($){ $("#carousel").simpleCarousel({ // V - Vertical(Default) // H - Horizontal playDirection: 'H' }); })(jQuery);
4. OPTIONS
$("#carousel-album").simpleCarousel({ // 滚动的区域 ID 选择器或者 HTMLElement DOM 节点(可选) // 默认值:#carousel-container container: "#carousel-container", // carousel 列表 ID 选择器或者 HTMLElement DOM 节点(可选) // 默认值:#carousel-list carousel: "#carousel-list", // 单个item 选择器的名称(可选) // 默认值:li item: "li", // 向上翻页按钮选择器或者 HTMLElement DOM 节点(可选) // 默认值:#carousel-prev-btn prevBtn: "#carousel-prev-btn", // 向下翻页按钮选择器或者 HTMLElement DOM 节点(可选) // 默认值:#carousel-next-btn nextBtn: "#carousel-next-btn", // 滚动方向(可选) // 默认值:H - 横向滚动 // V - 纵向滚动 playDirection: "H", // 是否自动播放(可选) // 默认值:false - 不自动播放 // true - 自动播放 autoPlay: true, // (自动播放时)切换完一页后,切换到下一页的时间间隔(可选) // 默认值:3000 - 等待3秒,然后切换 pageSwitchDelay: 3000, // 动画滚动一屏所用的时间(可选) // 默认值:500 - 切换一屏动画时间为半秒 animateDuration: 500, // 滚动时的 easing 动画特效名称(可选) // 默认值:swing // 其他可选值:linear,easeInQuad,easeOutQuad,easeInOutQuad,easeInCubic... // @see http://gsgd.co.uk/sandbox/jquery/easing/ // @see http://easings.net/zh-cn/ easing: "swing", // 自动播放时,滚动翻页的方向(可选) // 默认值:forward - 向下翻页 // back - 向回翻页 pageDirection: "back", // 是否无缝循环滚动,或者来回滚动(可选) // 默认值:false - 来回滚动 // true - 无缝循环滚动 cyclePlay: false, // (来回滚动时)到第一页或者最后一页翻页按钮是否(可选) // 默认值:false - 按钮一直可用,页面循环来回滚动; // true - 在第一页,向上翻页按钮不可用; // 在最后一页,向下翻页按钮不可用; buttonAvailable: false, // 默认显示第几页(可选) // 默认值:0 defaultPage: 0, // 切换一次的 Item 数量(可选) // 默认值:0 - 自动计算,根据展示区域高度或宽度来计算每屏可显示的 Item 数量 itemsPerStep: 0, // 页面开始切换时,预先要执行的事情(可选) // 默认值:null(函数:function) beforeSwitch: function(){ alert("Carousel 要开始滚动了哦!"); }, // 切换玩一页后,要执行的事情(可选) // 默认值:null(函数:function) afterSwitched: function(){ alert("Carousel 滚动已经滚动完一页了哦!"); }, // 是否自动生成分页导航 // 默认值:false - 不生成分页导航 // true - 自动生成分页导航 paginated: false, // ajax 动态加载数据 ajax: { // ajax.url - 请求路径(必选) url: TXT.EMPTY, // ajax.itemInnerHTML - item(li)中显示内容(innerHTML)的模板(可选) // @see TEMPLATE.ITEM_INNER_HTML itemInnerHTML: TEMPLATE.ITEM_INNER_HTML, // $.ajax() 方法的标准参数 beforeSend,发送请求前执行的函数(可选) // @see http://api.jquery.com/jQuery.ajax/ beforeSend: null, // $.ajax() 方法的标准参数 complete,请求执行成功后要执行的函数(可选) // @see http://api.jquery.com/jQuery.ajax/ complete: null, // $.ajax() 方法的标准参数 error,请求发生错误要执行的函数(可选) // @see http://api.jquery.com/jQuery.ajax/ error: null } });
Carousel
- Horizontal Switch (Default)
- Horizontal Switch, Cycle Play
- Horizontal Switch, Buttons Disabled
- Horizontal Switch, Switch to Default Page
- Horizontal Switch, Customized Easing Effect
- Horizontal Switch, Auto Play
- Horizontal Switch, Customized Items Per Step
- Horizontal Switch, Customized Animate Duration
- Horizontal Switch, Customized Page Switch Delay
- Horizontal Switch, Has Pagination
- Horizontal Switch, Full Functions
- Horizontal Switch, Reload Program