Caption button caption-button

Toggles the closed caption display on and off. It is not visible if the caption parameter is not specified. You can use CSS to size, skin, and position this button relative to the control bar that contains it.

CSS properties of the main viewer area

The appearance of the button is controlled with the following CSS class selector:

.s7mixedmediaviewer .s7closedcaptionbutton
CSS property
Description
top
Position from the top border, including padding.
right
Position from the right border, including padding.
left
Position from the left border, including padding.
bottom
Position from the bottom border, including padding.
width
Width of the button.
height
Height of the button.
background-image
The image that is displayed for a given button state.
background-position

Position inside artwork sprite, if CSS sprites are used.

See CSS Sprites.

NOTE
This button supports the state attribute selector 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 - To set up a Closed Caption button that is 28 x 28 pixels, 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.

.s7mixedmediaviewer .s7closedcaptionbutton {
 position:absolute;
 top:4px;
 right:68px;
 width:28px;
 height:28px;
}
.s7mixedmediaviewer .s7closedcaptionbutton[selected='true'][state='up'] {
background-image:url(images/v2/ClosedCaptionButton_up.png);
}
.s7mixedmediaviewer .s7closedcaptionbutton[selected='true'][state='over'] {
background-image:url(images/v2/ClosedCaptionButton_over.png);
}
.s7mixedmediaviewer .s7closedcaptionbutton[selected='true'][state='down'] {
background-image:url(images/v2/ClosedCaptionButton_down.png);
}
.s7mixedmediaviewer .s7closedcaptionbutton[selected='true'][state='disabled'] {
background-image:url(images/v2/ClosedCaptionButton_disabled.png);
}
.s7mixedmediaviewer .s7closedcaptionbutton[selected='false'][state='up'] {
background-image:url(images/v2/ClosedCaptionButton_disabled.png);
}
.s7mixedmediaviewer .s7closedcaptionbutton[selected='false'][state='over'] {
background-image:url(images/v2/ClosedCaptionButton_over.png);
}
.s7mixedmediaviewer .s7closedcaptionbutton[selected='false'][state='down'] {
background-image:url(images/v2/ClosedCaptionButton_down.png);
}
.s7mixedmediaviewer .s7closedcaptionbutton[selected='false'][state='disabled'] {
background-image:url(images/v2/ClosedCaptionButton_disabled.png);
}
recommendation-more-help
b7426f53-aad9-4c00-83fc-664f30f681e8