Reset Method



 
The Reset method resets the animation to start position.


Syntax

    document.all["id_name"].Reset()
Return Value
    None.
Remarks
    Use the Reset method to go back to the start position of the animated image. Otherwise the animation will start at the current position, e.g. where it was stopped by means of the Stop method.
Examples
    The following example uses the Start, Stop and Reset methods of the SKAnimateControl ActiveX control. Note that the path of the image is absolute in relation to the SiteKiosk folder.

    <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