시계를 홈페이지에 달고 싶습니다. 어떻게 해야 하나요? 정보
시계를 홈페이지에 달고 싶습니다. 어떻게 해야 하나요?본문
여기서 나오는 것처럼 시계를 홈페이지에 달고 싶습니다. 어떻게 해야 하나요?
댓글 전체
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body onLoad="KW_doClock();">
<SCRIPT language=JavaScript>
// Kaosweaver Live Clock Start
function class_clock(f,s,c,b,w,h,d) { // Copyright 2002 by Kaosweaver, All rights reserved
this.b=b;this.w=w;this.h=h;this.d=d;
this.o='<font style="color:'+c+'; font-family:'+f+'; font-size:'+s+'pt;">';
}
var clock=new class_clock("돋움","9","#000000","","70",1,1)
d=document
if (d.all || d.getElementById) {d.write('<span id="activeClock" style="width:'+clock.w+'px; background-color:'+clock.b+'"></span>'); }
else if (d.layers) {d.write('<ilayer bgcolor="'+clock.b+'" id="wrapClock"><layer width="'+clock.w+'" id="activeClock"></layer></ilayer>'); }
else {KW_doClock(1);}
function KW_doClock(a) { // Copyright 2002 by Kaosweaver, All rights reserved
d=document;t=new Date();p="";dClock=""; if (d.layers) d.wrapClock.visibility="show";
h=t.getHours();m=t.getMinutes();s=t.getSeconds();if (clock.h)
{p=(h>12)?"오후":"오전";h=(h>11)?h-12:h;h=(h==0)?12:h;}if (clock.d)
{m=(m<=9)?"0"+m:m; s=(s<=9)?"0"+s:s;} dClock = clock.o +p+ +h+':'+m+':'+s+'</font>';
if (a) {d.write(dClock);}if (d.layers) {wc = document.wrapClock;lc = wc.document.activeClock;
lc.document.write(dClock);lc.document.close();
} else if (d.all) { activeClock.innerHTML = dClock;
} else if (d.getElementById) {d.getElementById("activeClock").innerHTML = dClock;}
if (!a) setTimeout("KW_doClock()",1000);
}
// Kaosweaver Live Clock End
</script>
</body>
</html>
시간만 출력하실 경우에는 위 소스를 그누경로에 저장한 다음 나타내고 싶은 위치에 iframe으로 불러오세요.
사용예:
<iframe frameborder='0' height='11' width='70' marginheight='0' marginwidth='0' scrolling='no' src="./skin/time/time.html"></iframe>
##################################################
날짜까지 함께 출력하실 경우에는
나타내고 싶은 위치에 다음과 같이 넣어주세요.
<SCRIPT language=JavaScript>
<!--
var today = new Date();
var year = today.getYear();
if (year < 2000) year+=1900;
var month = today.getMonth();
var date = today.getDate();
-->
</SCRIPT>
<SCRIPT language=JavaScript>
document.write(""+year+ "년 " + (month+1) + "월 " + date + "일");
//현재 날짜를 표시하는 스크립트 -->
</SCRIPT>
<SCRIPT language=JavaScript>
<!--
var today = new Date();
var day = today.getDay();
var week;
if (day == 0) week = "주일" ;
if (day == 1) week = "월요일" ;
if (day == 2) week = "화요일" ;
if (day == 3) week = "수요일" ;
if (day == 4) week = "목요일" ;
if (day == 5) week = "금요일" ;
if (day == 6) week = "토요일" ;
document.write(""+week +"");
//현재 요일을 표시하는 스크립트 -->
</SCRIPT>
<iframe frameborder='0' height='11' width='70' marginheight='0' marginwidth='0' scrolling='no' src="./skin/time/time.html"></iframe>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body onLoad="KW_doClock();">
<SCRIPT language=JavaScript>
// Kaosweaver Live Clock Start
function class_clock(f,s,c,b,w,h,d) { // Copyright 2002 by Kaosweaver, All rights reserved
this.b=b;this.w=w;this.h=h;this.d=d;
this.o='<font style="color:'+c+'; font-family:'+f+'; font-size:'+s+'pt;">';
}
var clock=new class_clock("돋움","9","#000000","","70",1,1)
d=document
if (d.all || d.getElementById) {d.write('<span id="activeClock" style="width:'+clock.w+'px; background-color:'+clock.b+'"></span>'); }
else if (d.layers) {d.write('<ilayer bgcolor="'+clock.b+'" id="wrapClock"><layer width="'+clock.w+'" id="activeClock"></layer></ilayer>'); }
else {KW_doClock(1);}
function KW_doClock(a) { // Copyright 2002 by Kaosweaver, All rights reserved
d=document;t=new Date();p="";dClock=""; if (d.layers) d.wrapClock.visibility="show";
h=t.getHours();m=t.getMinutes();s=t.getSeconds();if (clock.h)
{p=(h>12)?"오후":"오전";h=(h>11)?h-12:h;h=(h==0)?12:h;}if (clock.d)
{m=(m<=9)?"0"+m:m; s=(s<=9)?"0"+s:s;} dClock = clock.o +p+ +h+':'+m+':'+s+'</font>';
if (a) {d.write(dClock);}if (d.layers) {wc = document.wrapClock;lc = wc.document.activeClock;
lc.document.write(dClock);lc.document.close();
} else if (d.all) { activeClock.innerHTML = dClock;
} else if (d.getElementById) {d.getElementById("activeClock").innerHTML = dClock;}
if (!a) setTimeout("KW_doClock()",1000);
}
// Kaosweaver Live Clock End
</script>
</body>
</html>
시간만 출력하실 경우에는 위 소스를 그누경로에 저장한 다음 나타내고 싶은 위치에 iframe으로 불러오세요.
사용예:
<iframe frameborder='0' height='11' width='70' marginheight='0' marginwidth='0' scrolling='no' src="./skin/time/time.html"></iframe>
##################################################
날짜까지 함께 출력하실 경우에는
나타내고 싶은 위치에 다음과 같이 넣어주세요.
<SCRIPT language=JavaScript>
<!--
var today = new Date();
var year = today.getYear();
if (year < 2000) year+=1900;
var month = today.getMonth();
var date = today.getDate();
-->
</SCRIPT>
<SCRIPT language=JavaScript>
document.write(""+year+ "년 " + (month+1) + "월 " + date + "일");
//현재 날짜를 표시하는 스크립트 -->
</SCRIPT>
<SCRIPT language=JavaScript>
<!--
var today = new Date();
var day = today.getDay();
var week;
if (day == 0) week = "주일" ;
if (day == 1) week = "월요일" ;
if (day == 2) week = "화요일" ;
if (day == 3) week = "수요일" ;
if (day == 4) week = "목요일" ;
if (day == 5) week = "금요일" ;
if (day == 6) week = "토요일" ;
document.write(""+week +"");
//현재 요일을 표시하는 스크립트 -->
</SCRIPT>
<iframe frameborder='0' height='11' width='70' marginheight='0' marginwidth='0' scrolling='no' src="./skin/time/time.html"></iframe>
정말감사합니다.
밑에 처럼 소스를 만드니까...
2006년 6월 18일 주일 <- 엄청 크게나옴
오전8:05:25 <- 작게나옴
수연아빠님... ㅜㅜ
이렇게 나오는데 어떻게 해야되요?
완전 초보라........ㅡ.ㅡ
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body onLoad="KW_doClock();">
<SCRIPT language=JavaScript>
<!--
var today = new Date();
var year = today.getYear();
if (year < 2000) year+=1900;
var month = today.getMonth();
var date = today.getDate();
-->
</SCRIPT>
<SCRIPT language=JavaScript>
document.write(""+year+ "년 " + (month+1) + "월 " + date + "일");
//현재 날짜를 표시하는 스크립트 -->
</SCRIPT>
<SCRIPT language=JavaScript>
<!--
var today = new Date();
var day = today.getDay();
var week;
if (day == 0) week = "주일" ;
if (day == 1) week = "월요일" ;
if (day == 2) week = "화요일" ;
if (day == 3) week = "수요일" ;
if (day == 4) week = "목요일" ;
if (day == 5) week = "금요일" ;
if (day == 6) week = "토요일" ;
document.write(""+week +"");
//현재 요일을 표시하는 스크립트 -->
</SCRIPT>
<SCRIPT language=JavaScript>
// Kaosweaver Live Clock Start
function class_clock(f,s,c,b,w,h,d) { // Copyright 2002 by Kaosweaver, All rights reserved
this.b=b;this.w=w;this.h=h;this.d=d;
this.o='<font style="color:'+c+'; font-family:'+f+'; font-size:'+s+'pt;">';
}
var clock=new class_clock("돋움","9","#000000","","70",1,1)
d=document
if (d.all || d.getElementById) {d.write('<span id="activeClock" style="width:'+clock.w+'px; background-color:'+clock.b+'"></span>'); }
else if (d.layers) {d.write('<ilayer bgcolor="'+clock.b+'" id="wrapClock"><layer width="'+clock.w+'" id="activeClock"></layer></ilayer>'); }
else {KW_doClock(1);}
function KW_doClock(a) { // Copyright 2002 by Kaosweaver, All rights reserved
d=document;t=new Date();p="";dClock=""; if (d.layers) d.wrapClock.visibility="show";
h=t.getHours();m=t.getMinutes();s=t.getSeconds();if (clock.h)
{p=(h>12)?"오후":"오전";h=(h>11)?h-12:h;h=(h==0)?12:h;}if (clock.d)
{m=(m<=9)?"0"+m:m; s=(s<=9)?"0"+s:s;} dClock = clock.o +p+ +h+':'+m+':'+s+'</font>';
if (a) {d.write(dClock);}if (d.layers) {wc = document.wrapClock;lc = wc.document.activeClock;
lc.document.write(dClock);lc.document.close();
} else if (d.all) { activeClock.innerHTML = dClock;
} else if (d.getElementById) {d.getElementById("activeClock").innerHTML = dClock;}
if (!a) setTimeout("KW_doClock()",1000);
}
// Kaosweaver Live Clock End
</script>
</body>
</html>
밑에 처럼 소스를 만드니까...
2006년 6월 18일 주일 <- 엄청 크게나옴
오전8:05:25 <- 작게나옴
수연아빠님... ㅜㅜ
이렇게 나오는데 어떻게 해야되요?
완전 초보라........ㅡ.ㅡ
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body onLoad="KW_doClock();">
<SCRIPT language=JavaScript>
<!--
var today = new Date();
var year = today.getYear();
if (year < 2000) year+=1900;
var month = today.getMonth();
var date = today.getDate();
-->
</SCRIPT>
<SCRIPT language=JavaScript>
document.write(""+year+ "년 " + (month+1) + "월 " + date + "일");
//현재 날짜를 표시하는 스크립트 -->
</SCRIPT>
<SCRIPT language=JavaScript>
<!--
var today = new Date();
var day = today.getDay();
var week;
if (day == 0) week = "주일" ;
if (day == 1) week = "월요일" ;
if (day == 2) week = "화요일" ;
if (day == 3) week = "수요일" ;
if (day == 4) week = "목요일" ;
if (day == 5) week = "금요일" ;
if (day == 6) week = "토요일" ;
document.write(""+week +"");
//현재 요일을 표시하는 스크립트 -->
</SCRIPT>
<SCRIPT language=JavaScript>
// Kaosweaver Live Clock Start
function class_clock(f,s,c,b,w,h,d) { // Copyright 2002 by Kaosweaver, All rights reserved
this.b=b;this.w=w;this.h=h;this.d=d;
this.o='<font style="color:'+c+'; font-family:'+f+'; font-size:'+s+'pt;">';
}
var clock=new class_clock("돋움","9","#000000","","70",1,1)
d=document
if (d.all || d.getElementById) {d.write('<span id="activeClock" style="width:'+clock.w+'px; background-color:'+clock.b+'"></span>'); }
else if (d.layers) {d.write('<ilayer bgcolor="'+clock.b+'" id="wrapClock"><layer width="'+clock.w+'" id="activeClock"></layer></ilayer>'); }
else {KW_doClock(1);}
function KW_doClock(a) { // Copyright 2002 by Kaosweaver, All rights reserved
d=document;t=new Date();p="";dClock=""; if (d.layers) d.wrapClock.visibility="show";
h=t.getHours();m=t.getMinutes();s=t.getSeconds();if (clock.h)
{p=(h>12)?"오후":"오전";h=(h>11)?h-12:h;h=(h==0)?12:h;}if (clock.d)
{m=(m<=9)?"0"+m:m; s=(s<=9)?"0"+s:s;} dClock = clock.o +p+ +h+':'+m+':'+s+'</font>';
if (a) {d.write(dClock);}if (d.layers) {wc = document.wrapClock;lc = wc.document.activeClock;
lc.document.write(dClock);lc.document.close();
} else if (d.all) { activeClock.innerHTML = dClock;
} else if (d.getElementById) {d.getElementById("activeClock").innerHTML = dClock;}
if (!a) setTimeout("KW_doClock()",1000);
}
// Kaosweaver Live Clock End
</script>
</body>
</html>
간단하게 이렇게 하세요.
<span style="font-size:9pt;"><font face="돋움">
<SCRIPT language=JavaScript>
document.write(""+year+ "년 " + (month+1) + "월 " + date + "일");
//현재 날짜를 표시하는 스크립트 -->
</SCRIPT>
<SCRIPT language=JavaScript>
<!--
var today = new Date();
var day = today.getDay();
var week;
if (day == 0) week = "주일" ;
if (day == 1) week = "월요일" ;
if (day == 2) week = "화요일" ;
if (day == 3) week = "수요일" ;
if (day == 4) week = "목요일" ;
if (day == 5) week = "금요일" ;
if (day == 6) week = "토요일" ;
document.write(""+week +"");
//현재 요일을 표시하는 스크립트 -->
</SCRIPT>
</font></span>
<span style="font-size:9pt;"><font face="돋움">
<SCRIPT language=JavaScript>
document.write(""+year+ "년 " + (month+1) + "월 " + date + "일");
//현재 날짜를 표시하는 스크립트 -->
</SCRIPT>
<SCRIPT language=JavaScript>
<!--
var today = new Date();
var day = today.getDay();
var week;
if (day == 0) week = "주일" ;
if (day == 1) week = "월요일" ;
if (day == 2) week = "화요일" ;
if (day == 3) week = "수요일" ;
if (day == 4) week = "목요일" ;
if (day == 5) week = "금요일" ;
if (day == 6) week = "토요일" ;
document.write(""+week +"");
//현재 요일을 표시하는 스크립트 -->
</SCRIPT>
</font></span>
정말 감사합니다. 해결됬어요~
축복 많이 받으세요~ 화팅~ ^^ 대한민국~ !!!!!
축복 많이 받으세요~ 화팅~ ^^ 대한민국~ !!!!!