Menu

 

 

 

<html>

<head>
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<title>삶의향기</title>
<meta name="generator" content="Namo WebEditor v5.0">
<script language="JavaScript">
<!--
var timerID = null;
var timerRunning = false;
function startclock () {
stopclock();
time();
}
function stopclock () {
if(timerRunning)
clearTimeout(timerID);
timerRunning = false;
}
function time () {
var now = new Date();
var yr = now.getYear();
var mName = now.getMonth() + 1;
var dName = now.getDay() + 1;
var dayNr = ((now.getDate()<10) ? "0" : "")+ now.getDate();
var ampm = (now.getHours() >= 12) ? " P.M." : " A.M."
var hours = now.getHours();
hours = ((hours > 12) ? hours - 12 : hours);
var minutes = ((now.getMinutes() < 10) ? ":0" : ":") + now.getMinutes();
var seconds = ((now.getSeconds() < 10) ? ":0" : ":") + now.getSeconds();
if(dName==1) Day = "Sunday";
if(dName==2) Day = "Monday";
if(dName==3) Day = "Tuesday";
if(dName==4) Day = "Wednesday";
if(dName==5) Day = "Thursday";
if(dName==6) Day = "Friday";
if(dName==7) Day = "Saturday";
if(mName==1) Month="January";
if(mName==2) Month="February";
if(mName==3) Month="March";
if(mName==4) Month="April";
if(mName==5) Month="May";
if(mName==6) Month="June";
if(mName==7) Month="July";
if(mName==8) Month="August";
if(mName==9) Month="September";
if(mName==10) Month="October";
if(mName==11) Month="November";
if(mName==12) Month="December";


var DayDateTime=(" "+Day +" "+Month+" "+dayNr+", "+yr+" "+hours+minutes+seconds+" "+ampm);
window.status=DayDateTime;
timerID = setTimeout("time()",1000);
timerRunning = true;
}
function clearStatus() {
if(timerRunning)
clearTimeout(timerID);
timerRunning = false;
window.status=" ";
}
-->
</script>

</head>

<body onLoad="startclock ();" >

<p align="center">&nbsp;</p>
<table align="center" border="1" cellspacing="0" width="319" bordercolordark="white" bordercolorlight="black">
    <tr>
        <td width="313">
            <p><img src="file:///C|/Documents%20and%20Settings/세실리아/바탕%20화면/백업파일/java%20Tip/imge/5.jpg" width="320" height="232" border="0"></p>
        </td>
    </tr>
</table>
<p align="center"><input type=button name=bt_s value="소스보기" onClick='window.location="view-source:"+window.location.href'>
</body>

</html>


'Javascript' 카테고리의 다른 글

풀 스크린  (0) 2016.05.30
두개의 팝업창을 동시에 띄우려면  (0) 2016.05.30
페이지 인쇄 못하게 하기  (0) 2016.05.30
방문 할때마다 메인이 바뀌게 하자  (0) 2016.05.30
지정 경로로 되돌아가기  (0) 2016.05.30