PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Sat Jul 21, 2018 6:44 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Tue Aug 31, 2004 12:28 pm 
Offline
Forum Contributor
User avatar

Joined: Wed Jul 07, 2004 12:44 pm
Posts: 223
Location: SF Bay Area
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.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 31, 2004 12:33 pm 
Offline
DevNet Resident
User avatar

Joined: Thu Oct 16, 2003 5:49 pm
Posts: 1972
Location: Manchester (UK)
You could use CSS to do it:
img:hover {
cursor: pointer; cursor: hand;
}
or do it 'inline':
<img style="cursor:pointer;cursor:hand" .....


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 31, 2004 12:36 pm 
Offline
Forum Contributor
User avatar

Joined: Wed Jul 07, 2004 12:44 pm
Posts: 223
Location: SF Bay Area
Does that bit of css add a style definition to the 'img' tag? I didn't know that could be done!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 31, 2004 12:36 pm 
Offline
Forum Contributor
User avatar

Joined: Wed Jul 07, 2004 12:44 pm
Posts: 223
Location: SF Bay Area
Got it... thanks!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group