onmousemove

Description

This event is triggered when the mouse hovers over an image in an image viewer.

Data Type

<function>

Syntax

ImageViewerObject.ui.onmousemove = ...;

Example


var imageviewer = DCSObject.getImageViewer("ImageViewerContainer");  // Get a specified image viewer

imageviewer.ui.onmouseclick = onMouseOver;

function onMouseOver(imageIndex, mouseX, mouseY) {

    ///<int> imageIndex: The index of the image that the mouse click on. The index is 0-based.
    ///<int> mouseX: The X co-ordinate of the mouse on the image.
    ///<int> mouseY: the Y co-ordinate of the mouse on the image.

    //define your own mouse move event here.
}

See Also

.ui.onmouserightclick
.ui.onmousedoubleclick

Is this page helpful?

Leave a Reply

Your email address will not be published.