아시겟지만 몇일전부로 췟;;; 서브메뉴 때문에 미치고 팔짝 뛰겠습니당 ㅠㅠ
글도 써놧고 ㅠㅠ
원리만 조금 알려주시면 ㅠㅠ굽신굽신 ㅠㅠ 큰건 바라지않을게용 ㅠㅠ
글수랑 전부 싹다 뽑았습니다. ㅠㅠ
서브메뉴까지 다구현됬구용 ㅠㅠ
그런데 이걸 오버헀을떄 이 게시판에 있는 분류만 출력
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>
<? } ?>
</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>
글도 써놧고 ㅠㅠ
원리만 조금 알려주시면 ㅠㅠ굽신굽신 ㅠㅠ 큰건 바라지않을게용 ㅠㅠ
글수랑 전부 싹다 뽑았습니다. ㅠㅠ
서브메뉴까지 다구현됬구용 ㅠㅠ
그런데 이걸 오버헀을떄 이 게시판에 있는 분류만 출력
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>
<? } ?>
</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개
게시글 목록
| 번호 | 제목 |
|---|---|
| 284508 | |
| 284499 | |
| 284492 | |
| 284490 | |
| 284484 | |
| 284481 | |
| 284478 | |
| 284476 | |
| 284474 | |
| 284472 | |
| 284470 | |
| 284458 | |
| 284457 | |
| 284454 | |
| 284453 | |
| 284447 | |
| 284446 | |
| 284444 | |
| 284441 | |
| 284440 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기