메뉴 노출문의

메뉴 노출문의

QA

메뉴 노출문의

본문

고수님들 이미지 처러 

지금은 1차에 마우스 오버하면 소메뉴만 출력되는데  소메뉴 위에 다시한번 1차메뉴 보여 주면서 소메뉴가 같이 보였이게 작업하려 합니다. 

 

 

 

1030060419_1595488334.8858.jpg

 

 

 

 

 

 


<?php
            $sql = " select *
                        from {$g5['menu_table']}
                        where me_use = '1'
                          and length(me_code) = '2'
                        order by me_order, me_id ";
            $result = sql_query($sql, false);
            $lnb_zindex = 999; // lnb_1dli z-index 값 설정용
            
            for ($i=0; $row=sql_fetch_array($result); $i++) {
                // link주소에 파라미터가 있는 경우
                if(strstr($row['me_link'], ".php?"))
                    $qstr2 = "&me_code=".$row['me_code'];
                // link주소에 파라미터가 없는 경우
                else
                $qstr2 = "?me_code=".$row['me_code'];
                $me_str = $me_code;
                $me_co = substr($me_str, 0, 1);
            ?>

                <li class="depth01<?php if($row[me_order]==$me_co){echo ' active'.$me_order;} ?>" style="z-index:<?php echo $lnb_zindex--; ?>">
                    <a href="<?php echo $row['me_link']; ?><?php echo $qstr2; ?>" target="_<?php echo $row['me_target']; ?>"><?php echo $row['me_name'] ?></a>
                    <?php
                    $sql2 = " select *
                                from {$g5['menu_table']}
                                where me_use = '1'
                                  and length(me_code) = '4'
                                  and substring(me_code, 1, 2) = '{$row['me_code']}'
                                order by me_order, me_id ";
                    $result2 = sql_query($sql2);
                
                    for ($k=0; $row2=sql_fetch_array($result2); $k++) {
                        // link주소에 파라미터가 있는 경우
                        if(strstr($row2['me_link'], ".php?"))
                            $qstr2 = "&me_code=".$row2['me_code'];
                        // link주소에 파라미터가 없는 경우
                        else
                        $qstr2 = "?me_code=".$row2['me_code'];
                
                        if($k == 0)
                            echo '<div class="depth02"><ul class="clearfix">'.PHP_EOL;
                    ?>
                    
                        
                        
                        
        
                
                    
                            <li>
                
                <a href="<?php echo $row2['me_link']; ?><?php echo $qstr2; ?>" target="_<?php echo $row2['me_target']; ?>"><?php echo $row2['me_name'] ?></a></li>
                    <?php
                    }
                
                    if($k > 0)
                        echo '</ul></div>'.PHP_EOL;
                    ?>
            </li>

    
            <?php } ?>
    
 

이 질문에 댓글 쓰기 :

답변 1

답변을 작성하시기 전에 로그인 해주세요.
전체 131
QA 내용 검색

회원로그인

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