淡出标签 [英] fade out label

查看:56
本文介绍了淡出标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我的要求是在单击按钮时显示标签,并在10秒钟后淡出标签文本.这可以用javascript完成,但我想通过Ajax来实现此要求.

任何人都可以提供任何良好的链接或有关如何实现此目标的任何建议.

谢谢

Hi all,

My requirement is to display label on button click and fade out the label text after 10 sec. This can be done with javascript but i want to implement this requirement through Ajax.

Can anyone provide any good link or any suggestion on how to implement this.

Thanks

推荐答案

选中此 jQuery FadeOut [ ^ ]


大家好,

我自己使用UpdatePanelAnimationExtender解决了该问题.

只是想分享,如果其他人正在寻找相同的东西.

以下是不言自明的代码.

Hi all,

Solved it by myself using UpdatePanelAnimationExtender.

Just wanted to share if others are looking for same.

Below is the code that is self explanatory.

<code><pre lang="xml"><asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
                                                <ContentTemplate>
                                                    <asp:Label ID="lbl_msg" runat="server" ForeColor="Red" Visible="False"></asp:Label>
                                                </ContentTemplate>
                                                <Triggers>
                                                    <asp:AsyncPostBackTrigger ControlID="btn_save" EventName="Click" />
                                                </Triggers>
                                            </asp:UpdatePanel>







<pre lang="xml"><asp:UpdatePanelAnimationExtender ID="UpdatePanelAnimationExtender1" runat="server"
                                                TargetControlID="UpdatePanel1">
                                                <Animations>
                                                        <OnUpdated>
                                                        <FadeOut Duration="5.0" Fps="24" />
                                                        </OnUpdated>
                                                </Animations>
                                            </asp:UpdatePanelAnimationExtender>



上面的内容在5秒钟内使lbl_msg消失.

谢谢



The above fades lbl_msg in 5 sec.

Thanks


您能在vb.net上给我同样的意思吗.请...
can u plzz rep me for the same in vb.net..please...


这篇关于淡出标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆