Object Oriented Encapsulation of setTimeout
new Timer([nPauseTime])
Name | Type | Descripton |
nPauseTime | Number | Optional.
The time (in milliseconds) before the timer should be triggered once started.
The default value is 1000 .
|
Name | Description |
None. |
Name | Type | Descripton |
None. |
Name | Description | ||||||
getPauseTimeSyntax
ArgumentsNo Arguments. Return Type
| Returns the pause time (in milliseconds) used to wait once started before triggering the event | ||||||
isStartedSyntax
ArgumentsNo Arguments. Return Type
| Returns whether the timer is started | ||||||
setPauseTimeSyntax
Arguments
Return Type
| Sets the time (in milliseconds) to pause before triggering the event | ||||||
startSyntax
ArgumentsNo Arguments. Return Type
| Starts the timer | ||||||
stopSyntax
ArgumentsNo Arguments. Return Type
| Stops the timer if previously started |
Name | Type | Descripton |
None. |
Name | Descripton |
ontimer | Fires nPauseTime milliseconds after started |
None.
Used to model the data used when working with sliders, scrollbars and progress bars. Based on the ideas of the javax.swing.BoundedRangeModel interface defined by Sun for Java (http://java.sun.com/products/jfc/swingdoc-api-1.0.3/com/sun/java/swing/BoundedRangeModel.html).
new Range()
Name | Type | Descripton |
No parameters. |
Name | Description |
None. |
Name | Type | Descripton |
None. |
Name | Description | ||||||
getExtentSyntax
Arguments
Return Type
| Returns the extent of the range | ||||||
getMaximumSyntax
Arguments
Return Type
| Returns the maximum allowed value | ||||||
getMinimumSyntax
Arguments
Return Type
| Returns the minimum value | ||||||
getValueSyntax
Arguments
Return Type
| Returns the current value of the range | ||||||
setExtentSyntax
Arguments
Return Type
| Sets the extent of the range | ||||||
setMaximumSyntax
Arguments
Return Type
| Sets the maximum allowed value | ||||||
setMinimumSyntax
Arguments
Return Type
| Sets the minimum allowed value | ||||||
setValueSyntax
Arguments
Return Type
| Sets the value for the range |
Name | Type | Descripton |
None. |
Name | Descripton |
ontimer | Fires on the object nPauseTime milliseconds after started |
None.
A slider control that allows the user to drag a handle to change the value that is limited by a maximum value and a minimum value.
new Slider(oElement, oInput [, sOrientation])
Name | Type | Descripton |
oElement | HTMLElement | The element acting as a slider |
oInput | HTMLInputElement | The input element used for backward compatibility and posting |
sOrientation | String | Optional.
The orientation of the slider. Valid values are "horizontal" and "vertical"
The default value is horizontal .
|
Name | Description |
None. |
Name | Type | Descripton |
isSupported | Boolean | Read only. This value is true if the browser supports dynamic sliders |
Name | Description | ||||||
getBlockIncrementSyntax
Arguments
Return Type
| Returns the amount used for large increments | ||||||
getMaximumSyntax
Arguments
Return Type
| Returns the maximum value | ||||||
getMinimumSyntax
Arguments
Return Type
| Returns the minimum value | ||||||
getOrientationSyntax
Arguments
Return Type
| Returns the orientation of the slider. Valid values are "horizontal" and "vertical". | ||||||
getUnitIncrementSyntax
Arguments
Return Type
| Returns the amount used to do small increments | ||||||
getValueSyntax
Arguments
Return Type
| Returns the value of the slider | ||||||
ontimerSyntax
Arguments
Return Type
| Called when the timer used when holding down the mouse button is fired | ||||||
recalculateSyntax
Arguments
Return Type
| Recalculates the position and size of the sub elements to make ensure the layout is correct. Use this message after the slider has been resized. | ||||||
setBlockIncrementSyntax
Arguments
Return Type
| Sets the amounf to increment the value for large increments. This value is used when using the page up and page down keys to change the value as well as when holding down the mouse on the slider (but not dragging the handle). | ||||||
setMaximumSyntax
Arguments
Return Type
| Sets the maximum allowed value for the slider | ||||||
setMinimumSyntax
Arguments
Return Type
| Sets the minimum allowed value for the slider | ||||||
setOrientationSyntax
Arguments
Return Type
| Sets the orientation of the slider. Valid values are "horizontal" and "vertical". | ||||||
setUnitIncrementSyntax
Arguments
Return Type
| Sets the amount to increment the value for small increments. This value is used when using the arrow keys to change the value | ||||||
setValueSyntax
Arguments
Return Type
| Sets the value of the slider |
Name | Type | Descripton |
classNameTag | String | The extra string to add to the class name for a dynamic slider. This property is used to allow specific CSS rules to distinguish between static sliders and dynamic. This property should not be changed after any sliders have been created. |
Name | Descripton |
onchange | This event is fired when the value of the slider has changed |
None.