TimerInterval Property



 
The TimerInterval property contains the delay between two animation frames in milliseconds.


Syntax

    document.all["id_name"].TimerInterval [=long]
    
Possible Values
    Long value that specifies the time a single frame is displayed.

    The property is read/write.
Remarks
    If you would like to play an animation at a certain frame rate you can simply calculate the TimerInterval as follows: TimerInterval = 1000/FramesPerSecond.
Examples
    The following example shows an animation with a specified timing.

    <html>
    <head>
    <SCRIPT TYPE="text/javascript">
    function startAnim()
    {
    	document.all["id_SKAnimateControl"].Start();
    }
    function stopAnim()
    {
    	document.all["id_SKAnimateControl"].Stop();
    }
    function resetAnim()
    {
    	document.all["id_SKAnimateControl"].Reset();
    }
    </SCRIPT>
    </head>
    <body>
    <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>
    <div onclick="startAnim()">ClickStart!</div>
    <div onclick="stopAnim()">ClickStop!</div>
    <div onclick="resetAnim()">ClickReset!</div>
    </body>
    </html>
    

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

Back to top