mouseover effect on asp:imagebutton - is it possible

D

Dariusz Tomon

Hi

I got task to make my application much more attractive :(
First of all I have to add hover (mouseover) effect to several buttons -
imagebuttons - I only know manner with Java Script - but it does not work
with ASPNET objects.

Any ideas?

Darek
 
G

Guest

Darek,
The mouseover event is a client - side Browser DOM event, and therefore by
definition, it must be done with client-side script.
You can "inject" this script into the page from the server side with
RegisterClientScriptBlock, etc. but it still needs to be javascript since
the event of the mouse hovering over a control is a browser event and has
nothing at all to do with the server.
Hope that helps.
Peter
 
C

CJ

I think you can use addattribute with the javascript code on the server
side. Peter's solution works too
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,577
Members
45,054
Latest member
LucyCarper

Latest Threads

Top