BackStyle Property
The BackStyle property specifies if the background of an object is transparent or opaque.
Syntax
document.all["id_name"].BackStyle [=long]
|
Possible Values
Long value that specifies or retrieves the layout style.
|
The property is read/write.
Remarks
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).
Examples
The following example changes the BackStyle property on a mouse click. Note the effect while the BackColor property does not change.
<html>
<head>
<SCRIPT TYPE="text/javascript">
function changeBackStyle()
{
if(document.all["id_StaticText"].BackStyle == false)
{
document.all["id_StaticText"].BackStyle = true;
}
else
{
document.all["id_StaticText"].BackStyle = false;
}
}
</SCRIPT>
</head>
<body>
<OBJECT id="id_StaticText" width="170" height="12"
style="padding:0; margin:0; display:inline;"
classid="CLSID:2D6F85AB-07AB-4417-85E3-7F2400474A63">
<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">
</OBJECT>
<div onclick="changeBackStyle()">Click!</div>
</body>
</html>
|
Applies to
SiteKiosk v5.0 (and later versions).
Back to top