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에 해당하는 스타일시트를 불러오는 방법을 모르겠네요. 
코드가 복잡해 어렵겠지만 꼭 좀 알고 싶습니다. ^^;;

Who's 이온디

profile

라이믹스는 이온디와 함께

추가시작추가끝


질문•답변

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

  1. No Image notice by 이온디 2024/06/11 in 기타

    본 게시판의 용도

  2. No Image 22Feb
    by 이온디
    2013/02/22 in XE

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

  3. No Image 15Mar
    by 라퓨타
    2013/03/15 in XE
    Replies 2

    문의드려요~~

  4. No Image 12Mar
    by 전한련37기
    2021/03/12 in XE
    Replies 3

    비용 입금 문의

  5. No Image 02Nov
    by dls****
    2016/11/02 in XE
    Replies 1

    플래넛컬러셋 적용문제

  6. WIKI 모듈 질문 하나만 더 해봅니다.

  7. No Image 13Jun
    by 소금
    2015/06/13 in XE
    Replies 10

    적용이 안되는데..ㅠㅠ

  8. No Image 26Feb
    by alrin
    2018/02/26 in XE

    이미지숨김 애드온 건의

  9. No Image 25Jul
    by 이온디
    2008/07/25 in XE
    Replies 1

    1.0.5 에서 zb4의 문서가 마이그레이션 되나요?

  10. No Image 11Jun
    by 이온디
    2024/06/11 in XE
    Replies 1

    특정 카테고리만 안 보이는 문제

  11. No Image 19Dec
    by 이온디
    2019/12/19 in XE
    Replies 1

    학습도구 사이트 견적가가 얼마정도 할까요?

  12. No Image 26Feb
    by x****
    2018/02/26 in XE
    Replies 1

    메뉴

  13. No Image 26Dec
    by 이온디
    2021/12/26 in XE
    Replies 1

    일괄비밀글 처리

Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 11 ... 14 Next
/ 14
닫기

마이페이지

로그인을 해주세요

네이버로 로그인