Hello,
I am trying to a onMouseover to the change the background of <td>s when
the mouse is on, the problem is that does not work when we put the
content of these <td>s inside another table thanks to innerHtml.
I simplified as possible the source and you can check this here:
So,
When the mouse is on the vertical level of "Categories " we put the
content of right table inside the down table:
function dis_firstmenu() {
document.getEle mentById('deep_ 0').innerHTML =
document.getEle mentById('menui _' + -1).innerHTML ;
}
Next, when the mouse go through the cells ( Vacances, Bricolage,
Toulouse, Soirees ) this change the <td> background of the right table
instead of changing the background of the down table cells.:
document.getEle mentById('td_' + up + '_' +
id_on).style.ba ckgroundImage=' url(menu_on.png )' ;
Does anyone know how to manage to make backgrounds change in the down
table knowing that I must use the function bgmenu_on(up, id_on) {...}
and cannot use any <td onMouseover="th is.backgroundIm age=...">
Thank you,
Vincent.
I am trying to a onMouseover to the change the background of <td>s when
the mouse is on, the problem is that does not work when we put the
content of these <td>s inside another table thanks to innerHtml.
I simplified as possible the source and you can check this here:
So,
When the mouse is on the vertical level of "Categories " we put the
content of right table inside the down table:
function dis_firstmenu() {
document.getEle mentById('deep_ 0').innerHTML =
document.getEle mentById('menui _' + -1).innerHTML ;
}
Next, when the mouse go through the cells ( Vacances, Bricolage,
Toulouse, Soirees ) this change the <td> background of the right table
instead of changing the background of the down table cells.:
document.getEle mentById('td_' + up + '_' +
id_on).style.ba ckgroundImage=' url(menu_on.png )' ;
Does anyone know how to manage to make backgrounds change in the down
table knowing that I must use the function bgmenu_on(up, id_on) {...}
and cannot use any <td onMouseover="th is.backgroundIm age=...">
Thank you,
Vincent.
Comment