button按钮控件的onmouseover与onmouseout事件的概述事例

   刚开始学习就遇到这样的问题确实挺烦人的

  //button按钮控件的onmouseover与onmouseout事件的概述
this.btn_login.Attributes.Add("onmouseover", "this.style.borderColor='white';this.style.color='white';this.style.backgroundColor='#6b8e23';this.style.borderStyle='dashed';this.style.width='48px';this.style.height='24px'");
this.btn_login.Attributes.Add("onmouseout","this.style.borderColor='#6B8E23';this.style.color='#6B8E23';this.style.backgroundColor='white';this.style.borderStyle='dashed';this.style.width='48px';this.style.height='24px'");
this.btn_false.Attributes.Add("onmouseover", "this.style.borderColor='white';this.style.color='white';this.style.backgroundColor='#6b8e23';this.style.borderStyle='dashed';this.style.width='48px';this.style.height='24px'");
this.btn_false.Attributes.Add("onmouseout", "this.style.borderColor='#6B8E23';this.style.color='#6B8E23';this.style.backgroundColor='white';this.style.borderStyle='dashed';this.style.width='48px';this.style.height='24px'");
           

posted @ 2012-11-08 23:29  生命周期管理  阅读(2981)  评论(2)    收藏  举报