1

주제: [질문] 선택된 메뉴에 대한 처리

안녕하세요. 텍스트큐브 스킨을 처음으로 제작하다가, 궁금한 점이 있어 질문을 올립니다.

("메뉴 AND 선택"로 검색을 했는데 방법이 잘못되었는지 찾는 답이 나오지 않더군요. ^^;)


텍스트큐브 상단에 메뉴부분이 있고, 이 메뉴 부분에서 "현재 선택된 메뉴"를 찾아서 이미지를 바꿔준다거나 따로 표시를 해주는 방법이 있는지

궁금합니다.

매뉴얼에 링크된 스킨제작 레퍼런스인 http://plyfly.net/Docs/TextcubeSkinManual/ 의 치환자 부분이나, 스킨 태그 정리 부분을 보아도

해당 부분을 찾기는 어렵습니다.


하지만, J.Parker님의 블로그( http://create74.com/ )처럼, 몇몇 블로그에서는 현재 선택된 메뉴가 다르게 표시되더군요.

방법을 아시는 분이 있으시면 알려주시기를 부탁드립니다. smile

2

답글: [질문] 선택된 메뉴에 대한 처리

body-id 기능을 이용하시면 됩니다. J.Parker님 블로그의 style.css 를 보시면 다음 부분을 보실수 있습니다. 이점 참고해보시면 될것 같습니다.

/* Current menu */
#tt-body-pages        #header .a.t_home,
#tt-body-pages        #header a.t_home,
#tt-body-cover        #header a.t_cover,
#tt-body-notice        #header a.t_notice,
#tt-body-page        #header a.t_notice,
#tt-body-entry        #header a.t_home,
#tt-body-category    #header a.t_home,
#tt-body-tag        #header a.t_tag,
#tt-body-search        #header a.t_home,
#tt-body-archive    #header a.t_home,
#tt-body-location    #header a.t_location,
#tt-body-keylog        #header a.t_keylog,
#tt-body-guestbook    #header a.t_guestbook {
    color: #05aabb;
}

3

답글: [질문] 선택된 메뉴에 대한 처리

JParker님께 문의하였더니, 친절하게 답을 알려주셨습니다. ^^;

body에 [##_body_id_##] 를 주는 것이 더군요.

<body id="[##_body_id_##]"> 를 주고, 선택된 메뉴마다 id 값이 바뀌면 lunamoth님께서 알려주신 것과 같이 menu별로 스타일을 별개로 줄 수 있음을 확인하였습니다. ^^


저같은 경우에는 메뉴를 카테고리로 주었는데, 그러한 경우에는 설정에서 지정한 분류의 body id 값으로 치환되어 나와서 쉽게 진행할 수 있었습니다.

도움을 주신 JParker님, lunamoth님 감사합니다. (_ _)

reserve (2009-06-11 11:24:11)에 의해 마지막으로 수정

4

답글: [질문] 선택된 메뉴에 대한 처리

lunamoth 작성:

body-id 기능을 이용하시면 됩니다. J.Parker님 블로그의 style.css 를 보시면 다음 부분을 보실수 있습니다. 이점 참고해보시면 될것 같습니다.

/* Current menu */
#tt-body-pages        #header .a.t_home,
#tt-body-pages        #header a.t_home,
#tt-body-cover        #header a.t_cover,
#tt-body-notice        #header a.t_notice,
#tt-body-page        #header a.t_notice,
#tt-body-entry        #header a.t_home,
#tt-body-category    #header a.t_home,
#tt-body-tag        #header a.t_tag,
#tt-body-search        #header a.t_home,
#tt-body-archive    #header a.t_home,
#tt-body-location    #header a.t_location,
#tt-body-keylog        #header a.t_keylog,
#tt-body-guestbook    #header a.t_guestbook {
    color: #05aabb;
}

textcube.com 2.0 에서는 ##_body_id_## 가 치환이 안되는 것 같습니다.
어찌해야 할까요?

5

답글: [질문] 선택된 메뉴에 대한 처리

YONG 작성:
lunamoth 작성:

body-id 기능을 이용하시면 됩니다. J.Parker님 블로그의 style.css 를 보시면 다음 부분을 보실수 있습니다. 이점 참고해보시면 될것 같습니다.

/* Current menu */
#tt-body-pages        #header .a.t_home,
#tt-body-pages        #header a.t_home,
#tt-body-cover        #header a.t_cover,
#tt-body-notice        #header a.t_notice,
#tt-body-page        #header a.t_notice,
#tt-body-entry        #header a.t_home,
#tt-body-category    #header a.t_home,
#tt-body-tag        #header a.t_tag,
#tt-body-search        #header a.t_home,
#tt-body-archive    #header a.t_home,
#tt-body-location    #header a.t_location,
#tt-body-keylog        #header a.t_keylog,
#tt-body-guestbook    #header a.t_guestbook {
    color: #05aabb;
}

textcube.com 2.0 에서는 ##_body_id_## 가 치환이 안되는 것 같습니다.
어찌해야 할까요?

YONG 작성:
lunamoth 작성:

body-id 기능을 이용하시면 됩니다. J.Parker님 블로그의 style.css 를 보시면 다음 부분을 보실수 있습니다. 이점 참고해보시면 될것 같습니다.

/* Current menu */
#tt-body-pages        #header .a.t_home,
#tt-body-pages        #header a.t_home,
#tt-body-cover        #header a.t_cover,
#tt-body-notice        #header a.t_notice,
#tt-body-page        #header a.t_notice,
#tt-body-entry        #header a.t_home,
#tt-body-category    #header a.t_home,
#tt-body-tag        #header a.t_tag,
#tt-body-search        #header a.t_home,
#tt-body-archive    #header a.t_home,
#tt-body-location    #header a.t_location,
#tt-body-keylog        #header a.t_keylog,
#tt-body-guestbook    #header a.t_guestbook {
    color: #05aabb;
}

textcube.com 2.0 에서는 ##_body_id_## 가 치환이 안되는 것 같습니다.
어찌해야 할까요?

YONG 작성:
lunamoth 작성:

body-id 기능을 이용하시면 됩니다. J.Parker님 블로그의 style.css 를 보시면 다음 부분을 보실수 있습니다. 이점 참고해보시면 될것 같습니다.

/* Current menu */
#tt-body-pages        #header .a.t_home,
#tt-body-pages        #header a.t_home,
#tt-body-cover        #header a.t_cover,
#tt-body-notice        #header a.t_notice,
#tt-body-page        #header a.t_notice,
#tt-body-entry        #header a.t_home,
#tt-body-category    #header a.t_home,
#tt-body-tag        #header a.t_tag,
#tt-body-search        #header a.t_home,
#tt-body-archive    #header a.t_home,
#tt-body-location    #header a.t_location,
#tt-body-keylog        #header a.t_keylog,
#tt-body-guestbook    #header a.t_guestbook {
    color: #05aabb;
}

textcube.com 2.0 에서는 ##_body_id_## 가 치환이 안되는 것 같습니다.
어찌해야 할까요?

텍스트 큐브 닷컴은 구글 소유의 다른 서비스입니다. 해당 관련 사이트에 직접 문의 하시는 것이 빠를듯 싶습니다. 참고로 텍스트 큐브 닷컴은 아직 바디 아이디를 서비스 하지 않습니다.

어디에 기대고 싶은 사람, 한숨 나오는 하루를 보낸 사람,  혼자서 울고 싶은 사람......

그런 사람들의 마음속에 밤하늘의 하얀별처럼 저 하얀별이 밝켜주겠습니다.