n92
n92

Reputation: 7602

how to display pop up text on mouse over in php

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.

Upvotes: 1

Views: 10658

Answers (2)

Bryan Agee
Bryan Agee

Reputation: 5052

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>

Upvotes: 2

Oswald
Oswald

Reputation: 31647

Put the message into the title attribute of the a element.

Upvotes: 1

Related Questions