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. No Image notice by 이온디 2024/06/11 in 기타

    본 게시판의 용도

  2. No Image 24Feb
    by xe워드프레스제작중
    2018/02/24 in XE
    Replies 3

    오픈대화방에 대화명 xe게시판입니다. 질문드립니다.

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

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

  4. No Image 04Sep
    by 넥스
    2021/09/04 in XE
    Replies 1

    애드온에서 글쓸때작성하는스킨값의 value값을 가져올 방법이 있을까요.

  5. No Image 28Dec
    by 그리세나
    2017/12/28 in XE
    Replies 4

    애드온> 비회원 댓글 열람 차단 작동불가와 관련하여

  6. No Image 04Sep
    by 넥스
    2021/09/04 in XE
    Replies 1

    애드온 관리자인 경우에만

  7. No Image 19Oct
    by 현님v
    2022/10/19 in XE
    Replies 1

    애드센스 위젯 문의드립니다.

  8. No Image 25Mar
    by DjK1LLeR
    2013/03/25 in XE
    Replies 1

    안녕하세요~~~~

  9. No Image 27Oct
    by 라우신
    2020/10/27 in XE
    Replies 2

    안녕하세요.

  10. No Image 16Apr
    by 길거리예술가
    2013/04/16 in XE
    Replies 5

    안녕 하세요~

  11. No Image 30Jan
    by 쪼이
    2015/01/30 in XE
    Replies 3

    아이콘 이미지 깨짐 문의

  12. No Image 22Feb
    by 꼬마마법사
    2013/02/22 in XE
    Replies 4

    시계 질문이랑 기타질문[추가]

  13. No Image 06Sep
    by 넥스
    2021/09/06 in XE
    Replies 1

    스팸글 등록시 한꺼번에 삭제하는 방법

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

마이페이지

로그인을 해주세요

네이버로 로그인