I have an image on clicking it deletes a user ,i want to display the text pop up message delete on mouse over .the code is below.
<a href=<?=$_SERVER['PHP_SELF']."?remove_user=1&userid=".$i ?>"> <img src="images/delete.png" width="15" height="15" alt="remove user details" style="border:0px;line-height:0px;margin:0px;"/>
</a>
how to do this.
I have an image on clicking it deletes a user ,i want to display the text pop up message delete on mouse over .the code is below.
<a href=<?=$_SERVER['PHP_SELF']."?remove_user=1&userid=".$i ?>"> <img src="images/delete.png" width="15" height="15" alt="remove user details" style="border:0px;line-height:0px;margin:0px;"/>
</a>
how to do this.
Share Improve this question edited Jun 1, 2011 at 4:49 alex 491k204 gold badges889 silver badges991 bronze badges asked Jun 1, 2011 at 4:48 n92n92 7,60228 gold badges97 silver badges131 bronze badges 1- 2 You should POST for requests that modify state on the server. – alex Commented Jun 1, 2011 at 4:49
2 Answers
Reset to default 2Most browsers will display text you enter in a "title" attribute as a tooltip: ie
<a href="http://someurl.info" title="This will appear on a hover">Link text</a>
Put the message into the title
attribute of the a
element.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744939993a4602262.html
评论列表(0条)