A fun implementation of the slider widget, which could be very useful in certain applications, is the color slider. Let's put what we've learned about this widget into practice to produce a basic color choosing tool. The following screenshot shows the page that we'll be making:
In a new file in your text editor, create the following page:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang="en"> <head> <link rel="stylesheet" type="text/css" href="development-bundle/themes/smoothness/ui.all.css"> <link rel="stylesheet" type="text/css" href="css/colorSliderTheme.css"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>jQuery UI Color Slider Example</title> </head> <body> <div id="container" class="ui-corner-all ui-widget-contentui-helper-clearfix"> <label>R:</label><div id="rSlider"></div...