0

Hello
I need some help, I have found all kinds of help with mouse overs change color or image. What I really want to happen is for a mouse over to change table cell content. I would like to have a list in the left cell, when you mouse over the list items it will change content(image text and maybe formated in a table) in the cell on the right.

Thank you
Ron

2
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by rbsplat
0

give your table elements id's then use innerHTML to reference those id's from java script to change their contents. For example have a play with the following

<html>
<head>
<script>
function change1()
{
	document.getElementById('element1').innerHTML = "Goodbye";
}
</script>
</head>
<body>
<table>
	<tr><td id="element1">hello</td><td>to</td></tr>
	<tr><td>whole</td><td onmouseover="change1()">world</td></tr>
</table>
</body>
</html>
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.