레프트메뉴질문입니다 채택완료
kimna17
9년 전
조회 5,919
groupmenu로 레프트메뉴를 이용하고있는데요.. 클릭시 해당페이지에 메뉴 on효과를 고정하고싶어서요 ..<br />
<br />
<br />
<?php<br />
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가<br />
?><br />
<br />
<!-- 메뉴 시작 { --><br />
<link rel="stylesheet" href="<?php echo $groupmenu_skin_url ?>/style.css"><br />
<br />
<div id="sir_lnb"><br />
<?php for ($i=0; $i<count($menu); $i++) {&nbsp; ?><br />
<aside id="lnb_cate"><br />
<h2><? echo $menu[$i]['code'] ?></h2><br />
<div><br />
<img src="/img/leftmenu/<? echo $menu[$i]['code'] ?>.png" /><br />
</div><br />
<ul><br />
&nbsp; &nbsp; &nbsp; &nbsp; <?php<br />
&nbsp; &nbsp; &nbsp; for ($j=0; $j<count($menu[$i]['submenu']); $j++) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; $submenu = $menu[$i]['submenu'][$j];<br />
<br />
&nbsp; &nbsp; &nbsp; ?><br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <li><a href="<?php echo $submenu['link'] ?>" target="_<?php echo $submenu['target']; ?>" ><img src="/img/leftmenu/<?php echo $submenu['code'] ?>.png" onMouseOver="this.src='/img/leftmenu/<?php echo $submenu['code'] ?>_on.png'" onMouseOut="this.src='/img/leftmenu/<?php echo $submenu['code'] ?>.png'"/><br />
&nbsp; &nbsp; &nbsp; </a><br />
&nbsp; &nbsp; &nbsp; </li><br />
<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <?php<br />
&nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; ?><br />
</ul><br />
&nbsp;</aside><br />
<br />
<br />
<?php<br />
}<br />
?><br />
</div><br />
<br />
<br />
<br />
<br />
<br />
<!-- #sir_lnb --><br />
<!-- } 메뉴 끝 --><br />
<br />
<br />
<br />
<br />
<br />
어디를 바꾸어줘여하나요 ? ㅠ
<br />
<br />
<?php<br />
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가<br />
?><br />
<br />
<!-- 메뉴 시작 { --><br />
<link rel="stylesheet" href="<?php echo $groupmenu_skin_url ?>/style.css"><br />
<br />
<div id="sir_lnb"><br />
<?php for ($i=0; $i<count($menu); $i++) {&nbsp; ?><br />
<aside id="lnb_cate"><br />
<h2><? echo $menu[$i]['code'] ?></h2><br />
<div><br />
<img src="/img/leftmenu/<? echo $menu[$i]['code'] ?>.png" /><br />
</div><br />
<ul><br />
&nbsp; &nbsp; &nbsp; &nbsp; <?php<br />
&nbsp; &nbsp; &nbsp; for ($j=0; $j<count($menu[$i]['submenu']); $j++) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; $submenu = $menu[$i]['submenu'][$j];<br />
<br />
&nbsp; &nbsp; &nbsp; ?><br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <li><a href="<?php echo $submenu['link'] ?>" target="_<?php echo $submenu['target']; ?>" ><img src="/img/leftmenu/<?php echo $submenu['code'] ?>.png" onMouseOver="this.src='/img/leftmenu/<?php echo $submenu['code'] ?>_on.png'" onMouseOut="this.src='/img/leftmenu/<?php echo $submenu['code'] ?>.png'"/><br />
&nbsp; &nbsp; &nbsp; </a><br />
&nbsp; &nbsp; &nbsp; </li><br />
<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <?php<br />
&nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; ?><br />
</ul><br />
&nbsp;</aside><br />
<br />
<br />
<?php<br />
}<br />
?><br />
</div><br />
<br />
<br />
<br />
<br />
<br />
<!-- #sir_lnb --><br />
<!-- } 메뉴 끝 --><br />
<br />
<br />
<br />
<br />
<br />
어디를 바꾸어줘여하나요 ? ㅠ
댓글을 작성하려면 로그인이 필요합니다.
답변 1개
채택된 답변
+20 포인트
9년 전
http://sir.kr/g5_skin/10340?page=1">http://sir.kr/g5_skin/10340?page=1
extend/navigation.lib.php 파일을 해당폴더에 복사
</p> <div class="left_menu clearfix">
<?php
//중간 메뉴 정의
$lMenu = get_middle_navi();
?>
<dl class="">
<dt><img src="<?php echo(G5_THEME_IMG_URL);?>/title<?php echo($lMenu['bNum']);?>.jpg" alt="<?php echo($lMenu['gTitle']);?>" /></dt>
<?php
if($lMenu['cnt']) {
for($i=0; $i<$lMenu['cnt']; $i++) {
$lm = $lMenu[$i];
if($co_id)
$sel = strstr($lm['me_link'],$co_id)?" class='select' ":"";
elseif($bo_table)
$sel = strstr($lm['me_link'],$bo_table)?" class='select' ":"";
else
$sel = strstr($lm['me_link'],basename($_SERVER['PHP_SELF']))?" class='select' ":"";
?>
<dd <?php echo($sel);?>><a href="<?php echo($lm['me_link']);?>" target="_<?php echo $mM['me_target']; ?>"><?php echo($lm['me_name']);?></a></dd>
<?php
}
}
?>
</dl><p>
로그인 후 평가할 수 있습니다
답변에 대한 댓글 1개
k
kimna17
9년 전
감사합니다 ㅎ많은도움되었습니다~
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인