onmouseup Event

Occurs when the left mouse button is released (from a depressed position) while the pointer is within the region contained by the object.

Syntax

VBScriptSub spriteObj_onmouseup( button, shift, x, y )
<!--script-->
End Sub
JScript<SCRIPT LANGUAGE="JavaScript" FOR=spriteObj EVENT=onmouseup( button, shift, x, y )>
<!--script-->
</SCRIPT>

Possible Values

button
Bit field indicating whether the left (bit 0), right (bit 1), or middle (bit 2) mouse buttons are released. Returns the value of the mouse button released; 0 for no buttons released, 1 for left button released, 2 for right button released, 4 for middle button released.
shift
Bit field indicating whether the SHIFT (bit 0), CTRL (bit 1), or ALT (bit 2) keys are pressed. Returns the value of the key pressed while mouse event is taking place; 0 for no key pressed, 1 for SHIFT key pressed, 2 for CTRL key pressed, 3 for SHIFT and CTRL keys pressed simultaneously, 4 for ALT key pressed, 5 for SHIFT and ALT keys pressed simultaneously, 6 for CTRL and ALT keys pressed simultaneously, 7 for SHIFT, CTRL, and ALT keys pressed simultaneously.
x, y
Coordinates that specify the location of the mouse pointer. Coordinates are in pixels, relative to the surrounding container, with the origin in the upper-left corner.

Top of Page Top of Page
© 2000 Microsoft and/or its suppliers. All rights reserved. Terms of Use.