MrDeveloper
asked on
Trying to add image rollover for LinkButton in ascx table
I have a custom control that has a menu with a HyperLink in each cell. It works great, but I would like to have the image flip on mouse over. Here is the HTML for one of the cells:
<asp:TableCell HorizontalAlign="Center" ID="cellHome" style="Display:">
<asp:HyperLink runat="server" NavigateUrl="Home.aspx" ForeColor="#291C52"
ID="lnkHome"> <img src="Images/home.jpg" border="0"></asp:HyperLink > </asp:TableCell>
I cannot add an onMouseOver event. For instance, when the user drags the mouse over this cell in the menu, I would like the image to be home_down.jpg instead.
can someone help? Thanks so much!
<asp:TableCell HorizontalAlign="Center" ID="cellHome" style="Display:">
<asp:HyperLink runat="server" NavigateUrl="Home.aspx" ForeColor="#291C52"
ID="lnkHome"> <img src="Images/home.jpg" border="0"></asp:HyperLink
I cannot add an onMouseOver event. For instance, when the user drags the mouse over this cell in the menu, I would like the image to be home_down.jpg instead.
can someone help? Thanks so much!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks so much for the help roverm!
Anytime! Thanks for the points!
D'Mzz!
RoverM
D'Mzz!
RoverM
onmouseover="javascript: this.style.backgroundColor
I dont know hte syntax to change the picture. Maybe someone will help you here