# BackgroundColor Property The BackgroundColor property contains the color of the background of the animated image. Syntax
    document.all["id_name"].BackgroundColor [=color]
Possible Values
    ColorValue that specifies or retrieves the background color.
The property is read/write. Remarks If the transparent property is set to true the background color specifies the color value that will appear transparent. Thus, all pixels of the source-image that are assigned this background color will become transparent. ColorValue: An RGB (Red, Green, Blue) 32-bit color value that defines a solid color. Each of the Red, Green, Blue portions represents the color intensity between 0 and 255 (or 0x00 to 0xff hexadecimal). The RGB color value can be calculated: ColorValue = Red + Green*256 + Blue*65536. Please note that this representation differs from HTML color values which are hexadecimal RRGGBB. Examples The following example reads the BackgroundColor property and shows it in an alert window.
    <html>
    <head>
    </head>
    <body>
    <OBJECT id="id_SKAnimateControl" style="width:65px; height:65px;
    border-width:0px; margin-right:0px; margin-bottom:5px;
    margin-top:5px; "
    classid="CLSID:D061BD69-BEDF-4A1C-B890-9D6E784CA25E">
    	<PARAM NAME="ImageFile" VALUE=
    	"skins\default\img\anilogo.png">
    	<PARAM NAME="ImageWidth" VALUE="65">
    	<PARAM NAME="TimerInterval" VALUE="25">
    	<PARAM NAME="UseAlpha" VALUE="0">
    	<PARAM NAME="SrcAlpha" VALUE="0">
    	<PARAM NAME="BackgroundColor" VALUE="0">
    	<PARAM NAME="Transparent" VALUE="0">
    </OBJECT>
    <SCRIPT TYPE="text/javascript">
    function id_SKAnimateControl::Click()
    {
    	alert(document.all["id_SKAnimateControl"].BackgroundColor);
    }
    </SCRIPT>
    </body>
    </html>
Applies to SiteKiosk v5.0 (and later versions). Back to top