如何使标签在一定时间后消失 [英] How to make a label disappear after a certain length of time
本文介绍了如何使标签在一定时间后消失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使标签在一段时间后消失?使用c#或Jquery。
How to make a label disappear after a certain length of time?Using c# or Jquery.
推荐答案
这可以通过jQuery <$的组合方便地完成c $ c> .hide()和.delay()
:
http://api.jquery.com/hide/ [ ^ ],
http://api.jquery。 com / delay / [ ^ ]。
另请参阅,以防万一: http://api.jquery.com/show/ [ ^ ] :-)。
-SA
This can be conveniently done by a combination of jQuery.hide()
and.delay()
:
http://api.jquery.com/hide/[^],
http://api.jquery.com/delay/[^].
See also, just in case: http://api.jquery.com/show/[^] :-).
—SA
我找到了一个解决方案:
代码背后:
I figured out one solution :
In Code Behind:
Protected Sub Gridview1_RowDeleting(sender As Object, e As GridViewDeleteEventArgs)
lbldeletemsg.Visible = True
lbldeletemsg.Text = "DATA DELETED •"
lbldeletemsg.Focus()
ScriptManager.RegisterStartupScript(Me.Page, Me.[GetType](), "KeyToIdentifyfadeoutScript", "Fadeout();", True)
End Sub
在aspx页面中:
In aspx page:
<script type="text/javascript" src="scripts/jquery-1.4.1.min.js">
function Fadeout() {
( span [id
("span[id
这篇关于如何使标签在一定时间后消失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文