|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--DHTMLSuite.slider
Purpose of class: Display a DHTML slider on a web page. This slider could either be displayed horizontally or vertically(demo 1 and demo 2).
Defined in dhtml-suite-for-applications.js
Author: Alf Magne Kalleland(www.dhtmlgoodies.com)
Version: 1.0
Field Summary | |
Object |
directionOfPointer
|
Object |
height
|
Object |
initialValue
|
Object |
layoutCss
|
Object |
numberOfSteps
|
Object |
objectIndex
|
Object |
slideInProcessTimer
|
Object |
sliderDirection
|
Object |
sliderMaxValue
|
Object |
sliderMinValue
|
Object |
sliderName
|
Object |
sliderValueReversed
|
Object |
sliderWidth
|
Object |
stepLinesVisibility
|
Object |
targetObj
|
Object |
width
|
Constructor Summary | |
DHTMLSuite.slider
()
|
Method Summary | |
void
|
init()
Initializes the script, i.e. |
void
|
setInitialValue(newInitialValue)
Specify a new CSS file for the slider(i.e. |
void
|
setLayoutCss(nameOfNewCssFile)
Specify a new CSS file for the slider(i.e. |
void
|
setNumberOfSliderSteps(numberOfSteps)
Divide slider into steps, i.e. |
void
|
setOnChangeEvent(nameOfFunction)
Specify which function to call when the slider has been moved. |
void
|
setSliderDirection(newDirection)
Specify where to insert the slider |
void
|
setSliderHeight(newHeight)
Specify height of slider - if now width is specified, the script will try to measure the height of width of the element where it is inserted. |
void
|
setSliderMaxValue(newMaxValue)
Set maximum value of slider |
void
|
setSliderMinValue(newMinValue)
Set minimum value of slider |
void
|
setSliderName(nameOfSlider)
Specify name of slider. |
void
|
setSliderPointerDirection(directionOfPointer)
In which direction should the slider handle point. |
void
|
setSliderReversed()
Reverse slider, i.e. |
void
|
setSliderTarget(targetRef)
Specify where to insert the slider |
void
|
setSliderValue(newValue)
Set new position of slider manually |
void
|
setSliderWidth(newWidth)
Specify width of slider - if now width is specified, the script will try to measure the height of width of the element where it is inserted. |
void
|
setStepLinesVisible(visible)
Divide slider into steps. |
Field Detail |
Object directionOfPointer
Object height
Object initialValue
Object layoutCss
Object numberOfSteps
Object objectIndex
Object slideInProcessTimer
Object sliderDirection
Object sliderMaxValue
Object sliderMinValue
Object sliderName
Object sliderValueReversed
Object sliderWidth
Object stepLinesVisibility
Object targetObj
Object width
Constructor Detail |
DHTMLSuite.slider()
Method Detail |
void init()
void setInitialValue(newInitialValue)
String
- nameOfNewCssFile - Name of new css file.
void setLayoutCss(nameOfNewCssFile)
String
- nameOfNewCssFile - Name of new css file.
void setNumberOfSliderSteps(numberOfSteps)
Int
- numberOfSteps - Number of steps
void setOnChangeEvent(nameOfFunction)
String
- nameOfFunction - Name of function to call.
void setSliderDirection(newDirection)
String
- newDirection - New slider direction. Possible DHTMLSuite.slider.prototype.valuse = "hor";or "ver"
void setSliderHeight(newHeight)
String
- newHeight - Slider width(numeric or percentage) DHTMLSuite.slider.prototype.example = 100;or 90%
void setSliderMaxValue(newMaxValue)
int
- newMaxValue - New slider max value
void setSliderMinValue(newMinValue)
int
- newMinValue - New slider min value
void setSliderName(nameOfSlider)
String
- nameOfSlider - Name of function to call.
void setSliderPointerDirection(directionOfPointer)
String
- directionOfPointer - In which direction should the slider handle point(possible DHTMLSuite.slider.prototype.values = 'up';'down','left','right'
void setSliderReversed()
void setSliderTarget(targetRef)
Object
- targetRef - Id of element where the slider will be created inside(There shouldn't be any content inside this div)
void setSliderValue(newValue)
Int
- newValue - New value of slider
void setSliderWidth(newWidth)
String
- newWidth - Slider width(numeric or percentage) DHTMLSuite.slider.prototype.example = 100;or 90%
void setStepLinesVisible(visible)
Boolean
- visible - When using static steps, make lines indicating steps visible or hidden(true = visible(default), false = hidden)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |