我該怎麼做,當我點擊一個按鈕,它會首先.fadeIn(0); .dealy(2000); .fadeOut(600); and say "Validating..."
那麼它會說"Success fully log in"
並重定向到index.php?如何有兩個時尚,延遲和淡出另一個?
我沒有嘗試這一點,但沒有奏效:
function save() {
$('#save_first').html('Validating...');
$('#save_first').fadeIn(1);
$('#save_first').delay(2000);
$('#save_first').fadeOut(600);
$('#save_second').html('Success fully log in!');
$('#save_second').delay(2601);
}
HTML
header('Location: index.php');
exit();
你可以分享一些HTML的任何方式,使我能迅速的小提琴? – brbcoding