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'? - 可能是一個錯字? –