PDA

View Full Version : MouseOver Text Help


JoeP
09-25-2002, 02:09 AM
On an Image SRC the alt="This Is Some Help" is cut and dry on a Mouseover. Can I do this same thing for a Table Cell?

I have some form fields in Table cells and I would like the text help to pop up with Mouseover.

TIA for any tips and/ or guidance.

adios
09-25-2002, 03:01 AM
Here's a nice script:

http://www.dynamicdrive.com/dynamicindex5/texttool.htm

Just stick it in there, and...

<td onmouseover="showtip(this,event,'Your text here')" onmouseout="hidetip()">
<input type="text" style="cursor:pointer;">
</td>

JoeP
09-25-2002, 03:04 AM
Thank You! Very Much Appreciated.

glenngv
09-25-2002, 03:36 AM
...or if you just want to make it work with IE5 and up / NS6 and up

<td title="this is a tooltip for TD">

title attribute works for almost all html tags, except for <select> tag.

other samples:
<font title="This is a text">This is a text</font>
<input type="button" value="Submit" title="Click to Submit">
<a href="test.htm" title="This is a link">Link</a>
<body title="This is the title of the body">
<b title="This is a bold text">Bold text</b>

beetle
09-25-2002, 04:08 AM
That works, but just an FYI, the straight HTML solution is to use the title attribute

<td title="This Is Some Help">&nbsp;</td>