탭메뉴만들기 (참 무식한방법이지만 ) > 그누4 팁자료실

매출이 오르면 내리는 수수료! 지금 수수료센터에서 전자결제(PG)수수료 비교견적 신청해 보세요!

그누4 팁자료실

그누보드4와 관련된 팁을 여러분들과 함께 공유하세요.
나누면 즐거움이 커집니다.

탭메뉴만들기 (참 무식한방법이지만 ) 정보

탭메뉴만들기 (참 무식한방법이지만 )

첨부파일

tabs2.zip (61.5K) 243회 다운로드 2010-01-06 18:22:31

본문

스킨을 찾아봤지만 다 테이블로 작업된거라 ㅠㅠ
배운게없어서 미국 사이트에서 소스를 갖고 와서 수정해봤습니다...



일단 head.sub.php 에

<link type="text/css" rel="stylesheet" href="<?=$g4['path']?>/css/general.css" media="screen" />
<!--[if IE 6]>
<link rel="stylesheet" href="<?=$g4['path']?>/css/ie6.css" type="text/css" media="screen," />
<![endif]-->

↑  이걸 스타일 부분에 추가하시구요

<script type="text/javascript" src=""></script>
<script type="text/javascript" src="<?=$g4['path']?>/js/tabs.js"></script>


↑  이걸 스크립 부분에 추가하시구요

이젠 index.php 에 탭메뉴 나올곳에 

 
<div id="container">
  <ul class="menu">
   <li id="news" class="active">자유게시판</li>
   <li id="tutorials">팁&공유</li>
   <li id="links">링크</li>
  </ul>
  <span class="clear"></span>
  <div class="content news">
          <?=latest("news", "news00", 4, 100); ?>  <!--<?=latest("스킨풀더", "게시판", 4, 100); ?>  --->
  </div>
  <div class="content tutorials">
          <?=latest("news", "news00", 4, 100); ?>  <!--<?=latest("스킨풀더", "게시판", 4, 100); ?>  --->
  </div>
  <div class="content links">
    <?=latest("news", "news00", 4, 100); ?>  <!--<?=latest("스킨풀더", "게시판", 4, 100); ?>  --->
  </div>
 </div>

이걸 추가하시면 됨니다 ^^...

최신글 스킨은
http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=96865&sca=&sfl=wr_name%2C1&stx=websp&sop=and  WEBSP 님꺼 쓰면되고요 가장쓸만하더라구요

탭을 추가시
general.css 에서 추가된 부분 더 써주면되구요
tabs.js 에서도 쫌 작업해야됨니다...
전혀안됀다 싶으면 쪽지 보내주세요 ^^
추천
3

댓글 2개

ㅎㅎ^^ 좋은 ~ 것이군요 ! 이런식으로 정리된 소스를 ~ 크핫;; 발전된 수정은 불가하더라도 급하게 만들때는 매우 도움이 될거같아요!! 추천
아 모르고 게속적응하다가 관리자 모드 들어가니까 엉망이네요 그래서 general.css 수정했네요 ㅠㅠ

@CHARSET "UTF-8";
/******* GENERAL RESET *******/
.clear{
clear: both;
height: 0;
visibility: hidden;
display: block;
}
#container{
border:0pt none;
font-family:inherit;
font-size: 100%;
font-style:inherit;
font-weight:inherit;
margin:0pt;
padding:0pt;
vertical-align:baseline;
background: #fff;
line-height:14px;
font-size: 12px;
font-family: Arial,  Verdana, Helvetica, sans-serif;
margin:0pt;
cursor:default;
overflow: hidden;
margin: 0px auto;
width: 480px;
}
#container ul{
list-style: none;
list-style-position: outside;
}
#container ul.menu li{
float: left;
margin-right: 5px;
margin-bottom: -1px;
}
#container ul.menu li{
font-weight: 700;
display: block;
padding: 5px 10px 5px 10px;
background: #efefef;
margin-bottom: -1px;
border: 1px solid #d0ccc9;
border-width: 1px 1px 1px 1px;
position: relative;
color: #898989;
cursor: pointer;
}
#container ul.menu li.active{
background: #fff;
top: 1px;
border-bottom: 0;
color: #5f95ef;
}
/******* /MENU *******/
/******* CONTENT *******/
.content{
margin: 0pt auto;
background: #efefef;
background: #fff;
border: 1px solid #d0ccc9;
text-align: left;
padding: 10px;
padding-bottom: 20px;
font-size: 11px;
}
.content h1{
line-height: 1em;
vertical-align: middle;
height: 48px;
padding: 10px 10px 10px 52px;
font-size: 32px;
}
/******* /CONTENT *******/
/******* NEWS *******/
.content.free h1{
background: transparent url(img/news1.jpg) no-repeat scroll left top;
}
.content.free{
display: block;
}
/******* /NEWS *******/
/******* TUTORIALS *******/
.content.asuult h1{
background: transparent url(img/news2.jpg) no-repeat scroll left top;
}
.content.asuult{
display: none;
}
/******* /TUTORIALS *******/
/******* LINKS *******/
.content.medleg h1{
background: transparent url(img/news3.jpg) no-repeat scroll left top;
}
.content.medleg{
display: none;
}
.content.medleg a{
color: #5f95ef;
}
/******* /LINKS *******/
.content.togloom h1{
background: transparent url(img/news4.jpg) no-repeat scroll left top;
}
.content.togloom{
display: none;
}
.content.togloom a{
color: #5f95ef;
}
.content.boxex h1{
background: transparent url(img/news5.jpg) no-repeat scroll left top;
}
.content.boxex{
display: none;
}
.content.boxex a{
color: #5f95ef;
}


요걸로 바꺼주면되요 ^^
전체 2 |RSS
그누4 팁자료실 내용 검색
  • 개별 목록 구성 번호 제목 작성자 작성일 추천 조회
  • 게시물이 없습니다.

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT