I have a web form in which I would like to create that hover effect of in/out. Currently I have the following (simple button):
<asp:button id="btnSearch"
onclick="btnSearch_Click"
runat="server"
Text="Search"></asp:button>
[/red]
I would like to use asp:ImageButton to use some button I created using Fireworks. I then used DWMX 2004 to create some hover effects with the following code:
<a href="#"
onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('imgSearch','','images/btnSearchOut.gif',1)">
<img src="images/btnSearchUp.gif"
alt="Search"
name="imgSearch"
width="120"
height="36"
border="0">
</a>
[/red]
Is there any way I can migrate the 2? For example, somehow use the asp:ImageButton to reference the hover effects and still use the btnSearch_Click event? Or is it possible to use DWMX's generated code to call my Sub btnSearch_Click event?
Thanks in advance.
<asp:button id="btnSearch"
onclick="btnSearch_Click"
runat="server"
Text="Search"></asp:button>
[/red]
I would like to use asp:ImageButton to use some button I created using Fireworks. I then used DWMX 2004 to create some hover effects with the following code:
<a href="#"
onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('imgSearch','','images/btnSearchOut.gif',1)">
<img src="images/btnSearchUp.gif"
alt="Search"
name="imgSearch"
width="120"
height="36"
border="0">
</a>
[/red]
Is there any way I can migrate the 2? For example, somehow use the asp:ImageButton to reference the hover effects and still use the btnSearch_Click event? Or is it possible to use DWMX's generated code to call my Sub btnSearch_Click event?
Thanks in advance.