Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

asp:ImageButton integrated w/ DWMX's Hover Generated Code

Status
Not open for further replies.

net123

Programmer
Oct 18, 2002
167
US
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=&quot;btnSearch&quot;
onclick=&quot;btnSearch_Click&quot;
runat=&quot;server&quot;
Text=&quot;Search&quot;></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=&quot;#&quot;
onMouseOut=&quot;MM_swapImgRestore()&quot;
onMouseOver=&quot;MM_swapImage('imgSearch','','images/btnSearchOut.gif',1)&quot;>
<img src=&quot;images/btnSearchUp.gif&quot;
alt=&quot;Search&quot;
name=&quot;imgSearch&quot;
width=&quot;120&quot;
height=&quot;36&quot;
border=&quot;0&quot;>
</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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top