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
Position inside artwork sprite, if CSS sprites are used.
See also CSS sprites.
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);
}