Non volevo apparire superficiale nella descrizione poco dettagliata, ma quello che ho scritto è esattamente quello che intendevo
codice:<!doctype html> <html> <head> <style> #contenitore{ width:200px; height:200px; background-color:red; } #contenitore:hover{ background-color:blue !important; } </style> </head> <body> <div id="contenitore"> <input type="button" onclick="document.getElementById('contenitore').style.backgroundColor='yellow';" /> </div> </body> </html>