Menu
I have a number of buttons which onmouseover trigger a simple javascript function that changes their colour (text and background colour):
However when I click on the button and its relevant page loads, I want the button to remain in the ‘on state’. i.e. when I rollover it it does not change colour but all the other buttons still do.
For this I use document.getElementById(‘divId’).onmouseover = null;
This works fine, but how do I then renable this mouseover function when I click on another button. i.e. when I click on the next link it will turn off its rollover state and enable all the others that were previously disabled.