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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to display alt message when hover mouse over a table row?

Status
Not open for further replies.

eyorre

Programmer
Jan 24, 2002
32
GB
Is there a way to display a message when the mouse hovers over a row in a table? I would like the message to pop up like an alt tag. The message it displays needs to be dynamic to reflect the value that is displayed in the first column of the table.

Thank you.
 
eyorre said:
I would like the message to pop up like an alt tag.
Actually, this behaviour is a non-standard Microsoftism. Tooltips should be set by the [tt]title[/tt] attribute.
Code:
 <tr>
  <td title="My message">foo</td>
 </tr>
For long, or more elaborate popups, you'll need JavaScript instead.

---
Marcus
better questions get better answers - faq581-3339
accessible web design - zioncore.com
 
Yes there is. Both the TR and TD tags have a Title property that you could set (if these rows are dynamically populated from server side code, then simply add the property tag).


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Thank you very much for your swift replies, that was a lot simpler than I expected and just the trick!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top