This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes tooltip for link Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "tooltip for link" Watch "tooltip for link" New topic
Author

tooltip for link

Randall Twede
Ranch Hand

Joined: Oct 21, 2000
Posts: 4340
    
    2

when i use images i can use alt in the image tag. how can i make a tooltip for a text link?


SCJP
Visit my download page
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
http://www.dynamicdrive.com/dynamicindex5/texttool.htm
there are other versions on the site too
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60794
    
  65

In IE you can use the "title" attribute.
hth,
bear


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Manish Hatwalne
Ranch Hand

Joined: Sep 22, 2001
Posts: 2578

title attribute works with both IE and Netscape 6/6.1.
<a href="somelink.html" title="This is a link t somewhere">A Link</a>
HTH,
- Manish
Randall Twede
Ranch Hand

Joined: Oct 21, 2000
Posts: 4340
    
    2

thanks, i will give title a try first
Randall Twede
Ranch Hand

Joined: Oct 21, 2000
Posts: 4340
    
    2

yeah thats good enough..it works in IE and Mozilla but not in netscape 4.7...they can figure things out without it anyway...just additional help
Yuriy Fuksenko
Ranch Hand

Joined: Feb 02, 2001
Posts: 413
Try to look at this article - it looks complicated, but works in NS. By the way, probably you could simplify the code a little bit.
http://www.faqts.com/knowledge_base/view.phtml/aid/2338/fid/128
Randall Twede
Ranch Hand

Joined: Oct 21, 2000
Posts: 4340
    
    2

well, i dont expect a lot of visitors and i dont think many people still use NS4.7 i just keep it around for testing purposes
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: tooltip for link
 
Similar Threads
richfaces tooltip
How to use tooltip in Struts2
tooltips...
script and javascript
NX: Hardcode or using getHeaderNames?