PHP Developers Network
http://forums.devnetwork.net/

[SOLVED] How to turn pointer into hand on mouseover js link?
http://forums.devnetwork.net/viewtopic.php?f=32&t=25613
Page 1 of 1

Author:  voltrader [ Tue Aug 31, 2004 12:28 pm ]
Post subject:  How to turn pointer into hand on mouseover js link?

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.

Author:  markl999 [ Tue Aug 31, 2004 12:33 pm ]
Post subject: 

You could use CSS to do it:
img:hover {
cursor: pointer; cursor: hand;
}
or do it 'inline':
<img style="cursor:pointer;cursor:hand" .....

Author:  voltrader [ Tue Aug 31, 2004 12:36 pm ]
Post subject: 

Does that bit of css add a style definition to the 'img' tag? I didn't know that could be done!

Author:  voltrader [ Tue Aug 31, 2004 12:36 pm ]
Post subject: 

Got it... thanks!

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/