Connecting Tech Pros Worldwide Help | Site Map

alt text on table cell

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 20th, 2005, 12:02 PM
Chris Coho
Guest
 
Posts: n/a
Default alt text on table cell

Is there any way to get the same affect as alt text for an image on a
table cell? For instance I want if someone rolls the mouse over the
cell for some instructions to pop up like they do for images when you
have alt text.

I know how to do mouse over effects and onmousein and onmouseout. I
just dont know how to get the same text box style as image alt text.

Thanks in advance!!

  #2  
Old July 20th, 2005, 12:02 PM
Lasse Reichstein Nielsen
Guest
 
Posts: n/a
Default Re: alt text on table cell

coho@charter.net (Chris Coho) writes:
[color=blue]
> Is there any way to get the same affect as alt text for an image on a
> table cell?[/color]

No. The alt (short for "alternative") text of an image is supposed to
be shown if the client can't show the image. That makes no sense for
a table cell.

But I guess what you want isn't the alt text of the image, but the
title text, which *some* browsers show in the same way. The title
text (the value if the title attribute) is supposed to be displayed
by the client as extra information (e.g., as a tooltip).

So, use
<td title="the cell is amazing!"> ... </td>
[color=blue]
> For instance I want if someone rolls the mouse over the cell for
> some instructions to pop up like they do for images when you have
> alt text.[/color]

Yep, definitly use title text. Do that for images too!
(my browser shows both title and alt text, but with a preference for
title).
[color=blue]
> I know how to do mouse over effects and onmousein and onmouseout. I
> just dont know how to get the same text box style as image alt text.[/color]

You don't want to in this case.
If you ever need to simulate tooltips, try searching for something
called "overlib".

/L
--
Lasse Reichstein Nielsen - lrn@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
  #3  
Old July 20th, 2005, 12:05 PM
Chris Coho
Guest
 
Posts: n/a
Default Re: alt text on table cell

Thanks, that is exactly what i was looking for!
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.