Caption button caption-button
This button toggles closed caption display on and off. It is not visible if the caption parameter is not specified.
You can size, skin, and position this button, relative to the control bar that contains it, by using CSS.
The appearance of this button is controlled with the following CSS class selector:
.s7videoviewer .s7closedcaptionbutton
CSS properties of the caption button
NOTE
This button supports both the
state
and selected
attribute selectors, which can be used to apply different skins to different button states. In particular, selected='true'
corresponds to the state when captions are visible and selected='false'
is used when captions are hidden.The button tool tip can be localized. See Localization of user interface elements for more information.
Example section-e8caea0a303c425a8a637c2a47c06355
To set up a closed caption button that is 28 x 28 pixels and positioned four pixels from the top and 68 pixels from the right edge of the control bar. And finally, displays a different image for each of the four different button states when selected or not selected.
.s7videoviewer .s7closedcaptionbutton {
position:absolute;
top:4px;
right:68px;
width:28px;
height:28px;
}
.s7videoviewer .s7closedcaptionbutton[selected='true'][state='up'] {
background-image:url(images/v2/ClosedCaptionButton_up.png);
}
.s7videoviewer .s7closedcaptionbutton[selected='true'][state='over'] {
background-image:url(images/v2/ClosedCaptionButton_over.png);
}
.s7videoviewer .s7closedcaptionbutton[selected='true'][state='down'] {
background-image:url(images/v2/ClosedCaptionButton_down.png);
}
.s7videoviewer .s7closedcaptionbutton[selected='true'][state='disabled'] {
background-image:url(images/v2/ClosedCaptionButton_disabled.png);
}
.s7videoviewer .s7closedcaptionbutton[selected='false'][state='up'] {
background-image:url(images/v2/ClosedCaptionButton_disabled.png);
}
.s7videoviewer .s7closedcaptionbutton[selected='false'][state='over'] {
background-image:url(images/v2/ClosedCaptionButton_over.png);
}
.s7videoviewer .s7closedcaptionbutton[selected='false'][state='down'] {
background-image:url(images/v2/ClosedCaptionButton_down.png);
}
.s7videoviewer .s7closedcaptionbutton[selected='false'][state='disabled'] {
background-image:url(images/v2/ClosedCaptionButton_disabled.png);
}
recommendation-more-help
b7426f53-aad9-4c00-83fc-664f30f681e8