Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #9755

OT: I am having some difficulties with Tooltip...

From "J.O. Aho" <user@example.net>
Newsgroups comp.lang.php
Subject OT: I am having some difficulties with Tooltip...
Date 2013-06-04 06:57 +0200
Message-ID <b15ae0FqhkuU1@mid.individual.net> (permalink)
References <b5db2f85-b699-4f77-a432-2cf0ecb57228@googlegroups.com>

Show all headers | View raw


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

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

I am having some difficulties with Tooltip... khando Umpo <khandoumpo@gmail.com> - 2013-06-03 21:14 -0700
  Re: I am having some difficulties with Tooltip... Jerry Stuckle <jstucklex@attglobal.net> - 2013-06-04 00:50 -0400
    Re: I am having some difficulties with Tooltip... khando Umpo <khandoumpo@gmail.com> - 2013-06-03 21:58 -0700
      Re: I am having some difficulties with Tooltip... Jerry Stuckle <jstucklex@attglobal.net> - 2013-06-04 01:42 -0400
        Re: I am having some difficulties with Tooltip... khando Umpo <khandoumpo@gmail.com> - 2013-06-03 23:05 -0700
          Re: I am having some difficulties with Tooltip... Doug Miller <doug_at_milmac_dot_com@example.com> - 2013-06-04 11:01 +0000
  OT: I am having some difficulties with Tooltip... "J.O. Aho" <user@example.net> - 2013-06-04 06:57 +0200
    Re: OT: I am having some difficulties with Tooltip... khando Umpo <khandoumpo@gmail.com> - 2013-06-03 22:35 -0700
      Re: OT: I am having some difficulties with Tooltip... Markus Grob <snoopy@ilnet.ch> - 2013-06-04 11:34 +0200
        Re: OT: I am having some difficulties with Tooltip... Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-06-04 17:50 +0200
  Re: I am having some difficulties with Tooltip... Denis McMahon <denismfmcmahon@gmail.com> - 2013-06-04 15:46 +0000

csiph-web