MouseMove Event



 
Fires when the mouse is moved over the animated image.


Syntax

    function id_name::MouseMove()
Remarks
    The MouseMove 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 Click event occurred on the image. The MouseMove 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::Click()
    {
    	document.all["id_SKAnimateControl"].Start();
    }
    function id_SKAnimateControl::MouseMove()
    {
    	document.all["id_SKAnimateControl"].Stop();
    	document.all["id_SKAnimateControl"].Reset();
    }
    </SCRIPT>
    </body>
    </html>

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

Back to top