开发者

jquery fadeOut div in td with timer

开发者 https://www.devze.com 2023-02-04 01:03 出处:网络
I try to fadeOut a div. It works with hide(), but not with fadeOut() mobileLabnavhideTimer = window.setTimeout(function(){

I try to fadeOut a div. It works with hide(), but not with fadeOut()

mobileLabnavhideTimer = window.setTimeout(function(){
   开发者_StackOverflow                       $('#labStageNavContainer').hide();
                         }, 
                         4000);

The div is in a table td. Is this a problem?


It seems to be working with fadeOut(), try this demo to see if that's what you are looking for.

Code from Demo:

$(document).ready(function(){
window.setTimeout(function(){
                          $('#labStageNavContainer').fadeOut();
                         },
                         4000);
});


$('#div').fadeout('slow', function(){ //do whatever here afer fades out //can change 'slow' to time in milliseconds 5000 would be 5 seconds });

I think that's what your trying to do their is also .delay()

0

精彩评论

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