0
$('<div class="error"></div>').html('<h2>(click here to dismiss)</h2>').insertAfter($('#someid')).fadeIn('slow').animate({ opacity: 1.0 }, 1000).click(function() {
$(this).fadeOut('slow', function() {
$(this).remove()
})
});
有沒有辦法將它與組合:淡出說明書(點擊)具有自動(後幾秒鐘)
$('#someid').animate({opactiy: 1.0 } fadeOut('slow', function() {
$(this).remove()
});
換句話說,它結合起來,所以當他們不點擊,它會在這麼多秒後消失..