jQuery响应式图片跑马灯 无缝滚动
XML/HTML Code
- <ul id="flexiselDemo3">
- <li><img src="images/1.jpg" alt="" /></li>
- <li><img src="images/2.jpg" alt="" /></li>
- <li><img src="images/3.jpg" alt="" /></li>
- <li><img src="images/4.jpg" alt="" /></li>
- </ul>
- <script type="text/javascript">
- $(window).load(function() {
- $("#flexiselDemo1").flexisel();
- $("#flexiselDemo2").flexisel({
- enableResponsiveBreakpoints: true,
- responsiveBreakpoints: {
- portrait: {
- changePoint:480,
- visibleItems: 1
- },
- landscape: {
- changePoint:640,
- visibleItems: 2
- },
- tablet: {
- changePoint:768,
- visibleItems: 3
- }
- }
- });
- $("#flexiselDemo3").flexisel({
- visibleItems: 5,
- animationSpeed: 1000,
- autoPlay: true,
- autoPlaySpeed: 3000,
- pauseOnHover: true,
- enableResponsiveBreakpoints: true,
- responsiveBreakpoints: {
- portrait: {
- changePoint:480,
- visibleItems: 1
- },
- landscape: {
- changePoint:640,
- visibleItems: 2
- },
- tablet: {
- changePoint:768,
- visibleItems: 3
- }
- }
- });
- });
- </script>
原文地址:http://www.freejs.net/article_jquerytupiantexiao_649.html