p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Javascript (http://p2p.wrox.com/forumdisplay.php?f=85)
-   -   Showing text from mouseover event (http://p2p.wrox.com/showthread.php?t=50533)

Apocolypse2005 November 20th, 2006 01:54 PM

Showing text from mouseover event
      I have an img inside a table and i would like when the mouse is over it to display inside one of the <td>. can i do it by labelling the <td> like <td name=text1> and then in the mouseover do something like <img src="*.gif" onmouseover="document.text1.write('what i want to go here!')> is that possible?? anyother suggestions plz, also its need to disspear on the mouseout event. thanks to any one who can help

Always ready and waiting to help!

vinod_yadav1919 November 21st, 2006 12:51 AM

Hi Apocolypse2005!!!
Hope this will help you
function ShowMsg(textVal)
function ClearMsg()
<td><img src="bg.gif" onmouseOver="ShowMsg('This is Test')" onmouseOut="ClearMsg()">

<td id="msgid">

Cheers :)


Greg Griffiths November 21st, 2006 11:17 PM

there is an example at http://www.greggriffiths.org if you hover over any of the blue ovals the text appears in the middle.

Apocolypse2005 November 22nd, 2006 02:04 PM

This has got to be one of the best response i have ever had on this forum, thank you very much! they both were really helpfull!

Always ready and waiting to help!

All times are GMT -4. The time now is 04:56 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.