테스트 사이트 - 개발 중인 베타 버전입니다

서브메뉴 땜시 미치고 팔짝 뛰겟슴돠 ㅠㅠ

· 13년 전 · 874 · 2
아시겟지만 몇일전부로 췟;;; 서브메뉴 때문에 미치고 팔짝 뛰겠습니당 ㅠㅠ

글도 써놧고 ㅠㅠ



원리만 조금 알려주시면 ㅠㅠ굽신굽신 ㅠㅠ 큰건 바라지않을게용 ㅠㅠ



글수랑 전부 싹다 뽑았습니다. ㅠㅠ

서브메뉴까지 다구현됬구용 ㅠㅠ



그런데 이걸 오버헀을떄 이 게시판에 있는 분류만 출력

01_2 라는 게시판 오버시 2게시판에 있는 분류만 출력



이거 조건문을 어떻에해야될지 모르겠습니다. ㅠㅠ



<script>
<!--
var muCnt = 30;

function fncShow( pos )
{
var i =0;
for( i; i<muCnt; i++ )
{
var obj = document.getElementById("menu"+i);

if( i == pos )
{
obj.style.display = '';
}
else
{
obj.style.display = 'none';
}
}
}

function fncHide( pos )
{
var obj = document.getElementById("menu"+pos);
obj.style.display = 'none';
}

//-->
</script>

<style>
#menu .table{background-color:#23adb2; height:40px; line-height:39px;}
#menu .table1{border-bottom:1px solid #d4d4d4; height:30px; line-height:29px;}
</style>

<div id=menu>
<div class=table>

<?
$sql = "select * from $g4[board_table] order by bo_table";
$result = sql_query($sql);
$rows = mysql_num_rows($result);
for($i=0; $i < $rows; $i++){
$row=sql_fetch_array($result);
?>
<a onmouseover='javascript:fncShow(<?=$i?>);' href="<?=$g4['path']?>/bbs/board.php?bo_table=<?=$row[bo_table]?>"><font color=#ffffff><?=$row[bo_subject]?></font></a>&nbsp;&nbsp;
<? } ?>

</div>
<div class=table1 align=center><? $sql = " select bo_category_list from $g4[board_table]";
$result = sql_query($sql);
$row=sql_fetch_array($result);
$join = explode("|",$row[bo_category_list]);
if($bo_table == $row[bo_subject]){
for($i=0, $cnt=count($join); $i < $cnt; $i++){
?>

<?=$join[$i]?>
<!--<div id='menu<?=$i?>' style='display:none;' onmouseout='javascript:fncHide(<?=$i?>);'><?=$join[$i]?></div>-->

<? }} ?>
</div>
</div>

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기

댓글 2개

등록된 게시판명이 모두 나오는 메뉴인데...
"01_2 라는 게시판 오버시 2게시판에 있는 분류만 출력"
분류만 출력하고싶다고하셨는데 출력을 어디에 해야합니까?
말풍선에 나타나도록 하고 싶다는 것입니까?
정확한 설명이 있어야합니다.
저는 서브메뉴을 구현하고싶은것입니당 ㅠㅠ
그누보드 빌더 스킨 <<세개 의 게시판 메뉴가 있다고 했을때
그누보드라는 링크에 마우스을 가져다되면 그누보드게시판에 속한 분류가 출력되고
빌더라는 링크에 마우스을 가져다되면 빌더라는게시판에 속한 분류가
출력되는 이런 메뉴을 만드는데 막히네용 ㅠㅠ

게시글 목록

번호 제목
284508
284499
284492
284490
284484
284481
284478
284476
284474
284472
284470
284458
284457
284454
284453
284447
284446
284444
284441
284440