Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

htm alt trick

Status
Not open for further replies.

dvdljns

Technical User
Aug 13, 2003
22
0
0
US
I am going to toss this out there and see if anybody remembers it and can refresh my memory.
Theres a trick you can do with the alt tag. sorta like the tooltip trick. but it is not. It looks very close to the title style thats done in css.
I think it was claimed as being a IE only thing but the first time I run across it Was back when the only browser I would run was netscape, and it worked for me.
You have to put this in the head of the html doc to get it to work but once it is there any image link you have with alt text will show the text when you pass your mouse over it. giving you a good way of showing why the image is there and it does not effect the way alt is read by text only browsing. I just cannot remember how to do it and cannot find a website that uses it.
Anybody remember how to do that.
 
<img src=&quot;filename.gif&quot; alt=&quot;alt text for VIPs&quot; title=&quot;tooltip&quot; />

The title attribute will popup a tooltip with most modern browsers - including IE (tested on 5 and above), Netscape, Mozilla, and Opera.

The alt attribute pops up a tooltip in IE (but not Moz / netscape / opera) - except when there's a title attribute, in which case IE will use the title as a tooltip.

Is this what you were looking for?

<marc> i wonder what will happen if i press this...[pc][ul][li]please give feedback on what works / what doesn't[/li][li]need some help? how to get a better answer: faq581-3339[/li][/ul]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top