I am trying to change the onmouseOver event dynamically. Here's what I have: document.getElementById('accomodationcell').onmouseOver = function(){this.className = 'submenuover'}; Except its not working. Any ideas??? John
Try with CSS. Example: <html> <head> <style type="text/css"> a#accomodationcell:hover { text-decoration: none; color: red; background-color: green; } </style> </head> <body> <a id="accomodationcell" href="www.google.com">Google</a> </body> </html> Code (markup):