The following code is meant to change cell colour to black on mouse over and set it to white 3 seconds after mouse out.

HTML Code:
<td onmouseover='this.bgColor="#000000"' onmouseout='setTimeout(this.bgColor=,3000)'>&nbsp;</td>
but instead just throws an Illegal Character Error.

Have tried some variations like the foll, but they either just throw the same error or neither error nor result!

HTML Code:
<td ... onmouseout='var color="#FFFFFF";setTimeout(this.bgColor=color,3000)'>...</td>
Could someone point out where I'm going wrong?