Code Monkey home page Code Monkey logo

kslider's Introduction

Kslider

A jQuery slider plugin. See live demo at http://www.xujiantao.com/jquery_plugins/kslider/examples/basic.html

Browser Support

IE 9+, Chrome, Firefox, Safari, Opera (including Mobile devices).

Usage

Include the required files.

<link type="text/css" rel="stylesheet" href="./../source/css/jquery.Kslider.css" />

<script type="text/javascript" src="./../source/js/jquery-1.11.3.min.js"></script>
<script type="text/javascript" src="./../source/js/jquery.Kslider-1.2.js"></script>



The HTML :

	<div id="demo" class="slider">
		<ul>				
			<li><a href=""><img src="./../source/images/01.jpg" /></a></li>
			<li><a href=""><img src="./../source/images/02.jpg" /></a></li>
			<li><a href=""><img src="./../source/images/03.jpg" /></a></li>
			<li><a href=""><img src="./../source/images/04.jpg" /></a></li>
		</ul>
		
		
		<div class="controls">
			<span class="sliderBtn prevBtn"></span>
			<span class="sliderBtn nextBtn"></span>
			<div class="paginator"></div>
		</div>
	</div>



Hook up the jQuery.

$(function(){
  $("#demo").Kslider();
});



Initialization options

autoPlay        :        0
delays          :        4000
widthVal        :        800
heightVal       :        300
effect          :	     'horizontal'  // horizontal、vertical、fade、none



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.