hi
i try to do a virtual chat..
and i want to do a sleep func before that i accept answer..
how i can do sleep func in javascript...
I try to do SetTimeout.. but when appear the status message, the message of virtual chat appear without wait..
this is what i do..
function ContactingOn(){
$("#statusLabel").html("<div id='typing'>adi type..</div>");
setTimeout("$("#statusLabel").html("");", 3000); //delete "adi type..."after 3 second
//i need that to be a sleep of 3 sec
addLineAgent("mkasdmlasdmasdkl"); //func that add string to frame
$("#statusLabel").html("<div id='typing'>adi type..</div>");
setTimeout("$("#statusLabel").html("");", 3000); //delete "adi type..."after 3 second
Bookmarks