The above mentioned 'alt' attribute is different than the 'title' attribute. Beside the working in different browsers, the 'alt' attribute is used for browser who can't display rich content. The 'alt' attributes stands for alternate and can display a single
line of text if the browser couldn't display an image for example.
Also as mentioned above, use the 'title' attribute. It's is used as tooltip and can be made more fancy using jQuery and the ipsy extension (more info here: http://onehackoranother.com/projects/jquery/tipsy/
If you want to show a fancy tooltyp on Ancher Tag there are so may options with Jquery.
Go on net and Search for Jquery Tooltip. You will get multiple beautyful Options.
Thanks
Amit Srivastava
Senior Software Engineer
Find latest stuff on
DotnetAdda
AhmadRock51
Member
359 Points
276 Posts
how to show tooltip using anchor tag
Apr 26, 2011 10:51 AM|LINK
hi all ,
i want to show tooltip on anchor tag,kindly suggest me
smirnov
All-Star
23670 Points
4051 Posts
Re: how to show tooltip using anchor tag
Apr 26, 2011 11:45 AM|LINK
<a title="yourtext"...
http://www.w3schools.com/TAGS/tag_a.asp
shahed.kazi
All-Star
17953 Points
3635 Posts
Re: how to show tooltip using anchor tag
Apr 26, 2011 11:55 AM|LINK
title of web controls
You can use title attribute on any html or web controls.
.NET World |Captcha Control
prabodhm
Participant
958 Points
232 Posts
Re: how to show tooltip using anchor tag
Apr 26, 2011 01:31 PM|LINK
refer http://docs.jquery.com/Plugins/tooltip
spmamidi
Participant
1157 Points
184 Posts
Re: how to show tooltip using anchor tag
Apr 26, 2011 01:59 PM|LINK
Anchor tag has two attributes for showing tooltip - title n alt
alt works only in IE not all other browsers. Use title along with it.
Here is the code
<asp:HyperLink ID="HyperLink1" runat="server" alt="signoff" title="signoff" NavigateUrl="~/Login/Logon.aspx">logoff</asp:HyperLink>
Shiva Mamidi
jpderooy
Member
459 Points
106 Posts
Re: how to show tooltip using anchor tag
Apr 26, 2011 02:15 PM|LINK
The above mentioned 'alt' attribute is different than the 'title' attribute. Beside the working in different browsers, the 'alt' attribute is used for browser who can't display rich content. The 'alt' attributes stands for alternate and can display a single line of text if the browser couldn't display an image for example.
Also as mentioned above, use the 'title' attribute. It's is used as tooltip and can be made more fancy using jQuery and the ipsy extension (more info here: http://onehackoranother.com/projects/jquery/tipsy/
Jean-Pierre
Feel free to follow me on Twitter!
amsneuton
Member
528 Points
121 Posts
Re: how to show tooltip using anchor tag
Apr 26, 2011 02:29 PM|LINK
Hi
If you want to show a fancy tooltyp on Ancher Tag there are so may options with Jquery. Go on net and Search for Jquery Tooltip. You will get multiple beautyful Options.
Thanks
Senior Software Engineer
Find latest stuff on
DotnetAdda