관리자님 이 스킨 배포하시면 안되나요??
본문
관리자님 이 스킨 배포하시면 안되나요??
요거 진짜 필요하는데...
답변 1
g5라 g4스킨은 소개 못하겠고
소스를 알려드릴께요......
<div id='tabbu1' style="float:left;text-align:center;width:100px;height:30px;line-height:30px;border-right:1px solid black;" OnClick='tab(1);' OnMouseOver='this.style.cursor="hand";tab(1);' OnMouseOut='this.style.cursor="default"'>첫번째탭</div>
<div id='tabbu2' style="float:left;text-align:center;width:100px;height:30px;line-height:30px;border-right:1px solid black;" OnClick='tab(2);' OnMouseOver='this.style.cursor="hand";tab(2);' OnMouseOut='this.style.cursor="default"'>두번째탭</div>
<div id='tabbu3' style="float:left;text-align:center;width:100px;height:30px;line-height:30px;border-right:1px solid black;" OnClick='tab(3);' OnMouseOver='this.style.cursor="hand";tab(3);' OnMouseOut='this.style.cursor="default"'>세번째탭</div>
<div id='tab1'>첫번째 최신글코드를 넣으세요.</div>
<div id='tab2' style='display:none;'>두번째 최신글코드를 넣으세요</div>
<div id='tab3' style='display:none;'>세번째 최신글코드를 넣으세요</div>
<script type="text/javascript">
function tab(n) {
for(var i = 1; i < 4; i++) {
obj = document.getElementById('tab'+i);
obj2 = document.getElementById('tabbu'+i);
obj = document.getElementById('tab'+i);
obj2 = document.getElementById('tabbu'+i);
if ( n == i ) {
obj.style.display = "block";
obj2.style.color='white';
obj2.style.fontWeight='bold';
obj2.style.backgroundColor='#4e0003';
} else {
obj.style.display = "none";
obj2.style.color='#cacaca';
obj2.style.fontWeight='normal';
obj2.style.backgroundColor='#2b080a';
}
}
obj.style.display = "block";
obj2.style.color='white';
obj2.style.fontWeight='bold';
obj2.style.backgroundColor='#4e0003';
} else {
obj.style.display = "none";
obj2.style.color='#cacaca';
obj2.style.fontWeight='normal';
obj2.style.backgroundColor='#2b080a';
}
}
}
</script>
</script>
답변을 작성하시기 전에 로그인 해주세요.