Results 1 to 5 of 5

Thread: How can we implement Tooltip in HTML?

  1. #1
    Join Date
    Nov 2009
    Posts
    53

    How can we implement Tooltip in HTML?

    Hello Friends,

    I have one query regarding the tooltip concept of the HTML. I an developing one project in the HTML. In which I need add the tooltips for various components of the Html page. Please let me know How can we implement Tooltip in HTML? I would greatly appreciate your help.

  2. #2
    Join Date
    Apr 2008
    Posts
    3,522

    Re: How can we implement Tooltip in HTML?

    Hi,

    In the HTML language the the implementation of the tootip can be achieved by using "alt" attribute.
    See below syntax for the tooltip.:
    <img src="url_of_the_image" alt="Nature beauty">
    Here the "Nature beauty" is the tooltip which is applicable for the given image mentioned in the "Image" tag.

  3. #3
    Join Date
    Apr 2008
    Posts
    3,295

    Re: How can we implement Tooltip in HTML?

    According to my Html knowledge the "title" attribute is used to apply the tooltip in the html. Below html example which will demonstrate you the the basic use of the "text" attribute in the html code.
    <html>
    <body>
    <img src="http://forums.techarena.in/image/ABC.gif" title="Tooltip testing">
    <p>
    <a href="url "
    title="Testin the tooltip in the Html">Demo</a>
    </p>
    </body>
    </html>

  4. #4
    Join Date
    Nov 2005
    Posts
    3,026

    Re: How can we implement Tooltip in HTML?

    Hi friends,
    The tooltip are the text which visible when user clicks on the any Html component such as Image, url, Buttons, check boxes, forms, tables etc. This can be achieved int two ways i.e "text" attribute and another is "Tittle". We can implement the multiline tooltips for the web page .
    If you are using the "Firefox " browser then you are not able to see multiline tooltips. To show multiple line tooltip you need to use the Internet explorer.

  5. #5
    Join Date
    May 2008
    Posts
    2,680

    Re: How can we implement Tooltip in HTML?

    I have one html program for the tootip which is as following:
    HTML Code:
    <html>
    <head>
    
    <script type="javascript">
    
    var txt1 = "The first tooltip program";
    
    function TlTxt(g)
    {
        return "The program of " + g + " tooltip";
    }
    </script>
    </head>
    <body>
    
    <a href="bnm.htm" onmouseover="Tip(TlTxt('1st'))">Place first link here</a>
    
    <a href="tyu.htm" onmouseover="Tip(TlTxt('2nd'))" onmouseout="UnTip()">Place 2nd link here</a>
    
    </body>
    </html>

Similar Threads

  1. My ToolTip is only partially visible
    By X-quisite in forum Windows Software
    Replies: 4
    Last Post: 25-11-2010, 12:55 PM
  2. How to view URL as tooltip in Mozilla Firefox?
    By reetus in forum Technology & Internet
    Replies: 5
    Last Post: 23-12-2009, 04:18 PM
  3. Change font for tooltip control ?
    By Chain-SmokeR in forum Software Development
    Replies: 3
    Last Post: 20-07-2009, 08:05 AM
  4. Decrease tooltip/infotip delay?
    By firebo14 in forum Windows Software
    Replies: 3
    Last Post: 29-06-2009, 09:34 AM
  5. The tooltip appearance is too fast
    By Ruthclick in forum Software Development
    Replies: 1
    Last Post: 26-09-2008, 12:26 PM

Tags for this Thread

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
  •  
Page generated in 1,714,261,947.52257 seconds with 17 queries