# ImageCount Property The ImageCount property contains the number of animation frames. Syntax
    [long=] document.all["id_name"].ImageCount
Possible Values
    Long value that retrieves the number of single images.
The property is read only. Remarks None. Examples The following example stops the animation when half of it has been displayed.
    <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;
    	if((parseInt(document.all["id_SKAnimateControl"].
    	ImageCount/2))==imCount)
    	{
    		document.all["id_SKAnimateControl"].Stop();
    	}
    }
    </SCRIPT>
    </body>
    </html>
Applies to SiteKiosk v5.0 (and later versions). Back to top