开发者

ASP.NET timed Label Display

I am new to ASP.NET. I made a simple application which performs some of the mathematical operation like addition, subtraction and so on. Now I have many Labels for each output(add, sub, multiply) . Now I want to display label(add output) first and then after 5 second I want to display next label and so on......

Can anyone help me ou开发者_StackOverflow社区t. Thanks.


First hide all the labels except 'ADD' using

$("#labelId").hide(); \\do this for all the labels except Add label

then

$("#labelAdd").delay(800).show(); \\give the delay as you like in milliseconds 
$("#labelSub").delay(800).show();     
$("#labelMul").delay(800).show();

Give a reference to jQuery library in head section then, Put these scripts inside <script> tag inside

$(document).ready(function(){
//above code here.
});


You should definetly read some javascript or I would totally recommend jQuery, jQuery delay and jQuery show. Those are the 3 things you need.

You hide your label with some css visibility:hidden or display:none and then you can show it delayed with .show() from jQuery.

Have you done anything with javascript/jquery so far? need more help?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜