PlayPause button playpause-button

The Play/Pause button lets a user pause or resume carousel autoplay behavior.

The button is visible only if the CarouselViewer.autoplay parameter is set to 1; otherwise, it is hidden. You can size, skin, and position this button, relative to the control bar that contains it, by using CSS.

CSS properties of the main viewer area

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

.s7carouselviewer .s7playpausebutton

CSS property
Description
top
Position from the top of the viewer border.
right
Position from the right of the viewer border.
left
Position from the left of the viewer.
bottom
Position from the bottom of the viewer border.
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 also CSS sprites.

cursor
Cursor type.
NOTE
This button supports the state attribute selector, which can be used to apply different skins to different button states.

The button tool tip can be localized. See Localization of user interface elements for more information.

As an example, suppose you want to set up a play pause button that is 28 x 28 pixels. You want the button positioned 17 pixels from the bottom and 12 pixels from the left edge of the viewer. And, you want it to display a different image for each of the four different button states when selected or not selected.

.s7carouselviewer .s7playpausebutton {
bottom:17px;
left:12px;
width:28px;
height:28px;
}
.s7carouselviewer .s7playpausebutton[selected='true'][state='up'] {
  background-image:url(images/playBtn_up.png);
}
.s7carouselviewer .s7playpausebutton[selected='true'][state='over'] {
background-image:url(images/playBtn_over.png);
}
.s7carouselviewer .s7playpausebutton[selected='true'][state='down'] {
background-image:url(images/playBtn_down.png);
}
.s7carouselviewer .s7playpausebutton[selected='true'][state='disabled'] {
background-image:url(images/playBtn_disabled.png);
}
.s7carouselviewer .s7playpausebutton[selected='false'][state='up'] {
background-image:url(images/pauseBtn_up.png);
}
.s7carouselviewer .s7playpausebutton[selected='false'][state='over'] {
background-image:url(images/pauseBtn_over.png);
}
.s7carouselviewer .s7playpausebutton[selected='false'][state='down'] {
background-image:url(images/pauseBtn_down.png);
}
recommendation-more-help
b7426f53-aad9-4c00-83fc-664f30f681e8