General discussion


table in Html

By zkarkeh ·
How can I change the color of a table's cells by focusing over another cell?

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Comments

Collapse -

by ekolo In reply to table in Html

This method should work if you are using IE 5. You'll have to change what you are referencing for change color, ie. pass the page id of the table as an argument rather than 'this'. If that doesn't work, or if you want a more robust (and more complicated) system, check out.

Good luck,
Eugene Kolovyansky
Blue Link Innovations, Inc.
<script language="Javascript">
function changecolor(thiscell) { ="gray";

####and the tables######
<td id='fun' onMouseover='return changecolor(this)' onMouseOut='return"white"'>hello</td>
<td id='fun' onMouseover='this.bgColor = "green"' onMouseOut='this.bgColor="white"'>just a simple test</td></tr>

Related Discussions

Related Forums