mainmenu 메인 메뉴와 서브메뉴
페이지 정보
본문
본 메뉴를 사용하면 기본의 서브에서 보여지는 레이어는 보이지 않습니다.
수정파일
head.sub.php
<!--MAIN MENU-->
<?
switch($gr_id)
{
case "";
case "html";
case "banner";
case "guest";
//$grback = "$g4[path]/include/mainmenu/img/top.gif"; //배경 이미지일 경우 사용
$grcolor = "#4B6BAD";
$grbanner = "subbanner";
$submenubg = "006699";
break;
case "z1";
$grcolor = "#1EA529";
$grbanner = "sub1banner";
$submenubg = "ca003f";
break;
case "z2";
$grcolor = "#68ABE2";
$grbanner = "sub2banner";
$submenubg = "3399CC";
break;
case "z3";
$grcolor = "#F7B000";
$grbanner = "sub3banner";
$submenubg = "75348e";
break;
case "z4";
$grcolor = "#F76C2B";
$grbanner = "sub4banner";
$submenubg = "009966";
break;
case "z5";
$grcolor = "#9ABB67";
$grbanner = "sub5banner";
$submenubg = "c2448c";
break;
case "z6";
$grcolor = "#4CC9B6";
$grbanner = "sub6banner";
$submenubg = "FF6633";
break;
case "z7";
$grcolor = "#1EA529";
$grbanner = "sub7banner";
$submenubg = "007da3";
break;
case "z8";
$grcolor = "#68ABE2";
$grbanner = "sub8banner";
$submenubg = "006699";
break;
case "z9";
$grcolor = "#F7B000";
$grbanner = "sub9banner";
$submenubg = "3399CC";
break;
case "z10";
$grcolor = "#F76C2B";
$grbanner = "sub10banner";
$submenubg = "009999";
break;
case "z11";
$grcolor = "#9ABB67";
$grbanner = "sub11banner";
$submenubg = "CC0000";
break;
case "z12";
$grcolor = "#4CC9B6";
$grbanner = "sub12banner";
$submenubg = "FF6633";
break;
}
?>
<!--/MAIN MENU-->
******************************************
mainhead.php
3군데 약 70,73,146라인
<?=$g4['path']?>/img/<?=$color_layer?>/<?=$color_layer?>_02.gif <---- 이런 값을 찾아
<?=$g4['path']?>/img/<?=$color_layer?>/m<?=$color_layer?>_02.gif" <---- 이런식으로 수정
*****************
head.php
<!--SUBMAIN MENU / NOTICE-->
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td width="100%" align="center" background="<?=$g4['path']?>/img/<?=$color_layer?>/<?=$submenubg?>_02.gif">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="5"><img src="<?=$g4['path']?>/img/<?=$color_layer?>/<?=$submenubg?>_01.gif" width="10" height="40" border="0"></td>
<td border="0">
<!--SUBMAINMENU-->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="40" align='center'><?=submenu("basic006699", "$gr_id", "$bo_table"); // submenu?></td>
</tr>
</table>
<!--/SUBMAIN MENU-->
</td>
<td width="5"><img src="<?=$g4['path']?>/img/<?=$color_layer?>/<?=$submenubg?>_03.gif" width="10" height="40" border="0"></td>
</tr>
</table>
</td>
</tr>
</table>
<!--SUBMAIN MENU / NOTICE-->
각 파일 로그인 출력방법
<table width="100%" border="0" cellpadding="0" cellspacing="2" bgcolor="<?=$submenubg?>">
<tr><td valign="top" align="center" bgcolor="FFFFFF" style="padding:5px 10px 5px 10px">
<?=outlogin("mw.outlogin"); // LOGIN?>
</td></tr>
</table>
http://zeronara.net/bbs/board.php?bo_table=z2_3&wr_id=963
본인에 맞게 수정하세요..
수정파일
head.sub.php
<!--MAIN MENU-->
<?
switch($gr_id)
{
case "";
case "html";
case "banner";
case "guest";
//$grback = "$g4[path]/include/mainmenu/img/top.gif"; //배경 이미지일 경우 사용
$grcolor = "#4B6BAD";
$grbanner = "subbanner";
$submenubg = "006699";
break;
case "z1";
$grcolor = "#1EA529";
$grbanner = "sub1banner";
$submenubg = "ca003f";
break;
case "z2";
$grcolor = "#68ABE2";
$grbanner = "sub2banner";
$submenubg = "3399CC";
break;
case "z3";
$grcolor = "#F7B000";
$grbanner = "sub3banner";
$submenubg = "75348e";
break;
case "z4";
$grcolor = "#F76C2B";
$grbanner = "sub4banner";
$submenubg = "009966";
break;
case "z5";
$grcolor = "#9ABB67";
$grbanner = "sub5banner";
$submenubg = "c2448c";
break;
case "z6";
$grcolor = "#4CC9B6";
$grbanner = "sub6banner";
$submenubg = "FF6633";
break;
case "z7";
$grcolor = "#1EA529";
$grbanner = "sub7banner";
$submenubg = "007da3";
break;
case "z8";
$grcolor = "#68ABE2";
$grbanner = "sub8banner";
$submenubg = "006699";
break;
case "z9";
$grcolor = "#F7B000";
$grbanner = "sub9banner";
$submenubg = "3399CC";
break;
case "z10";
$grcolor = "#F76C2B";
$grbanner = "sub10banner";
$submenubg = "009999";
break;
case "z11";
$grcolor = "#9ABB67";
$grbanner = "sub11banner";
$submenubg = "CC0000";
break;
case "z12";
$grcolor = "#4CC9B6";
$grbanner = "sub12banner";
$submenubg = "FF6633";
break;
}
?>
<!--/MAIN MENU-->
******************************************
mainhead.php
3군데 약 70,73,146라인
<?=$g4['path']?>/img/<?=$color_layer?>/<?=$color_layer?>_02.gif <---- 이런 값을 찾아
<?=$g4['path']?>/img/<?=$color_layer?>/m<?=$color_layer?>_02.gif" <---- 이런식으로 수정
*****************
head.php
<!--SUBMAIN MENU / NOTICE-->
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td width="100%" align="center" background="<?=$g4['path']?>/img/<?=$color_layer?>/<?=$submenubg?>_02.gif">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="5"><img src="<?=$g4['path']?>/img/<?=$color_layer?>/<?=$submenubg?>_01.gif" width="10" height="40" border="0"></td>
<td border="0">
<!--SUBMAINMENU-->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="40" align='center'><?=submenu("basic006699", "$gr_id", "$bo_table"); // submenu?></td>
</tr>
</table>
<!--/SUBMAIN MENU-->
</td>
<td width="5"><img src="<?=$g4['path']?>/img/<?=$color_layer?>/<?=$submenubg?>_03.gif" width="10" height="40" border="0"></td>
</tr>
</table>
</td>
</tr>
</table>
<!--SUBMAIN MENU / NOTICE-->
각 파일 로그인 출력방법
<table width="100%" border="0" cellpadding="0" cellspacing="2" bgcolor="<?=$submenubg?>">
<tr><td valign="top" align="center" bgcolor="FFFFFF" style="padding:5px 10px 5px 10px">
<?=outlogin("mw.outlogin"); // LOGIN?>
</td></tr>
</table>
http://zeronara.net/bbs/board.php?bo_table=z2_3&wr_id=963
본인에 맞게 수정하세요..
추천1
첨부파일
-
newmenu.zip (102.5K)
39회 다운로드 | DATE : 2008-07-02 14:22:49