2014-02-20 36 views
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。 埃裏克

+1

任何機會第二個標籤的id不是'lblCustomerImportMessage'? - 可能是一個錯字? –

回答

0

奇怪,我選中了第二個標籤的名稱,這是沒有錯的話,我又跑了網頁,現在它正在....

你能不恨它當發生。 :-)