DragLib

Slider Module

Tutorial

Download the Package First

If you have not already done so, download the package and save a duplicate copy.

How it Works

Slider is very easy to use. Just call the method Slider.getInstance, like this:

    Slider.getInstance(oElement, iDirection);
		

Where oElement is a relatively or absolutely positioned element that represents the slider handle and iDirection is either Slider.direction.HORZ or Slider.direction.VERT.

A Slider's handle is a DragObj

A slider's handle is a drag object. Any methods of of a DragObj instance can be called on a slider's handle, though this should seldom be necessary.

About the Sourcecode

In order to minimize file size, whitespace has been removed from sliderC.js.

Human readable source-code is available in the zip file (see drag.js).

Next in this tutorial:

 

*AnimTree
*Tabs
*GlideMenus
*DragLib