For incorporating in your own projects. Allows a horizontal or vertical slider. You can also use it to make switches (e.g. an on/off switch, or a switch with several positions like off-auto-on). It's pretty flexible. See the comments in the script for more details.
For @trivin