How to do change style in onmouseover and onmouseout from the code behind

pnlAdded.Attributes.Add("onmouseover", "javascript:this.style.backgroundColor = 'Yellow';this.style.color = 'Black';");
               pnlAdded.Attributes.Add("onmouseout", "javascript:this.style.backgroundColor = 'Red';this.style.color = 'White';");


 lnk.Attributes.Add("onmouseover", "this.style.textDecoration='none';this.style.fontWeight='bold';")
                    'lnk.Attributes.Add("onmouseover", "this.style.textDecoration='none'")
                    lnk.Attributes.Add("onmouseout", "this.style.fontWeight='normal';")
pnlAdded is id for the panel .
lnk is id for linkbutton