最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - how to display pop up text on mouse over in php - Stack Overflow

programmeradmin0浏览0评论

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
Add a ment  | 

2 Answers 2

Reset to default 2

Most 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.

发布评论

评论列表(0)

  1. 暂无评论