View Full Version : assigning className, hover does not work ?

12-25-2006, 01:23 PM

please click on "add div" button. Can anyone tell me why hover works on black DIV and does not on newly created blue DIV ?

Thanks for help.

Bill Posters
12-25-2006, 01:51 PM
Inline styles will override embedded styles.

divNode.style.backgroundColor = 'blue';

12-25-2006, 01:54 PM
Thanks for quick and accurate replay.