/*
**** The HTML and CSS Code.
** The Parent DIV Element
The parent DIV element must be defined in the HTML code and assigned a unique ID name.
This DIV must have a CSS style position of 'relative' or 'absolute', overflow of 'hidden'
and width and height defined by CSS class rule or inline style.
** The 'Belt' DIV Element
The 'Belt' DIV Element must be the first nested DIV element of the parent DIV element must be defined in the HTML code and assigned a unique ID name.
This DIV must have a CSS style position of 'absolute' defined by CSS class rule or inline style.
** The Elements to Display
The Elements to display must be nested in the 'Belt' DIV Element.
** The Scoll Bar DIV Element
The Scoll Bar DIV element must be defined in the HTML code and assigned a unique ID name.
This DIV must have a CSS style position of 'relative' or 'absolute' and width and height defined by
CSS class rule or inline style.
** The Scoll Bar Slider DIV Element.
The 'Slider' DIV Element must be the first nested DIV element of the Scoll Bar Slider DIV Element and must be defined in the HTML code
This DIV must have a CSS style position of 'absolute' and width and height defined by CSS class rule or inline style.
**** Initialising the Script
Each instance of the script must be initialised after the page has loaded by calling function 'zxcMouseBeltSlider.init'
passing script options as an object.
e.g.
zxcMouseBeltSlider.init({
ParentID:'tst', // the unique ID name of the belt parent DIV. (string)
MoveEdge:100, //(optional) the edge distance to scroll the belt. (number, default = parent size/4)
MaxSpeed:5, //(optional) the maximum scroll speed. (number, default = 5)
MinSpeed:.5, //(optional) the mouseout scroll speed. (number, default = 0)
Wrap:true, //(optional) true = the belt will wrap from first to last. (boolean, default = false = the belt will not wrap)
ScrollBarID:'scrollbar', //(optional) the unique ID name of the scroll bar. (string, default = no scroll bar)
OnScroll:function(o,p,m){ //(optional) a function to call when the belt moves. (function, default = no function call)
// o = the intance object
// p = the belt position
// m = the minimum belt position
}
});
*/
Bookmarks