SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: onmouseover

  1. #1
    SitePoint Addict
    Join Date
    Jun 2008
    Posts
    205
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    onmouseover

    Code:
    $cnt=mysql_num_rows($result);
    while($names=mysql_fetch_array($result)){
    $owner=$names[0];
    $owner1=explode("@",$owner);
    echo "<td colspan=\"3\"><div align=\"center\" class=\"tduser\">$owner1</div></td>";
    }
    On mouseover how to show the $owner -Which has the full name.

  2. #2
    SitePoint Evangelist vikrantkorde's Avatar
    Join Date
    Jun 2004
    Location
    Mumbai, India
    Posts
    541
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just by adding Div in the TD will not make you achieve what you are looking for. You need to use Java script effects of showing tool tip.
    try dynamicdrive.com site for showing tool tip code.
    Vikrant Korde
    S Y S T I M E, Mhape,
    Mumbai, Maharashtra, India.

  3. #3
    SitePoint Wizard
    Join Date
    Nov 2004
    Location
    Nelson BC
    Posts
    2,310
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Use the title attribute:

    echo "<td colspan=\"3\" title=\"$owner\"><div align=\"center\" class=\"tduser\">$owner1</div></td>";

  4. #4
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,526
    Mentioned
    83 Post(s)
    Tagged
    4 Thread(s)
    That would be easier to understand if the quotes weren't escaped.

    echo '<td colspan="3" title="$owner"><div align="center" class="tduser">' + $owner1+ '</div></td>';
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •