Adds a slider control to the document.
Syntax
XML <Prefix:CustomTag ID=sID STYLE="behavior:url('slider.htc')" /> HTML <ELEMENT STYLE="behavior:url('slider.htc')" ID=sID> Scripting object.style.behavior = "url('slider.htc')" object.addBehavior ("slider.htc")
Possible Values
Prefix Prefix used to associate CustomTag with a namespace. This prefix is set using the XMLNS attribute of the HTML element. CustomTag User-defined tag. sID String that uniquely identifies the object.
Members
Styles
Remarks
The behavior-defined members listed in the preceding table are not accessible through script until the window.onload event fires. Waiting for this event to fire ensures that the page is completely loaded, that all behaviors have been applied to corresponding elements on the page, and, consequently, that all the behavior's properties, methods, and events are available for scripting. Attempting to use any of the behavior-defined members will result in a scripting error indicating that the object does not support that particular member.
The slider behavior inserts a slider control into a Web page and is a method for Web authors to allow users to select a value from a gradient. A slider can be placed on the page with a vertical or horizontal orientation. Values are selected by dragging the slider with the mouse. Tick marks are provided according to an author-specified range.
When the slider behavior is included in a FORM, a NAME/VALUE pair is submitted.
The slider.htc file can be downloaded from the slider sample page.
In addition to the members and styles previously listed, the slider behavior supports:
Example
This sample demonstrates the implementation and adjustments of the slider behavior.
<HTML XMLNS:IE> <HEAD> <STYLE> @media All{ IE\:slider{ behavior: url(slider.htc) } } </STYLE> </HEAD> <BODY> <IE:slider id=hori style="POSITION: absolute" /> </BODY> </HTML>
See Also