본문 바로가기

카테고리 없음

자바스크립트 타이머, 스타일시트를 이용하여 지정된 시간 경과후 내용 보여주기


<SCRIPT language=javascript>

setTimeout("hello()", 4000);

function hello(){
   document.getElementById("answer").style.visibility="visible";
}

</SCRIPT>

<DIV id=answer style="VISIBILITY: hidden"><FONT color=red>
<H1>Hello World</H1></FONT></DIV><br /><br />