Topic: Black Background for Full Screen

Is it possible without changing the background of the non-full screen one ?

Re: Black Background for Full Screen

You could use something like this:

<!--START SIMPLEVIEWER EMBED.-->
<script type="text/javascript" src="svcore/js/simpleviewer.js"></script>
<script type="text/javascript">
var params= {};
params.wmode = "transparent";
$(document).ready(function () {
SV.simpleviewer.load("sv-container", "100%", "100%", "000000", true, null, params);
});
</script>
<div id="sv-container" style="background-color: #ff0000;"></div>
<!-- END SIMPLEVIEWER EMBED -->

Setting the wmode parameter to transparent allows you to set the normal background color via CSS (in this example to red) and the color set in the SV.simpleviewer.load line (in this case black) will be used for fullscreen mode.

Steven Speirs
SimpleViewer Support Team.

Re: Black Background for Full Screen

Thanks a lot smile Just had to change 000000 to ffffff and ff0000 to 000000 to obtain the desired effect : white background on the page and black for full screen.

Re: Black Background for Full Screen

Hi everybody
I tryed the same effect.
I have a background image on the gallery and i want the same image, or just a white one for the fullscreen mode.
But it doesn't seem to work.

www.patrickdescamps.com

Re: Black Background for Full Screen

@cerise
For a white background in fullscreen mode, use the following embedding code:

<!--START SIMPLEVIEWER EMBED.-->
<script type="text/javascript" src="svcore/js/simpleviewer.js"></script>
<script type="text/javascript">
var params={};
params.bgcolor="ffffff";
jQuery(document).ready(function () {
SV.simpleviewer.load("sv-container", "650", "720", "transparent", true, null, params);
});
</script>
<div id="sv-container"></div>
<!-- END SIMPLEVIEWER EMBED -->
Steven Speirs
SimpleViewer Support Team.

Re: Black Background for Full Screen

Thank you it works !!
Do you know if it is possible to add the same image background on the fullscreen mode than on the gallery ?

Re: Black Background for Full Screen

You cannot have background transparency in fullscreen mode but you could set an image to be used as a background using the backgroundURL option in your gallery's XML file which would be used in both normal and fullscreen modes.

Steven Speirs
SimpleViewer Support Team.