Interface elements for jQuery - Documentation - Autoscroller

Autoscroller

Utility object that helps to make custom autoscrollers.

example

Autoscroller.start

Starts the autoscrolling process.

Options:

referrenceElement DOMElement mandatory the element used as reference
elementsToScroll Array mandatory collection of elements to scroll
step Integer optional pixels to scroll on each step
interval Integer optional miliseconds between each step

Autoscroller.stop

This is called to stop autoscrolling

Code sample:


$('div.groupWrapper').Sortable(
{
accept: 'groupItem',
helperclass: 'sortHelper',
activeclass : 	'sortableactive',
hoverclass : 	'sortablehover',
handle: 'div.itemHeader',
tolerance: 'pointer',
onChange : function(ser)
{
},
onStart : function()
{
	$.iAutoscroller.start(this, document.getElementsByTagName('body'));
},
onStop : function()
{
	$.iAutoscroller.stop();
}
}
);
 

Download now

Interface 1.2 146kb (source files, compressed files)
jQuery 1.1.2 19 kb

Linux tutorials · Dedicated servers