텝메뉴에 쿠키를 적용하고 싶은데 어찌해야할지;

<style>
.po_title{ float:left;}
.life{ padding:10;}
</style>




<script language>
function premier(n) {
for(var i = 1; i < 4; i++) {
obj = document.getElementById('premier'+i);
img = document.getElementById('premier_button'+i);
if ( n == i ) {
obj.style.display = "block";
img.height = 32;
img.src = "./images/tab/tabon"+i+".gif";
} else {
obj.style.display = "none";
img.height = 32;
img.src = "./images/tab/taboff"+i+".gif";
}
}
}
</script>

<div style=" width:326px; height:179px;">
<div style="width:326px; height:32px;overflow:hidden;">
<span class="po_title">
<img src="./images/tab/tab_left.gif" width="123" height="32" />
</span>
<span class="po_title">
<img src="./images/tab/tabon.gif" width=64 height=32 OnClick='premier(1);' OnMouseOver='this.style.cursor="hand";premier(1);' OnMouseOut='this.style.cursor="default"' id='premier_button1'></a>
</span>
<span class="po_title">
<img src="./images/tab/taboff1.gif" width=64 height=32 OnClick='premier(2);' OnMouseOver='this.style.cursor="hand";premier(2);' OnMouseOut='this.style.cursor="default"' id='premier_button2'></a>
</span>
<span class="po_title">
<img src="./images/tab/taboff2.gif" width=64 height=32 OnClick='premier(3);' OnMouseOver='this.style.cursor="hand";premier(3);' OnMouseOut='this.style.cursor="default"' id='premier_button3'></a>
</span>
<span class="po_title">
<img src="./images/tab/tab_right.gif" width="11" height="32" />
</span>
</div>

<div style="width:326px; height:179px; overflow:hidden;background:url(./images/tab/tabbg.gif);">
<span id='premier1' class="life" style='display:none;'><?=latest("best_site", best_01, 1, 37);?></span>

<span id='premier2' class="life" style='display:none;'><?=latest("best_site", best_02, 1, 37);?></span>

<span id='premier3' class="life" style='display:none;'><?=latest("best_site", best_03, 1, 37);?></span>


</div>
</div>

<script>
premier(1);
//괄호안에 숫자를 탭순서로 넣으면 그 탭이 활성화돼 열립니다
</script>
|

댓글 2개

달랑 소스만 보여 주시면,, 좀 그렇죠.

OnClick='premier(3);' 에서. 이벤트가 발생하면, 받는, 함수에서, 쿠키를 만들어내야죠.

function premier( value )
{
쿠기 만들어내는 스크립트..
이참에, 쿠키 검색하고, 공부 하셔서,
완전 자기껄로 만드세요.
쿠키에 대해선, 소스든, 팁이든 널널 하답니다... ^^
}
아 감사합니당^^
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
17년 전 조회 947
17년 전 조회 849
17년 전 조회 1,016
17년 전 조회 1,599
17년 전 조회 955
17년 전 조회 1,079
17년 전 조회 1,116
17년 전 조회 858
17년 전 조회 754
17년 전 조회 800
17년 전 조회 751
17년 전 조회 793
17년 전 조회 676
17년 전 조회 802
17년 전 조회 754
17년 전 조회 893
17년 전 조회 1,043
17년 전 조회 944
17년 전 조회 977
17년 전 조회 843