full-screen button full-screen-button

Causes the viewer to enter or exit full-screen mode when selected by the user. This button does not display if the viewer works in popup mode and the system does not support native full-screen. You can size, skin, and position this button by using CSS.

CSS properties of the main viewer area

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

.s7zoomviewer .s7fullscreenbutton
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 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 “full-screen” state and selected='false' corresponds to the “normal” state.

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

Example - To set up a full-screen button that is 32 x 32 pixels, and positioned six pixels from the top and right edge of the viewer. And finally, displays a different image for each of the four different button states when selected or not selected:

.s7zoomviewer .s7fullscreenbutton {
top:6px;
right:6px;
width:32px;
height:32px;
}
.s7zoomviewer .s7fullscreenbutton [selected='false'][state='up'] {
background-image:url(images/enterFullBtn_up.png);
}
.s7zoomviewer .s7fullscreenbutton [selected='false'][state='over'] {
background-image:url(images/enterFullBtn_over.png);
}
.s7zoomviewer .s7fullscreenbutton [selected='false'][state='down'] {
background-image:url(images/enterFullBtn_down.png);
}
.s7zoomviewer .s7fullscreenbutton [selected='false'][state='disabled'] {
background-image:url(images/enterFullBtn_disabled.png);
}
.s7zoomviewer .s7fullscreenbutton [selected='true'][state='up'] {
background-image:url(images/exitFullBtn_up.png);
}
.s7zoomviewer .s7fullscreenbutton [selected='true'][state='over'] {
background-image:url(images/exitFullBtn_over.png);
}
.s7zoomviewer .s7fullscreenbutton [selected='true'][state='down'] {
background-image:url(images/exitFullBtn_down.png);
}
.s7zoomviewer .s7fullscreenbutton [selected='true'][state='disabled'] {
background-image:url(images/exitFullBtn_disabled.png); }
}
recommendation-more-help
b7426f53-aad9-4c00-83fc-664f30f681e8