# UseAlpha Property The UseAlpha property states if alpha channel is to be used for the animation. Syntax
    document.all["id_name"].UseAlpha [=boolean]
Possible Values
    Boolean value. True if an alpha channel is to be used.
    False if no alpha channel is to be used.
The property is read/write. Remarks None. Examples The following example turns the UseAlpha property on or off after a mouse click on the div area.
    <html>
    <head>
    <SCRIPT TYPE="text/javascript">
    function changeAlpha()
    {
    	if(document.all["id_SKAnimateControl"].UseAlpha == true)
    	document.all["id_SKAnimateControl"].UseAlpha = false
    	else document.all["id_SKAnimateControl"].UseAlpha = true;
    }
    </SCRIPT>
    </head>
    <body>
    <div onclick="changeAlpha()">Change Alpha!</div>
    <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\buttonbar.png">
    	<PARAM NAME="ImageWidth" VALUE="65">
    	<PARAM NAME="TimerInterval" VALUE="100">
    	<PARAM NAME="UseAlpha" VALUE="1">
    	<PARAM NAME="SrcAlpha" VALUE="25">
    	<PARAM NAME="BackgroundColor" VALUE="0">
    	<PARAM NAME="Transparent" VALUE="0">
    </OBJECT>
    <SCRIPT TYPE="text/javascript">
    function id_SKAnimateControl::Click()
    {
    	document.all["id_SKAnimateControl"].Start();
    }
    function id_SKAnimateControl::DblClick()
    {
    	document.all["id_SKAnimateControl"].Stop();
    	document.all["id_SKAnimateControl"].Reset();
    	document.all["id_ImageCounter"].innerHTML=0;
    }
    </SCRIPT>
    </body>
    </html>
Applies to SiteKiosk v5.0 (and later versions). Back to top