function - Javascript: Fade in and out -
I have this PHP based Doctor (chatbox) where you can type your message and send it.
Now, I have this fade animation where a message comes when sending a message. It looks like:
Javascript:
function stateChanged1 () {if (xmlHttp1.readyState == 4) {document.getElementById ("Sent"). InnerHTML = "Sent!"; Document.writeform.message.value = ""; Chat (); }}
In Body:
Then the problem is that it does not disappear, what do I add to the code and where?
add
& lt; Script type = "text / javascript" src = "http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" & gt; & Lt; / Script & gt;
on your HTML and add this JavaScript code:
$ ("#send"). FadeOut ("slow");
after this line:
document.getElementById ("Sent"). InnerHTML = "Sent!";
Comments
Post a Comment