window.onload=function(){showBox();setTimeout("closeBox()",5000)} function showBox(o){ if (o==undefined) o=document.getElementById("rbbox"); o.style.height=o.clientHeight+2+"px"; if (o.clientHeight<200) setTimeout(function(){showBox(o)},5); } function closeBox(){document.getElementById("rbbox").style.display="none";} [Ctrl+A 선택:引入外部Js需再刷新一下页面才能执行]