회원가입 | 고객센터 |
사진 작가 님의 모임 홈 페이지
데이트24시
로그인 회원가입
고객센터

시계자료

d daet24
2026.07.14 16:12 2 0
<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red">
<p><!-- 네온 시계 스타일 및 레이아웃 -->
<div style="background: #1e1e24; padding: 15px; border-radius: 8px; display: inline-block; text-align: center; box-shadow: 0 4px 10px rgba(0,0,0,0.3);">
    <div id="digital-clock" style="font-family: 'Courier New', Courier, monospace; font-size: 32px; color: #00ffcc; font-weight: bold; letter-spacing: 2px;">00:00:00</div>
    <div id="digital-date" style="font-size: 12px; color: #888; margin-top: 5px;">2026-00-00</div>
</div>

<script>
function startDigitalClock() {
    const clockTarget = document.getElementById("digital-clock");
    const dateTarget = document.getElementById("digital-date");
    
    setInterval(() => {
        const now = new Date();
        
        // 시간 계산
        const hours = String(now.getHours()).padStart(2, '0');
        const minutes = String(now.getMinutes()).padStart(2, '0');
        const seconds = String(now.getSeconds()).padStart(2, '0');
        clockTarget.innerText = `${hours}:${minutes}:${seconds}`;
        
        // 날짜 계산
        const year = now.getFullYear();
        const month = String(now.getMonth() + 1).padStart(2, '0');
        const date = String(now.getDate()).padStart(2, '0');
        const week = ['일', '월', '화', '수', '목', '금', '토'][now.getDay()];
        dateTarget.innerText = `${year}-${month}-${date} (${week})`;
    }, 1000);
}
window.addEventListener('DOMContentLoaded', startDigitalClock);
</script>

댓글0

로그인 후 댓글을 작성할 수 있습니다.
15
전체 회원
131
전체 게시글
17
전체 댓글
276
오늘 방문
378
전체 방문
3
현재 접속
인기글 7일 이내
최신글
최신댓글
목록