I get a string from a php script and display it in a div. When the string arrives I will $().animate the div up.
I need to show the div every X seconds and it needs to display for Y seconds.
If the div is currently displaying when I get another message from the php script I want to ignore it if it is the same message, but if it is a new message I need to update the div with the new message and likely replace all the setTimeout() and setInterval() functions with a new X and Y.
Currently, I just $().animate the div and then setTimeout(Y) to hide the div. I just get confused trying to work in the setInterval(X) function to show the div every X seconds.