You can show slider. It support touch device.

demo

demo1(enable/disable)

enable
disable

demo2(virtical)

demo3(step)

synopsis

html


<div id="demo1"></div>

css


.box {
    background-color: #ccc;
    position: relative;
    padding: 50px;
    border: 1px solid #000;
    margin: 10px;
}

.handle {
    position: absolute;
    border: 1px solid #666;
    background-color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 5px;
}

.track {
    position: absolute;
    background-color: #888;
    width: 10px;
    height: 10px;
    border-radius: 4px;
}

javascript


      $("#demo1").simpleslider({box_class: 'box',
                                track_class: 'track',
                                handle_class: 'handle',
                                size: [150, 50]
                                });

options

minmin value
maxmax value
stepvalue change step
valueinitial value
orientationtrack direction. set 'horizontal' or 'vertical'.
box_classclass for box
track_classclass for track
handle_classclass for handle
box_disable_classclass for box when disable
track_disable_classclass for track when disable
handle_disable_classclass for handle when disable
changecallback function when value changed

methods

get_valget value
set_valset value
enablecan use slider
disablecan not use slider

version 0.5 (2013/07/08)

version 0.4 (2013/07/05)

version 0.3 (2013/06/18)

version 0.2 (2013/06/11)

version 0.1 (2013/06/09)