Extra Form
http://elkha.kr/xe/graystyle2
위 페이지에서 preview 항목에서 design 중, 
type1~5까지 누르면 쿠키까지 구워지면서 스타일시트가 변경되는 소스를 알고 싶습니다.

소스 보기
view-source:http://elkha.kr/xe/graystyle2

1. 쿠기로 굽는 것은 요기고
<script type="text/javascript">
(function($){
$.cookie = function(key, value, options) {
if(arguments.length > 1) {
var o = $.extend({}, $.cookieOptions, options);
if (value === null || value === undefined) {
value = '';
o.expires = -1;
}
if (o.expires.constructor != Date) {
var today = new Date();
today.setDate(today.getDate() + o.expires);
o.expires = today;
}
// Create the cookie string
document.cookie =
key + '=' + value +
'; expires=' + o.expires.toUTCString() +
(o.path? '; path=' + (o.path) : '') +
(o.domain? '; domain=' + (o.domain) : '') +
(o.secure? '; secure' : '');
} else {
if(result = new RegExp(key+"=(.*?)(?:;|$)").exec(document.cookie))
return decodeURIComponent(result[1]);
return false;
}
};
$.cookieOptions = {
expires: 365,
path: '/'
}
})(jQuery);
</script>

2. 구동되는 부분은 요기입니다.
<dt>Design (5)</dt>
<dd class="design">
<span class="button small"><button type="button" title="default">Type 1</button></span>
</dd>
<dd class="design">
<span class="button small"><button type="button" title="t2">Type 2</button></span>
</dd>
<dd class="design">
<span class="button small"><button type="button" title="t3">Type 3</button></span>
</dd>
<dd class="design">
<span class="button small"><button type="button" title="t4">Type 4</button></span>
</dd>
<dd class="design">
<span class="button small"><button type="button" title="t5">Type 5</button></span>
</dd>

3. 그럼 나머지 title에 해당하는 default, t2, t3~5 이건 어디에서 찾아볼 수 있나요?
위 코드에서 type1~5에 해당하는 스타일시트를 불러오는 방법을 모르겠네요. 
코드가 복잡해 어렵겠지만 꼭 좀 알고 싶습니다. ^^;;

추가시작추가끝


질문•답변

상품문의, 포인트관련 문의는 멤버십 지원게시판에 작성해주세요. (프로젝트>기술지원)

  1. 공지사항 notice

    본 게시판의 용도

    Date2024년 06월 11일 Category기타
    read more
  2. Read More
  3. XE 1.0.5 에서 zb4의 문서가 마이그레이션 되나요?

    Date2008년 07월 25일 CategoryXE
    Read More
  4. Read More
  5. 일단 사용소감은 지금 컬러셋중에 맨아래에 있는 크래프트 컬러셋을 적용시켜보니까 바탕화면을 등록시키지 않아도 너무 예쁘고 마음에 들어요. 업데이트 할때마다 점점 더 끌리게 만드시네요. ^^ 그리고 한가지 오류를 발견했는데요. 크래프트 컬러셋으로 설...

    XE 마이노트 1.4.4 사용후기&질문&건의사항.

    Date2013년 02월 20일 CategoryXE
    Read More
  6. http://elkha.kr/xe/graystyle2 위 페이지에서 preview 항목에서 design 중, type1~5까지 누르면 쿠키까지 구워지면서 스타일시트가 변경되는 소스를 알고 싶습니다. 소스 보기 view-source:http://elkha.kr/xe/graystyle2 1. 쿠기로 굽는 것은 요기고 <script...

    XE 여러개의 css를 불러와 쿠키까지 구워주기

    Date2013년 02월 22일 CategoryXE
    Read More
  7. XE XE에 ScribeFire로 blogapi 기능 작동 하나요?

    Date2013년 02월 22일 CategoryXE
    Read More
  8. XE 시계 질문이랑 기타질문[추가]

    Date2013년 02월 22일 CategoryXE
    Read More
  9. XE 문의드려요~~

    Date2013년 03월 15일 CategoryXE
    Read More
  10. Read More
  11. XE 안녕하세요~~~~

    Date2013년 03월 25일 CategoryXE
    Read More
  12. XE 테스트 요청하신거 답변요..

    Date2013년 04월 04일 CategoryXE
    Read More
  13. 비밀글입니다.

    XE 플래서 컬러셋 문의드립니다

    Date2013년 04월 15일 CategoryXE
    Read More
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 14 Next
/ 14
닫기

마이페이지

로그인을 해주세요

네이버로 로그인