你好,我有一个包含一些信息和计时器的通知 div(divNotify)
在主页面中。
Protected Sub Timer_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Try
Me.GetNotification_Stats()
ScriptManager.RegisterClientScriptBlock(Me.Page, GetType(String), "Alert", "Show_NotifyDiv();", True)
Catch ex As Exception
Me.lblError.Visible = True
Me.lblError.InnerText = ex.Message
End Try
End Sub
divNotify
会在一定时间间隔内显示。我需要实现当用户最小化浏览器时,通过闪烁和更改浏览器颜色来通知用户。
但首先,我该如何在JavaScript中判断浏览器是否被最小化?我正在使用jQuery来显示
标签。
function Show_NotifyDiv() {
$("#div_NotificationOuter").show(1000);
$("#div_NotificationOuter").animate({ bottom: '+=30px' }, 4000);
}