PC Review


Reply
Thread Tools Rate Thread

How can you load text when you mouseover a word

 
 
=?Utf-8?B?THVrZQ==?=
Guest
Posts: n/a
 
      1st Aug 2006
Wanting to know if and how you can make text appear in one cell when you move
the mouse over a word in another cell. want to do this so that i can make
information about that name come up if you scroll over the name.
Cheers
 
Reply With Quote
 
 
 
 
Trevor L.
Guest
Posts: n/a
 
      2nd Aug 2006
Luke wrote:
> Wanting to know if and how you can make text appear in one cell when
> you move the mouse over a word in another cell. want to do this so
> that i can make information about that name come up if you scroll
> over the name.
> Cheers


Try the code below.

The first <div> has a cell, which when moused over makes the text appear in the cell in the second <div>.

This may not quite be what you want since you may want the second table to be always visible but different things to appear when
different cells in the first table are moused over. If you do want this, please post back as this can also be done.

<html>
<head>
<script type="text/javascript">
function hideit(elid,hide) {
if (hide != "show") document.getElementById(elid).style.display="none"
else document.getElementById(elid).style.display="block"
}
</script>
</head>
<body>

<div style="float:left">
<table>
<tr>
<td valign="top" onmouseover="hideit('row1','show')" onmouseout="hideit('row1','hide')">
Item 1
</td>
</tr>
</table>
</div>

<div>
<table border="1">
<tr>
<td id="row1" style="display:none">
Item 1 Full description<br>
Blah blah blah <br>
Blah blah blah <br>
Blah blah blah <br>
</td>
</tr>
</table>
</div>

</body>
</html>

--
Cheers,
Trevor L.
[ Microsoft MVP - FrontPage ]
MVPS Website: http://trevorl.mvps.org/


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
pop-up text or mouseover how to =?Utf-8?B?Y3Rzc3Zv?= Microsoft Word Document Management 1 29th Jun 2007 04:40 AM
mouseover is raised 3-5 on page load... how to avoid catching it? ThunderMusic Microsoft Dot NET Framework Forms 0 29th Aug 2006 03:57 PM
mouseover on text KatWoman Microsoft Frontpage 11 4th Aug 2005 09:49 AM
mouseover drop down text overlaps text on page, unreadable! Molly Windows XP Basics 0 18th Jul 2003 05:42 AM
Mouseover text overlaps text on page Molly Windows XP Customization 0 16th Jul 2003 05:25 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:56 PM.