Click Event



 
Fires when the animated image is clicked.


Syntax

    function id_name::Click()
Remarks
    The Click Event is only useable in a part of the script where the corresponding object is already known.
Examples
    The following example starts the display of the animation after the image was clicked and stops/resets after it was double clicked.

    <html>
    <head>
    </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>
    <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();
    }
    </SCRIPT>
    </body>
    </html>

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

Back to top