Whenever a slider has focus, the keys ←, →, ↑, ↓, Ins and Del can be used to control the slider handle (pressing either the Page up or Page down keys or CTRL and an arrow key will move the handle by two steps at a time), the Home key to set the slider at it’s minimum value and the End key to set the slider at it’s maximum value.
The script automatically assigns each slider the required ARIA role of “slider” and states “valuemax”, “valuemin”, “valuetext” and “valuenow”.
Should an element with an id of fd_slider_describedby exist, this is used to set the ARIA “describedby” relationship. Additionally, should the sliders associated form element itself have an associated label, this label is used to set the ARIA “labelledby” relationship.
fd_slider_describedby
label
View the JavaScript source or read the related article.
The following slider has been created from a select list whose options contain non-numeric values. A simple callback function has been defined that updates a dynamically created tooltip with the current slider value.
class="fd_slider_cb_create_TT-init fd_slider_cb_update_TT-update fd_slider_cb_move_TT-update fd_hide_input"
The rather nice png images and styles for the black sliders were located at schillmania. Go visit…