1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
| function changeCouleurTr(){
ligne= new Array()
ligne=document.getElementsByTagName('tr');
for(var j=0;j<ligne.length;j++)
{
ligne[j].onmouseover=function(){this.className='tr_survole';};
ligne[j].onmouseout=function(){this.className='tr_';};
}
}
function changeCouleurButton(){
ligne= new Array()
ligne=document.getElementsByTagName('button');
for(var j=0;j<ligne.length;j++)
{
ligne[j].onmouseover=function(){this.className='button_survole';};
ligne[j].onmouseout=function(){this.className='button_';};
}
}
window.onload = function { changeCouleurButton(); changeCouleurTr(); } |