ImageMap mode supports a limited subset of client-side events, such as NodeClickedScript, NodeDoubleClickedScript, NodeMouseEnterScript, NodeMouseLeaveScript, and their link-related counterparts. The following sample shows how to handle the mouse-enter and mouse-leave client side events.
In the Properties window, find the DiagramView NodeMouseEnterScript property. It should contain the name of a JavaScript function that must be invoked when the mouse pointer enters the node.
In the field on the right of the NodeMouseEnterScript property, type in the name of the JavaScript function, in this case "onMouseEnter".
In the Default.aspx file, switch to Source view.
Put the JavaScript functions in the HTML page.
JavaScript Copy Code |
---|
<script language="javascript" type="text/javascript"> function onMouseLeave(sender, args) |
The diagram is drawn when loading the page. When pointing a node, the respective ZIndex of the node is shown.