documento.getElementById('tuo-id-univoco-oggetto').style.hover = 'codice-colore';
cosi hai provato?