MouseDown Event



 
Fires when the left mouse button has been pressed on the animation.


Syntax

    function id_name::MouseDown()
Remarks
    The MouseDown Event is only usable in the part of the script where the corresponding object is already known.
Examples
    The following example starts the display of the animation after the MouseDown event occurred on the image. The MouseUp event stops and resets the animation.

    <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::MouseDown()
    {
    	document.all["id_SKAnimateControl"].Start();
    }
    function id_SKAnimateControl::MouseUp()
    {
    	document.all["id_SKAnimateControl"].Stop();
    	document.all["id_SKAnimateControl"].Reset();
    }
    </SCRIPT>
    </body>
    </html>

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

Back to top