OT: I am having some difficulties with Tooltip... [message #181805 is a reply to message #181803] |
Tue, 04 June 2013 04:57 |
J.O. Aho
Messages: 194 Registered: September 2010
Karma:
|
Senior Member |
|
|
On 04/06/13 06:14, khando Umpo wrote:
> I want a tooltip to be displayed when I move the mouse over edit/delete links. tooltip is worming fine with the delete option , but is not working for the edit link. below is a part of my code which is running partially....please help in php
>
> <td align="center"><?php echo "<a class='tooltip' href=\"edituser.php?uid=".$row['uid']."\";> Edit<span>Edit user info</span></a>/ <a class='tooltip' href=\"deluser.php?uid=".$row['uid']."\">Delete<span>Delete This User</span></a>"?></td>
This is really not PHP related, but about your formation of html and
css. One thing you can do is to use the same kind of quotations, I know
some close sourced browsers which has issues if you keep on mixing
single and double quotes. Also it could help to have a title for the item.
A PHP tips:
To make things more readable you can use
<a class="tooltip" href="edituser.php?uid=<?php echo $row['uid']; ?>">
or if you need to type a lot:
echo <<< EOF
<a class="tooltip" href="edituser.php?uid={$row['uid']}";>
EOF;
and as you see it's more readable than what you have done.
--
//Aho
|
|
|