Results 1 to 3 of 3

Thread: tooltip for link

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2002
    Location
    Viet Nam
    Posts
    142

    tooltip for link

    I am trying to make a kind of tips for each link i have in the table . I mean that i have a table with 2 cols , one for displaying lists of links while the other is for displaying the tip of that link ( in multi lines - i use <textarea> not <input type=text> , when the user moveover a link on the left the tip will be displayed on the right column . The problem is that i can't make it with javascript , so i think it will be solved in PHP .
    Anyone ever done this before ? Please show me how you have made it .

  2. #2
    Frenzied Member DeadEyes's Avatar
    Join Date
    Jul 2002
    Posts
    1,196
    Why don't you just set the title attribute of the <A> tag?

    Code:
    <a href="mypage.html" title="another page another dead end">link</a>

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    It can't be solved in PHP or any other server side language for that matter. You could use a client side language to do this, such as JavaScript. But a better idea would be to do what DeadEyes said.

    If you still want to do it the way you described, then the best method would be to create a one-celled table, with the description of the link in it, and set it's visibility to hidden. Then, on a mouseover, set it's absolute position to the desired place on the page, and set it's visibility to visible.

Posting Permissions

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



Click Here to Expand Forum to Full Width