What can i do this in and how?
Here's a simple little example for you:
<html>
<head>
<script>
function changeTDContents(text)
{
document.getElementById("cell").innerHTML = text
}
</script>
</head>
<body>
<table onmouseover="javascript:changeTDContents('world!');" onmouseout="javascript:changeTDContents('Hello');">
<tr><td id="cell">Hello</td></tr>
</table>
</body>
</html>
Should be fairly self-explanatory.
JQuery mouseover event handlers will let you set the contents of any HTML element.
http://api.jquery.com/mouseover/ - the example here uses DIV elements but you should be able to shift it to use a table
精彩评论