Changing the cursor on an ImageButton control. How?

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!
 
S

Steve Flitcroft

add a style to the control when you want it to display normal mouse pointer
ob.style.add("cursor:normal")
 

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

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top