onmouseover - Mouse Over Script
Activates an event handler when a control receives a mouse over movement.
Category
eventsSyntax
<xp:eventHandler event="onmouseover" attributes>content</xp:eventHandler>
Usage
For detailed event handler syntax, see eventHandler - Event Handler (property).Examples
This button has client handlers for theonmouseover
and onmouseout
events.
The onmouseover
client handler puts a value in an
input box. The onmouseout
client handler clears that
value.<xp:button value="Test" id="button1">
<xp:eventHandler event="onmouseover" submit="false">
<xp:this.script>
<![CDATA[var e = window.document.getElementById("#{id:inputText1}");
e.value = "Click this button to run the test"]]>
</xp:this.script>
</xp:eventHandler>
<xp:eventHandler event="onmouseout" submit="false">
<xp:this.script>
<![CDATA[var e = window.document.getElementById("#{id:inputText1}");
e.value = ""]]>
</xp:this.script>
</xp:eventHandler>
</xp:button>