function sleep(msecs) {
var start = new Date().getTime();
var cur = start;
while(cur-start < msecs) {
cur = new Date().getTime();
}
}
setTimeout("슬립후 호출될 함수명", 슬립시간);
function sleep(msecs) {
var start = new Date().getTime();
var cur = start;
while(cur-start < msecs) {
cur = new Date().getTime();
}
}
setTimeout("슬립후 호출될 함수명", 슬립시간);