Hi, I have a problem in javascript with the div tag, I want to change the background color when it happens, but I do not change color.
This led to an example in which a function with 2 parameters was declared
function color(n,r){
if(r=='si')
document.getElementById(n).style.background="#FFOOCC"
else
document.getElementById(n).style.background=""
and so it remains on the div tag
<div id='1' onMouseOver=color('1','si') onMouseOut=color('1','n')>provando div1</div>
and I do not know what the problem is thanks