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

추가시작추가끝


질문•답변

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

List of Articles
번호 분류 제목 날짜
공지사항 기타 본 게시판의 용도 2024.06.11
46 기타 [최근게시물] 유투브 출력 위젯을 구매했는데 위젯 다운은 어디서 받나요? secret 2023.03.22
45 XE [라이믹스/XE] Error #0 "Call to a member function getFafazboardImageAndVideoExistsInfo() on null" in modules/board/skins/fafaz_board_skin/template/table.html on line 83 1 2024.06.11
44 XE [가입인사]안녕하세요? 낙훈님 스킨 잘쓰고 있습니다..^^ 1 2007.09.11
43 [가입인사]안녕하세요 .^^ 1 2009.12.01
42 PHP [phpstorm] safe mode, limited functionallity. trust the project to access full ide functionallity. file 2024.01.15
41 XE [EOND] 스케치북 기반 유튜브 스킨 설치 후 설정부분에서.. 3 secret 2023.03.20
40 XE xe자동게시물폭파 기능 있나요? 2021.08.29
39 XE XE에 ScribeFire로 blogapi 기능 작동 하나요? 1 1 2013.02.22
38 XE XE게시판 리스트 1차 카테고리 선택시 2차 카테고리 출력 2022.01.02
37 XE XEtown에 있는 지금 이 순간 구현하는 방법.. 2020.05.02
36 XE XEDTION 파스텔 게시판 설정 중 분류에 대해 문의드립니다. 3 secret 2023.11.06
35 XE XEDITION 파스텔 게시판 설정에 대해 문의드립니다. 7 file 2022.12.24
Board Pagination Prev 1 ... 9 10 11 12 13 14 15 16 17 18 Next
/ 18
닫기

마이페이지

로그인을 해주세요

네이버로 로그인