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

can onMouseOver activate text in another table cell?

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hey Guys,
I'm trying to set up something similar to an onMouseOver which flips remote images, but with text. I'm having little success. Basically I want to onMouseOver buttons or links and have descriptions of the link appear in another table cell before the user clicks on the link. Anyone know how I can do this? Thanks.
-Rufus
 
Hi,

you can use the "title" attribute, example:

<a href=&quot;link.html&quot; title=&quot;Link's description&quot;>Link</a>

<form>
<input type=&quot;button&quot; value=&quot;Link2&quot; title=&quot;Link2's description&quot;>
</form>

this works for IE4+ and NN6

hope this helps,
Chiu Chan
WebMaster & Software Engineer
emagine solutions, inc
cchan@emagine-solutions.com
 
Thanks, I tried it but it didn't work. I'm trying to display the description text in another cell of the table. Please someone help me out here. Thanks.
-Rufus
 
Start by giving the cell an id - then call a function from the mouseOver cell.

<td onMouseOver=&quot;showText(text)&quot;>mouseover this</td>
<td id=&quot;text&quot;> </td>


Then you have options, you can either write in the text, using innerHTML - which may become tiresome if there is a lot of it.

Or you can put all the text parts in a list with style.display se to &quot;none&quot;. Then use the function to show the appropriate list item.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top