0
在我的网页我有:多的setTimeout隐藏控件
Dim sb As New StringBuilder sb.AppendLine("function pageLoad(sender, args) {") sb.AppendLine(" setTimeout(function() { $(""#ContentPlaceHolder1_tbcTables_ctl00_lblCostCenterImportMessage"").fadeOut(3000); }, 6000); ") sb.AppendLine(" setTimeout(function() { $(""#ContentPlaceHolder1_tbcTables_ctl00_lblCustomerImportMessage"").fadeOut(3000); }, 6000); ") sb.AppendLine("};")
ClientScript.RegisterStartupScript(Me.GetType, "scriptlblTimeOut", sb.ToString, True)
这是工作的第一个标签淡出,但第二次没有做到这一点。 我怎样才能在页面加载多个淡出?
rg。 埃里克
任何机会第二个标签的id不是'lblCustomerImportMessage'? - 可能是一个错字? –