웹팁 분류
디지털 시계 자바스크립트
작성자 정보
- GW 작성
- 작성일
컨텐츠 정보
- 5,331 조회
- 목록
본문
실시간 디지털 시계 위젯
실시간 디지털 시계 자바스크립트
요일이라는 글자를 없애고 싶으면
<span>요일</span> 부분을 <span></span> 으로 바꾸면 되고...
폰트 중에서 0과 1의 가로간격이 다른 폰트는 시계 자체가 들썩거리니 이 점만 주의하면 될 듯 합니다. 나머지는 본인이 원하는 css로
코드 내용 출처:그누보드 비타주리님
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | <script> weekKr = "일월화수목금토"; document.write("<table id=todayTable><tr><td id=todayHead></td></tr><tr><td id=todayTail></td></tr></table>"); function todayMode() { todayTime = new Date(); todayHead.innerText = String(todayTime).split(" ")[4]; currentYear = todayTime.getFullYear() + "."; currentMonth = ("0" + (todayTime.getMonth() + 1)).slice(-2) + "."; currentDay = ("0" + todayTime.getDate()).slice(-2) + "."; currentWeek = weekKr[todayTime.getDay()] + "<span>요일</span>"; todayTail.innerHTML = currentYear + currentMonth + currentDay + currentWeek; } todayMode(); setInterval(todayMode, 1000); </script> | cs |
위 코드 적용 미리보기
아재감성 아재공간 다온네
-홈페이지,홈페이지꾸미기,홈페이지위젯,위젯,시계위젯,플레쉬,플레쉬위젯,플레쉬시계,html-
-
등록일 11.02
-
등록일 12.30
-
등록일 11.15
-
등록일 01.08
-
등록일 02.05
-
등록일 10.31
-
등록일 11.02
-
등록일 10.30
-
등록일 12.05
-
등록일 10.30
-
등록일 01.07
-
등록일 11.18
-
등록일 11.08
-
등록일 12.13
-
등록일 01.07
-
등록일 02.03
-
등록일 12.23
-
등록일 12.13
-
등록일 12.12
-
등록일 01.08
-
등록일 01.04
-
등록일 11.08
추천 업체
아재 음악
신나는 아재음악 스트리트 파이어 1984년
80년대 디스코 헬로우 미스터 몽키Arabesque - Hello Mr. Monkey 1981년Hello, hello Mister MonkeyY…
관련자료
댓글 0
등록된 댓글이 없습니다.