SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    Non-Member
    Join Date
    Jan 2004
    Location
    Seattle
    Posts
    4,328
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How do you make "text popups"?

    If you visit http://www.dmcinsights.com/mysql/toc.php and place your cursor over any of the links in the left column, a tiny block of descriptive text pops up. I've seen this before and always wanted to learned how to do it.

    I checked the source code but found no reference to JavaScript. The page has a .php extension, so I'm guessing this is some sort of PHP function. Can anyone tell me how to do it?

    Thanks.

  2. #2
    One website at a time mmj's Avatar
    Join Date
    Feb 2001
    Location
    Melbourne Australia
    Posts
    6,282
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Had you done a "view source" you would have realised that these links simply have "title" attributes.

    <a href="http://www.example.com/" title="Look at my title!">Link Text</a>
    [mmj] My magic jigsaw
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    The Bit Depth Blog Twitter Contact me
    Neon Javascript Framework Jokes Android stuff

  3. #3
    SitePoint Addict will_'s Avatar
    Join Date
    Apr 2004
    Location
    Asheville, NC
    Posts
    206
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The title attribute will show 'tool tips' in Mozilla at least, but I think the support in IE is lacking.

    Of you still want to use some Javascript, there is a short tutorial here that will produce the effect you are talking about, and is highly customizable:

    http://www.dynamicdrive.com/dynamici...tmltooltip.htm

  4. #4
    SitePoint Evangelist ClevaTreva's Avatar
    Join Date
    Jan 2004
    Location
    Chipping Campden, UK
    Posts
    403
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by will_
    The title attribute will show 'tool tips' in Mozilla at least, but I think the support in IE is lacking.
    Hi, IE6 supports titles.

    For tooltips in java, I use DOM Tooltips from freshmeat



    Trevor
    "Good artists copy, great artists steal."
    - Pablo Picasso
    The image of ClevaTreva is drawn by Rhys, and is a GOOD likeness


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
  •