BackStyle Property

The BackStyle property specifies if the background of an object is transparent or opaque.


    document.all["id_name"].BackStyle [=long] 
Possible Values
    Long value that specifies or retrieves the layout style.

    The property is read/write.
    Possible value are 0 (transparent, anything behind the object is visible) and 1 (opaque, the object's backcolor fills the control and obscures any color or graphics behind it). The default value is 1.
    An object's BackColor property will be ignored if the BackStyle property is set to 0 (transparent).
    The following example changes the BackStyle property on a mouse click. Note the effect while the BackColor property does not change.

    <SCRIPT TYPE="text/javascript">
    function changeBackStyle()
    	if(document.all["id_StaticText"].BackStyle == false)
    		document.all["id_StaticText"].BackStyle = true;
    		document.all["id_StaticText"].BackStyle = false;
    <OBJECT id="id_StaticText" width="170" height="12" 
    style="padding:0; margin:0; display:inline;" 
    	<PARAM NAME="BackStyle" VALUE="1">
    	<PARAM NAME="BackColor" VALUE="241745845">
    	<PARAM NAME="FontName" VALUE="Times New Roman">
    	<PARAM NAME="FontSize" VALUE="8.00">
    	<PARAM NAME="FontBold" VALUE="0">
    	<PARAM NAME="FontItalic" VALUE="0">
    	<PARAM NAME="FontUnderline" VALUE="0">
    	<PARAM NAME="FontWeight" VALUE="500">
    	<PARAM NAME="ForeColor" VALUE="0">
    	<PARAM NAME="Text" VALUE="Default text if necessary">
    <div onclick="changeBackStyle()">Click!</div>

Applies to
    SiteKiosk v5.0 (and later versions).

Back to top