Coder Social home page Coder Social logo

imagecarousel's Introduction

imageCarousel by FarewellXzz

jQuery plugin to play images

quik start

    <link rel="stylesheet" type="text/css" href="imageCarousel.css" />
    <script type="text/javascript" src="jquery-1.11.3.min.js"></script>
    <script type="text/javascript" src="imageCarousel.js"></script>

    <div id="imageBox" style="height:300px;width:350px;"></div>
    <script type="text/javascript"> 
    var images = [{title:"Tulips",path:'images/Tulips.jpg'},{title:"Jellyfish",path:'images/Jellyfish.jpg'}];
     $("#imageBox").imageCarousel(images,{
	 autoSlide:true,
	 alwaysShowTitle:true,
	 clickImage:function(e,index){
        },
     });    
  </script> 

Additional options

//滑动速度 slide speed
speed:300, 

//是否主动滑动 slide automatically
autoSlide:true,    

//主动滑动时图片停留时间 the time to hold image between two slidings
holdTime:4000,      

//是否一直显示图片标题 
alwaysShowTitle:true,

//字体颜色 font color
color:"#000",	

//点击图片时回调函数,参数:element:图片元素,index:图片在图片数组中的序号
//the callback while click image
clickImage:function(element,index){}, 

Licence

MIT Licence 

imagecarousel's People

Contributors

farewellxzz avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.