View Full Version : Display tooltip-texts permanently

12-21-2004, 09:33 AM

I have created an HMTL-table, where some <td> have a "title" attribute. I would like to know if there is a way to permanently display this text on the screen, instead of keeping it hidden until the mouse passes over.

Thanks in advance for your suggestions!

12-23-2004, 07:56 AM
Uh... put the title text in a span, and style it as:
{font:icon; color:infotext; background:infobackground; border:1px solid windowframe; padding:0.1em}

01-03-2005, 10:43 AM
Thanks a lot for your suggestion.

My problem is still that the length of the text in the title attribute is unknown as the table is generated dynamically. If I put the text inside a span tag, it makes the whole table get out of order if the the length of the text exceeds the length of a table cell. (Which is often the case.)

I was thinking more along the line of displaying the content of the title attribute when a td element got focus, and then set focus in the onload event.

But maybe there is no such way to solve this problem.

01-13-2005, 05:41 PM
This is really bugging me. If there is anyone out there who know how I can solve this problem, please let me know.

Best regards Malin

01-13-2005, 09:20 PM
I think that the only way that you're gonna go about solving this problem is with javascript. If that's the way that you wanna go, then let me know so that I can get a mod to move this thread. Please don't post this again in the javascript area though, we'll handle it. :)

01-19-2005, 09:31 AM
Hi all js gurus,

is there anyone who can help me with this?

Many thanks in advance

Willy Duitt
01-19-2005, 10:43 AM
I do not understand the problem...

If the text was placed in a span as was advised and the data cell has a defined width...
The text should wrap...

Or, get rid of the table and use divisions and overflow:hidden...
Hard to say without looking at an example of the problem...


01-19-2005, 02:52 PM
My table is actually made up of three separate tables, places inside of one <div> each, like this


where R signifies rowheaders, C columnheaders and D the data in the table. The reason I have chosen this layout is that I need to be able to scroll the rows up and down with the columnheaders in place, and to scroll the columns left-right with the rowheaders in place.

If one <td> inside of the D-field wraps the rows in the D-field don't match with the rowheaders, and if one <td> stretches the columns don't match with the columnheaders.

Maybe not the most intuitive explanation, but I hope you get the idea. If not, let me know what is unclear, and I'll try to re-explain it.

Willy Duitt
01-19-2005, 02:56 PM
Sorry I can not help you...
I work with code not intuitive explanations which are left to my imagination...

Good Luck;

01-19-2005, 03:01 PM
My table is actually made up of three separate tables.

wow ... an accessibility nightmare. think you need to re-assess that, it's not ideal markup.

01-19-2005, 04:07 PM
Well, thanks for the input.

I know it maybe isn't the smartest way of solving the scrolling problem, but as my project ends in a week I don't have time to search for another solution. So I just have to work with it as it is. Except for the text-displaying problem it works just fine though.

01-19-2005, 04:13 PM
longdesc is meant to be used in these circumstances, i believe. you could look into doing something using that.

01-20-2005, 11:41 AM
Thanks for the suggestion.

Unfortunately longdesc didn't do what I wanted, so I'll just have to keep on looking.