SrcAlpha Property
The SrcAlpha property contains the overall transparency of the animation control.
Syntax
document.all["id_name"].SrcAlpha [=byte]
|
Possible Values
Byte value that specifies or retrieves the alpha channel value.
|
The property is read/write.
Remarks
PossibleValues: 0-255
If you set SrcAlpha to 0, the animation will be invisible because of the fact that it is completely transparent. Set the SrcAlpha value to 255 to draw opaque images.
Not available on Window95.
Examples
The following example increases the alpha value by 10 on each click on the div area. The start value is 0, which causes the image to slowly appear on the screen.
<html>
<head>
<SCRIPT TYPE="text/javascript">
function changeAlpha()
{
document.all["id_SKAnimateControl"].SrcAlpha=
document.all["id_SKAnimateControl"].SrcAlpha + 10;
}
</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="0">
<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