Changing the cursor on an ImageButton control. How?

  • Thread starter Thread starter David Hearn
  • Start date Start date
D

David Hearn

I have an ImageButton control that I am using on one of my pages. Sometimes,
this button will act as a button and redirect users to another page. But
sometimes, it will just act as an image container. In this case, I don't
want the default hand cursor to be displayed so that the user things that it
is a hyperlink when it's not. I just want the default cursor to display as
with any other image when the user passes the mouse over it. Any way to do
this?

Thanks in advance!
 
add a style to the control when you want it to display normal mouse pointer
ob.style.add("cursor:normal")
 
Back
Top