I ve got a short function that should show messages on a website.
function showHint() {
$( #notify ).html( message text ).show( slide , {direction: right }, 500);
}
And there is another function that hides the messages.
function hideHint() {
$( #notify ).hide( slide , {direction: right }, 500);
}
The Problem is that if I call this function more than one times it tries to show all messages at the same time and everything breaks. I want to call the function twice and then it should queue the animations and show one message after another. The function should be called more than one times at the same time but shown one after another. The next message should be shown when the firs hides.
How could I solve the Problem? Would be nice!