1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
 <HEAD>
  <TITLE> New Document </TITLE>
 
  <script language="javascript">
    function now(){
        var date =new Date();
        var str = "현재 시간 :";
        str += date.getHours()+"시 "+date.getMinutes()+"분 "+date.getSeconds()+"초 ";
        document.getElementById("clock").innerHTML = str;
        }
  </script>
 </HEAD>
 
 <BODY onload="setInterval(now,1000)">
 <span id = "clock"></span>
  
 </BODY>
</HTML>
 
http://colorscripter.com/info#e" target="_blank" style="color:#4f4f4f; text-decoration:none">Colored by Color Scripter
 

 

'HTML & CSS & JAVASCRIPT' 카테고리의 다른 글

JAVASCRIPT 예제_오른쪽마우스 막기, 스크롤 금지  (0) 2019.06.20
JAVASCRIPT 예제_바뀌는 이미지  (0) 2019.06.20
JAVASCRIPT  (0) 2019.06.20
CSS  (0) 2019.06.20
HTML  (0) 2019.06.20

+ Recent posts