FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » I am having some difficulties with Tooltip...
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
OT: I am having some difficulties with Tooltip... [message #181805 is a reply to message #181803] Tue, 04 June 2013 04:57 Go to previous messageGo to previous message
J.O. Aho is currently offline  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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: PDO Unit Tests
Next Topic: problem encrypting data (AES_ENCRYPT/AES_DECRYPT)
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 10 13:07:34 GMT 2024

Total time taken to generate the page: 0.04052 seconds