Script.aculo.us
new Draggable('drag',{revert: true});Droppables.add('drop', {accept: 'dragme',
hoverclass: 'highlight'});
Sortable.create("firstlist",
{dropOnEmpty:true,
containment:["firstlist","secondlist"],
constraint:false});
Sortable.create("secondlist",
{dropOnEmpty:true,
handle:'handle',
containment:["firstlist","secondlist"],
constraint:false});
<div id="track1" style="width: 400px; background-color: rgb(170, 170, 170); height: 5px;"> <div id="handle1" class="selected" style="width: 10px; height: 10px; background-color: rgb(255, 0, 0); cursor: move; left: 0px; position: relative;"/> </div> <div id="debug1" style="padding-top: 5px;"></div>
new Control.Slider('handle1','track1',{
onSlide:function(v){$('debug1').innerHTML='slide: '+v},
onChange:function(v){$('debug1').innerHTML='changed! '+v}});
7 of 9