Sudo Slider jQuery Plugin - Methods demo 1

Methods in docs
  • image description
  • image description
  • image description
  • image description
  • image description
Get speed
Set speed

Usage

Include the javascripts

<script type="Text/Javascript" src="http://code.jquery.com/jquery-1.11.2.min.js"></script>
<script type="text/javascript" src="../js/jquery.sudoSlider.min.js"></script>

The Javascript to start it.

<script type="text/javascript" >
   $(document).ready(function(){	
      var sudoSlider = $("#slider").sudoSlider({ 
         speed:500
      });
      $('#target').click(function() {
         alert('Speed:' + sudoSlider.getOption('speed'));
      });
      $('#target2').click(function() {
         var value = prompt("Set the speed to (only number): ", sudoSlider.getOption('speed'));
         sudoSlider.setOption('speed', value)
      });
   });
</script>

The HTML

<div id="slider" >
    <ul>
        <li><img src="../images/01.jpg" alt="image description"/></li>
        <li><img src="../images/02.jpg" alt="image description"/></li>
        <li><img src="../images/03.jpg" alt="image description"/></li>
        <li><img src="../images/04.jpg" alt="image description"/></li>
        <li><img src="../images/05.jpg" alt="image description"/></li>	
    </ul>
</div>
<a id="target">Get speed</a><br />
<a id="target2">Set speed</a>