On Wed, 11 Feb 2004 22:46:35 +0000 (UTC), kj <kj345@lycos.com> wrote:
[color=blue]
> Is there a way to dynamically (e.g. upon onClick) change the bgColor
> attribute of a table cell? I tried cell.setAttribute("bgColor",
> someColor), where someColor was a string of the form "#RRGGBB",
> but nothing happened.[/color]
Try
cell.style.backgroundColor = '#rrggbb';
[color=blue]
> Also, how can I set the mouse cursor to be an arrow when it hovers
> over these table cells? (It's an insertion bar now.)[/color]
You can use CSS to do this.
<style type="text/css">
td {
cursor: default;
}
</style>
This will make the cursor display as the default shape (an arrow, usually)
over all table cells, assuming the cursor property is supported. If you
want to be more selective, change the selector to include a class.
Mike
--
Michael Winter
M.Winter@blueyonder.co.invalid (replace ".invalid" with ".uk" to reply)