각종 팁&정보를 나누는 곳입니다.
누군가에게 도움이 된다 싶으시면 언제라도 포스팅 :)
글 등록하기 | 내글 관리하기 | 연재글 | 보관함
이온디
첨부파일 https://imweb.eond.com/webtip/218446

ncloudblog님의 스킨입니다. 날짜 부분이 보시다시피 다른 스킨과 다른 부분이 있는데요,
이 부분을 나타내는 방법에 대해서 알려드리겠습니다.

재료는 ncloudblog님의 simple.js 파일이 필요하고요,
티스토리에 simple.js 파일을 ./images/ 폴더 안에 넣어두시고,
skin.html 파일에서 아래 코드를 삽입합니다.

<script language="javascript" src="/images/simple.js"></script>

그리고 위와 같이 날짜를 나타내고자 하는 부분에 다음을 추가시켜줍니다.

<script type="text/javascript">write_calender("[##_article_rep_date_##]");</script>

스타일은 적당히 <div style="원하는 스타일">..</div>로 감싸고 만드시면 되겠네요.

simple.js
참고로 제가 사용한 class는 다음과 같습니다.

    .entry .calendar { float:left; width:42px; height:46px; background:url(./images/entry_calendar.gif) no-repeat 2px 1px;  }
    .entry .calendar .content_title_calender_month { color:#f0f0f0; font:9px Tahoma; margin-top:4px; text-align:center; width:35px;}
    .entry .calendar .content_title_calender_day   { color:#b9b7b7; font:bold 14px Tahoma; margin-top:4px; text-align:center; width:35px; }

content_title_calender_month과 content_title_calender_day는 simple.js 에 정의되어 있어서 이렇게 한 것인데
simple.js에서 class명을 수정하면 css에서도 수정해서 써주셔야 됩니다.
코멘트 1
접기/펴기 | 댓글 새로고침
  • Grace*
    꼭 필요했었는데^^ 감사합니다
    오후 07:14
    댓글
    수정
    삭제
 
 
Total 683 articles in 50 / 57 pages
번호 제목 제목 조회 수 날짜날짜
95 [MySQL] Mysql Join 해부(Left, Right, Outer, Inner Join) 154 2018/01/03
94 [리눅스서버] Ubuntu 16.04 | root 계정으로 로그인하기, root 계정으로 ssh 접속하기 91 2018/03/21
93 [리눅스서버] Ubuntu php7.0-fpm 세팅 중 오류 76 2018/03/25
92 [리눅스서버] mysql strict mode 끄기 888 2018/03/29
91 nginx https redirect www to non-www 231 2018/04/04
90 [Nginx] nginx-redirects-http-to-https-and-www-to-non-www 79 2018/04/21
89 [Nginx] https가 아닐 경우 https로 리다이렉트하는 방법 파일 170 2018/04/25
88 [Nginx] [Nginx] Rewriterule 서브 도메인 입력시 하위 디렉토리로 이동하기 501 2018/05/15
87 [MySQL] MySQL 사용자 테이블 생성 및 연결하기 93 2018/06/24
86 [기타] 비밀글 G Suite - 0 2018/07/26
85 [리눅스서버] ./configure : /bin/sh^M : bad interpreter [duplicate] 파일 145 2018/07/29
84 [리눅스서버] [쉘스크립트] 새로운 데이터베이스 테이블 생성 및 유저 연결 쉘스크립트 568 2018/07/29

해시태그 디렉터리