Hello,
Im new to Javascript, and I've got a problem. I have a table, and if i move my mouse over a row, i want it to turn into another color. for that i use:
<TR bgColor='#FFFFE 0'
onmouseover ="this.bgColor= '#F0FAFF'"
onMouseout ="this.bgColor= '#FFFFE0'">.
That works fine, but now i want to be able to click on a row, to make it another color. But when I use:
<TR bgColor='#FFFFE 0'
onmouseover ="this.bgColor= '#F0FAFF'"
onMouseout ="this.bgColor= '#FFFFE0'"
onclick ="this.bgColor= '#FFFFFF'">
it turns back to the normal color when i move my mouse out of the row, because of the onMouseout.
Can someone tell me how to solve this please?
thanks
Im new to Javascript, and I've got a problem. I have a table, and if i move my mouse over a row, i want it to turn into another color. for that i use:
<TR bgColor='#FFFFE 0'
onmouseover ="this.bgColor= '#F0FAFF'"
onMouseout ="this.bgColor= '#FFFFE0'">.
That works fine, but now i want to be able to click on a row, to make it another color. But when I use:
<TR bgColor='#FFFFE 0'
onmouseover ="this.bgColor= '#F0FAFF'"
onMouseout ="this.bgColor= '#FFFFE0'"
onclick ="this.bgColor= '#FFFFFF'">
it turns back to the normal color when i move my mouse out of the row, because of the onMouseout.
Can someone tell me how to solve this please?
thanks
Comment