2011-02-25 3 views

답변

1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> 
<html> 
<head> 
<title>Enable close button after 15 sec</title> 
<script type="text/javascript"> 
window.onload = function(){ 
    setTimeout(function(){ 
     document.getElementById('close-button').style.display = 'inline'; 
    }, 15000); 
} 
</script> 
</head> 
<body> 
<input type="button" value="Close" name="close-button" id="close-button" style="display:none;" /> 
</body> 

</html> 
+0

BTW, xxx.hta로 파일을 복사, 붙여 넣기 및 저장 한 다음 실행하십시오. – ahgood