메뉴 활성화 하는 방법
안녕하세요, 메인메뉴활성화 방법 때문에 문의드립니다.
현재 홈페이지를 예시로 설명하자면,
그누보드5 ---- 부가서비스 까지 메인 메뉴가있는데, Q&A 를 클릭하면 Q&A에 파란색으로 표시가되잖아요?
지금 그걸 못하고있거든요..
다른분들이 말씀해주신
class="=($_GET['board_no']==1)?'on':'';?>">"tabmenu(0)" href="/board/free/list.html?board_no=1">공지사항
이런 코드를 써도 괜찮은느낌이 들지 않아서
자바스크립트나 php로 코드를 짜봤으면 좋겠어서요..
현재 메뉴 코딩은 기본적으로 이렇게 되어있구요..
</strong>
</code></p><p style="margin-left: 0px;"><code class="plain" style="background-color: rgb(255, 255, 255); margin: 0px !important; padding: 0px !important; border: 0px !important; outline: 0px !important; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.8em !important;"><strong><font color="#7f7f7f" face="돋움, Dotum, sans-serif"><span style="font-size: 12px;"><ul class="main_menu left main_menu_w"></span></font></strong></code></p><p style="margin-left: 40px;"><code class="plain" style="background-color: rgb(255, 255, 255); margin: 0px !important; padding: 0px !important; border: 0px !important; outline: 0px !important; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.8em !important;"><strong><font color="#7f7f7f" face="돋움, Dotum, sans-serif"><span style="font-size: 12px;"><li class='menu_on'><a href="<?php echo G5_URL ?>/pages/introduce.php">소개</a></li></span></font></strong></code></p><p style="margin-left: 40px;"><code class="plain" style="background-color: rgb(255, 255, 255); margin: 0px !important; padding: 0px !important; border: 0px !important; outline: 0px !important; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.8em !important;"><strong><font color="#7f7f7f" face="돋움, Dotum, sans-serif"><span style="font-size: 12px;"><li><a href="<?php echo G5_URL ?>/pages/history.php">현황</a></li></span></font></strong></code></p><p style="margin-left: 40px;"><code class="plain" style="background-color: rgb(255, 255, 255); margin: 0px !important; padding: 0px !important; border: 0px !important; outline: 0px !important; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.8em !important;"><strong><font color="#7f7f7f" face="돋움, Dotum, sans-serif"><span style="font-size: 12px;"><li><a href="<?php echo G5_URL ?>/bbs/board.php?bo_table=psd">자료실</a></li></span></font></strong></code></p><p style="margin-left: 40px;"><code class="plain" style="background-color: rgb(255, 255, 255); margin: 0px !important; padding: 0px !important; border: 0px !important; outline: 0px !important; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.8em !important;"><strong><font color="#7f7f7f" face="돋움, Dotum, sans-serif"><span style="font-size: 12px;"><li><a href="<?php echo G5_URL ?>/bbs/board.php?bo_table=notice">공지</a></li></span></font></strong></code></p><p style="margin-left: 40px;"><code class="plain" style="background-color: rgb(255, 255, 255); margin: 0px !important; padding: 0px !important; border: 0px !important; outline: 0px !important; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.8em !important;"><strong><font color="#7f7f7f" face="돋움, Dotum, sans-serif"><span style="font-size: 12px;"><li><a href="<?php echo G5_URL ?>/bbs/board.php?bo_table=faq">질문과답변</a></li></span></font></strong></code></p><p style="margin-left: 0px;"><code class="plain" style="background-color: rgb(255, 255, 255); margin: 0px !important; padding: 0px !important; border: 0px !important; outline: 0px !important; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.8em !important;"><strong><font color="#7f7f7f" face="돋움, Dotum, sans-serif"><span style="font-size: 12px;"></ul></span></font>
</strong></code></p><p><strong style="color: rgb(127, 127, 127); font-family: 돋움, Dotum, sans-serif; font-size: 12px;">
CSS 에는 아래 코드처럼 되어있습니다.
</strong><strong style="color: rgb(127, 127, 127); font-family: 돋움, Dotum, sans-serif; font-size: 12px;">
</strong></p><p style="margin-left: 40px;"><font color="#7f7f7f" face="돋움, Dotum, sans-serif"><span style="font-size: 12px;"><b>.hd ul.main_menu li.main_on{color:#745231}</b></span></font></p><p><strong style="color: rgb(127, 127, 127); font-family: 돋움, Dotum, sans-serif; font-size: 12px;">
도와주세요ㅠㅠ
답변 1개
답변을 작성하려면 로그인이 필요합니다.
로그인