ImageChanged Event



 
Fires when the animation image has changed.


Syntax

    function id_name::ImageChanged()
Remarks
    The ImageChanged Event is only useable in the part of the script where the corresponding object is already known.
Examples
    The following example counts every single displayed image of the animated image and shows the total number on the screen.

    <html>
    <head>
    </head>
    <body>
    ImageCounter: <div id="id_ImageCounter">0</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\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()
    {
    	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;
    }
    function id_SKAnimateControl::ImageChanged()
    {
    	var imCount=parseInt(document.all["id_ImageCounter"].
    	innerHTML) + 1;
    	document.all["id_ImageCounter"].innerHTML=imCount;
    }
    </SCRIPT>
    </body>
    </html>

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

Back to top