Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 13 of 13
  1. #1
    New Coder
    Join Date
    Oct 2004
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Display tooltip-texts permanently

    Hi,

    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!

  • #2
    Regular Coder
    Join Date
    Aug 2004
    Location
    codegoboom@yahoo.com
    Posts
    999
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Uh... put the title text in a span, and style it as:
    Code:
    {font:icon; color:infotext; background:infobackground; border:1px solid windowframe; padding:0.1em}
    *this message will self destruct in n-seconds*

  • #3
    New Coder
    Join Date
    Oct 2004
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #4
    New Coder
    Join Date
    Oct 2004
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Help!
    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

  • #5
    Senior Coder
    Join Date
    Aug 2002
    Location
    Kansas City, Kansas
    Posts
    1,518
    Thanks
    0
    Thanked 2 Times in 2 Posts
    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.

  • #6
    New Coder
    Join Date
    Oct 2004
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi all js gurus,

    is there anyone who can help me with this?

    Many thanks in advance

  • #7
    Banned
    Join Date
    Sep 2003
    Posts
    3,620
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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...

    .....Willy

  • #8
    New Coder
    Join Date
    Oct 2004
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts
    My table is actually made up of three separate tables, places inside of one <div> each, like this

    _|CCCCCCC
    R DDDDDDD
    R DDDDDDD
    R DDDDDDD

    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.

  • #9
    Banned
    Join Date
    Sep 2003
    Posts
    3,620
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Sorry I can not help you...
    I work with code not intuitive explanations which are left to my imagination...

    Good Luck;
    .....Willy

  • #10
    Senior Coder
    Join Date
    Feb 2004
    Location
    Edinburgh
    Posts
    1,352
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Malan
    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.
    Last edited by jbot; 01-19-2005 at 03:17 PM. Reason: spelling
    *keep it simple (TM)

  • #11
    New Coder
    Join Date
    Oct 2004
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #12
    Senior Coder
    Join Date
    Feb 2004
    Location
    Edinburgh
    Posts
    1,352
    Thanks
    0
    Thanked 0 Times in 0 Posts
    longdesc is meant to be used in these circumstances, i believe. you could look into doing something using that.
    *keep it simple (TM)

  • #13
    New Coder
    Join Date
    Oct 2004
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks for the suggestion.

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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •