Home All Groups Group Topic Archive Search About

RE: onmouseover client-side event for RectangleHotSpot

Author
18 Sep 2007 9:28 AM
James Page
Try this:

<asp:ImageButton
id="ImageButton1"
ImageUrl="button1.gif”

onmouseover="this.src='~/URL OF MOUSE OVER IMAGE'"
onmouseout="this.src='~/URL OF MOUSE OUT IMAGE'"

OTHER PROPERTIES HERE

runat="server">

</asp:ImageButton>

In VS2005 the code section: "onmouseover /onmouseout" may be highlighted as
wrong but it will work just fine in IE and Firefox.

The full MSDN article is here:
http://msdn2.microsoft.com/en-us/library/Aa479011.aspx#aspnet-usingjavascript_topic03

Hope this helps

James Page

AddThis Social Bookmark Button