Page 1 of 1

How to turn pointer into hand on mouseover js link?

Posted: Tue Aug 31, 2004 12:28 pm
by voltrader
I have a graphic link as so:

<img name=redbutton src="images/redbutton.gif" height=10 width=10 onClick="return confirm_red_button('redgo.php&act=delete')">

The mouse pointer does not turn into a hand as it does with html links -- is there any way to easily do this?

The red button is small, so when the user mouses over, it may not be apparent that it's a link at all.

Posted: Tue Aug 31, 2004 12:33 pm
by markl999
You could use CSS to do it:
img:hover {
cursor: pointer; cursor: hand;
}
or do it 'inline':
<img style="cursor:pointer;cursor:hand" .....

Posted: Tue Aug 31, 2004 12:36 pm
by voltrader
Does that bit of css add a style definition to the 'img' tag? I didn't know that could be done!

Posted: Tue Aug 31, 2004 12:36 pm
by voltrader
Got it... thanks!