Using Sliders with the Scriptaculous Framework - Coding a horizontal DHTML slider (Page 3 of 4 )
In consonance with the concepts that I deployed in the previous section, coding a horizontal slider using the Scriptaculous animation framework is only a matter of working with the same "Control.Slider" object that you learned about earlier, but this time assigning a value of "horizontal " for its "axis" parameter.
If you feel curious about how this slider looks, please pay attention to the following screen shot, which clearly shows its visual appearance:
As you can see, the above image illustrates the look and feel of a simple horizontal slider. It has been coded by using the same "Control.Slider" object that you learned in the previous section. And speaking of that, below I listed the corresponding signature of an (X)HTML file that displays the slider in question, so take a look at it, please:
As shown above, the horizontal slider was coded with the same approach that was used to display a vertical one. Nonetheless, in this case the pertinent "axis" argument has a value of "horizontal," and consequently the handleís vertical offset has been specified too, using the expression "alignX:0."
As you can see, coding vertical and horizontal sliders with the Scriptaculous framework is in fact a no-brainer process, since the procedure itself is reduced to only specifying how the control is going to behave on the web page by assigning a concrete value for its "axis" input argument.
So far, so good. At this time you hopefully learned how to include the two main types of sliders that are available with the Scriptaculous library. However, Iím not finished with this tutorial yet, since Iíd like to show you another concrete example. It will demonstrate how to use some of the additional parameters accepted by the "Control.Slider" object that was discussed previously.
To see how this additional example will be created, jump ahead and visit the following section. Iíll be there, waiting for you.