62,074
社区成员
发帖
与我相关
我的任务
分享
protected void Page_Load(object sender, EventArgs e)
{
Label lbTab = null;
for (int i = 1; i <= 3; i++)
{
(lbTab = FindControl("Label" + i) as Label).Attributes.Add("onclick", "label_onclick('Label" + i + "');");
}
}
function label_onclick(lbID){
debugger;
var strCurTab = "<%=curTab%>";
if (lbID != strCurTab) {
var lb = document.getElementById(lbID);
lb.style.backgroundColor = "#E4EBF7";
lb.style.font-bold = "true";
}
}