2014-02-20 37 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

奇怪,我选中了第二个标签的名称,这是没有错的话,我又跑了网页,现在它正在....

你能不恨它当发生。 :-)