By failing to prepare, you are preparing to fail.<br />Benjamin Franklin (1706 - 1790)
You can use "this.style.backgroundColor" to change the background of the div onmouseover/mouseout. You might have some issues with Netscape, but it all depends on the application. You can change most elements this way, so you wouldn't have to swap classnames at all. onmouseover="this.style.backgroundColor='#CC0000';" onmouseout="this.style.backgroundColor='#0000CC';"