브레스님!!!<?=$cata?> 알려주세요!! 정보
브레스님!!!<?=$cata?> 알려주세요!!
본문
예전에 공개해주신 아래 소스중에
<?=$cata?>
에 대해 알려주세요~!!
혹시 다른님들도 뭔지 아시는 분은 알려주세요!! ^0^
<SCRIPT language=JavaScript><!-- 서브메뉴 레이어 -->
ns = (document.layers)? true:false
ie = (document.all)? true:false
function show(id) {
if (ns) document.layers[id].visibility = "visible"
else if (ie) document.all[id].style.visibility = "visible"
}
function hide(id) {
if (ns) document.layers[id].visibility = "hidden"
else if (ie) document.all[id].style.visibility = "hidden"
}
</SCRIPT>
<!-- 상단메뉴 시작 -->
<table width="703" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="77"><a href="<?=$g4[bbs_path]?>/board.php?bo_table=info1" onMouseOver="MM_swapImage('menu1','','../<?=$cata?>/images/menu_on_01.gif',1);show('info')" onMouseOut="MM_swapImgRestore();hide('info')"><img src="../<?=$cata?>/images/<? if ($cata == info) { echo "menu_on_01.gif"; } else { echo "menu_01.gif"; } ?>" name="menu1" width="77" height="38" border="0" id="menu1"></a></td>
<td width="75"><a href="<?=$g4[bbs_path]?>/board.php?bo_table=event1" onMouseOver="MM_swapImage('menu2','','../<?=$cata?>/images/menu_on_02.gif',1);show('event')" onMouseOut="MM_swapImgRestore();hide('event')"><img src="../<?=$cata?>/images/<? if ($cata == event) { echo "menu_on_02.gif"; } else { echo "menu_02.gif"; } ?>" name="menu2" width="75" height="38" border="0" id="menu2"></a></td>
<td width="87"><a href="<?=$g4[bbs_path]?>/board.php?bo_table=forum1" onMouseOver="MM_swapImage('menu3','','../<?=$cata?>/images/menu_on_03.gif',1);show('forum')" onMouseOut="MM_swapImgRestore();hide('forum')"><img src="../<?=$cata?>/images/<? if ($cata == forum) { echo "menu_on_03.gif"; } else { echo "menu_03.gif"; } ?>" name="menu3" width="87" height="38" border="0" id="menu3"></a></td>
<td width="98"><a href="<?=$g4[bbs_path]?>/board.php?bo_table=reporter1" onMouseOver="MM_swapImage('menu4','','../<?=$cata?>/images/menu_on_04.gif',1);show('reporter')" onMouseOut="MM_swapImgRestore();hide('reporter')"><img src="../<?=$cata?>/images/<? if ($cata == reporter) { echo "menu_on_04.gif"; } else { echo "menu_04.gif"; } ?>" name="menu4" width="98" height="38" border="0" id="menu4"></a></td>
<td width="75"><a href="<?=$g4[bbs_path]?>/board.php?bo_table=encourage1" onMouseOver="MM_swapImage('menu5','','../<?=$cata?>/images/menu_on_05.gif',1);show('encourage')" onMouseOut="MM_swapImgRestore();hide('encourage')"><img src="../<?=$cata?>/images/<? if ($cata == encourage) { echo "menu_on_05.gif"; } else { echo "menu_05.gif"; } ?>" name="menu5" width="75" height="38" border="0" id="menu5"></a></td>
<td width="112"><a href="<?=$g4[bbs_path]?>/board.php?bo_table=golink1" onMouseOver="MM_swapImage('menu6','','../<?=$cata?>/images/menu_on_06.gif',1);show('golink')" onMouseOut="MM_swapImgRestore();hide('golink')"><img src="../<?=$cata?>/images/<? if ($cata == golink) { echo "menu_on_06.gif"; } else { echo "menu_06.gif"; } ?>" name="menu6" width="112" height="38" border="0" id="menu6"></a></td>
<td width="75"><a href="<?=$g4[bbs_path]?>/board.php?bo_table=support1" onMouseOver="MM_swapImage('menu7','','../<?=$cata?>/images/menu_on_07.gif',1);show('support')" onMouseOut="MM_swapImgRestore();hide('support')"><img src="../<?=$cata?>/images/<? if ($cata == support) { echo "menu_on_07.gif"; } else { echo "menu_07.gif"; } ?>" name="menu7" width="75" height="38" border="0" id="menu7.gif"></a></td>
<td width="104"><a href="<?=$g4[bbs_path]?>/board.php?bo_table=board1" onMouseOver="MM_swapImage('menu8','','../<?=$cata?>/images/menu_on_08.gif',1);show('board')" onMouseOut="MM_swapImgRestore();hide('board')"><img src="../<?=$cata?>/images/<? if ($cata == board) { echo "menu_on_08.gif"; } else { echo "menu_08.gif"; } ?>" name="menu8" width="104" height="38" border="0" id="menu8"></a></td>
</tr>
<tr>
<td colspan="8" >
<?
$sql = " select a.gr_id, a.gr_subject from $g4[group_table] as a left join $g4[board_table] as b on a.gr_id = b.gr_id where b.bo_list_level <= $member[mb_level] group by gr_id ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++){ ?>
<div style="margin-left:<?
if ($row[gr_id] == info) { echo "0"; }
else if ($row[gr_id] == event) { echo "77"; }
else if ($row[gr_id] == forum) { echo "152"; }
else if ($row[gr_id] == reporter) { echo "239"; }
else if ($row[gr_id] == encourage) { echo "337"; }
else if ($row[gr_id] == golink) { echo "412"; }
else if ($row[gr_id] == support) { echo "524"; }
else { echo "560"; }
?>px; position:relative; z-index: 1;">
<div id="<?=$row[gr_id]?>" style="visibility:hidden; position:absolute;" onmouseover="show('<?=$row[gr_id]?>');MM_swapImage('<?=$row[gr_id]?>_menu','','../<?=$cata?>/images/<?=$row[gr_id]?>_menu_on.gif',1)" onmouseout="hide('<?=$row[gr_id]?>');MM_swapImgRestore()">
<table width='143' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td colspan='3' style='padding-left:<?
if ($row[gr_id] == board) { echo "83"; }
else if ($row[gr_id] == forum) { echo "39"; }
else if ($row[gr_id] == reporter) { echo "43"; }
else if ($row[gr_id] == golink) { echo "50"; }
else { echo "33"; }
?>px;'><img src='../<?=$cata?>/images/top_menu_11.gif' width='12' height='6'></td>
</tr>
<tr>
<td colspan='3'><img src='../<?=$cata?>/images/top_menu_14.gif' width='143' height='4'></td>
</tr>
<tr>
<td width='4' background='../<?=$cata?>/images/top_menu_15.gif'><img src='../<?=$cata?>/images/spacer.gif' width='4' height='1'></td>
<td width='135' valign='top' bgcolor='#FFFFFF'><table width='121' border='0' align='center' cellpadding='0' cellspacing='0'>
<?
$sql1 = " select bo_subject, bo_table from $g4[board_table] where gr_id = '$row[gr_id]' order by bo_order_search";
$result1 = sql_query($sql1);
for ($i1=0; $row1=sql_fetch_array($result1); $i1++) {
?>
<tr>
<td width='19' valign='top'><img src='../<?=$cata?>/images/top_menu_arr.gif'></td>
<td width='102'><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$row1[bo_table]?>' class='left_menu'>
<?=$row1[bo_subject]?>
</a></td>
</tr>
<tr>
<td colspan='2'><img src='../images/menu_line.gif' width='117' height='1'></td>
</tr>
<? } ?>
</table></td>
<td width='4' background='../<?=$cata?>/images/top_menu_19.gif'><img src='../<?=$cata?>/image/spacer.gif' width='4' height='1'></td>
</tr>
<tr>
<td colspan='3'><img src='../<?=$cata?>/images/top_menu_24.gif' width='143' height='4'></td>
</tr>
</table>
</div>
</div>
<? } ?>
</td>
</tr>
</table>
<!-- 상단 메뉴 끝 -->
<!-- 왼쪽 메뉴 시작-->
<table width="133" border="0" align="center" cellpadding="0" cellspacing="0">
<?
$intime = date("Y-m-d H:i:s", time() - (int)(60 * 60 * 24));
$sql = " select bo_table, bo_subject from $g4[board_table] where gr_id = '$gr_id' order by bo_order_search";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++) {
$tmp_write_table = $g4[write_prefix] . $row[bo_table];
$sql2 = " select wr_datetime from $tmp_write_table where wr_datetime >= '$intime'";
$result2 = sql_query($sql2);
$total_count = mysql_num_rows($result2);
if ($row[bo_table] == $bo_table) {
echo "<tr>";
echo "<td width='23' valign='top'><img src='../$cata/images/left_menu_04.gif' width='23' height='26' name='$row[bo_table]' id='$row[bo_table]'></td>";
echo "<td width='110' background='../$cata/images/left_menu_05.gif' style='padding-top:2px;' align='right' nowrap><a href='$g4[path]/bless/board.php?bo_table=$row[bo_table]' onMouseOver=MM_swapImage('$row[bo_table]','','../$cata/images/left_menu_08.gif',1) onMouseOut=MM_swapImgRestore() class='left_menu' ><font color='#ff6600'>$row[bo_subject]</font></a>";
if ($total_count > 0) { echo " <span class=new>[$total_count]</span>"; }
echo "</td></tr>";
}
else {
echo "<tr>";
echo "<td width='23' valign='top'><img src='../$cata/images/left_menu_04.gif' width='23' height='26' name='$row[bo_table]' id='$row[bo_table]'></td>";
echo "<td width='110' background='../$cata/images/left_menu_05.gif' style='padding-top:2px;' align='right' nowrap><a href='$g4[path]/bless/board.php?bo_table=$row[bo_table]' onMouseOver=MM_swapImage('$row[bo_table]','','../$cata/images/left_menu_08.gif',1) onMouseOut=MM_swapImgRestore() class='left_menu' >$row[bo_subject]</a>";
if ($total_count > 0) { echo " <span class=new>[$total_count]</span>"; }
echo "</td></tr>";
}
}
?>
</table>
<!-- 왼쪽 메뉴 끝-->
<?=$cata?>
에 대해 알려주세요~!!
혹시 다른님들도 뭔지 아시는 분은 알려주세요!! ^0^
<SCRIPT language=JavaScript><!-- 서브메뉴 레이어 -->
ns = (document.layers)? true:false
ie = (document.all)? true:false
function show(id) {
if (ns) document.layers[id].visibility = "visible"
else if (ie) document.all[id].style.visibility = "visible"
}
function hide(id) {
if (ns) document.layers[id].visibility = "hidden"
else if (ie) document.all[id].style.visibility = "hidden"
}
</SCRIPT>
<!-- 상단메뉴 시작 -->
<table width="703" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="77"><a href="<?=$g4[bbs_path]?>/board.php?bo_table=info1" onMouseOver="MM_swapImage('menu1','','../<?=$cata?>/images/menu_on_01.gif',1);show('info')" onMouseOut="MM_swapImgRestore();hide('info')"><img src="../<?=$cata?>/images/<? if ($cata == info) { echo "menu_on_01.gif"; } else { echo "menu_01.gif"; } ?>" name="menu1" width="77" height="38" border="0" id="menu1"></a></td>
<td width="75"><a href="<?=$g4[bbs_path]?>/board.php?bo_table=event1" onMouseOver="MM_swapImage('menu2','','../<?=$cata?>/images/menu_on_02.gif',1);show('event')" onMouseOut="MM_swapImgRestore();hide('event')"><img src="../<?=$cata?>/images/<? if ($cata == event) { echo "menu_on_02.gif"; } else { echo "menu_02.gif"; } ?>" name="menu2" width="75" height="38" border="0" id="menu2"></a></td>
<td width="87"><a href="<?=$g4[bbs_path]?>/board.php?bo_table=forum1" onMouseOver="MM_swapImage('menu3','','../<?=$cata?>/images/menu_on_03.gif',1);show('forum')" onMouseOut="MM_swapImgRestore();hide('forum')"><img src="../<?=$cata?>/images/<? if ($cata == forum) { echo "menu_on_03.gif"; } else { echo "menu_03.gif"; } ?>" name="menu3" width="87" height="38" border="0" id="menu3"></a></td>
<td width="98"><a href="<?=$g4[bbs_path]?>/board.php?bo_table=reporter1" onMouseOver="MM_swapImage('menu4','','../<?=$cata?>/images/menu_on_04.gif',1);show('reporter')" onMouseOut="MM_swapImgRestore();hide('reporter')"><img src="../<?=$cata?>/images/<? if ($cata == reporter) { echo "menu_on_04.gif"; } else { echo "menu_04.gif"; } ?>" name="menu4" width="98" height="38" border="0" id="menu4"></a></td>
<td width="75"><a href="<?=$g4[bbs_path]?>/board.php?bo_table=encourage1" onMouseOver="MM_swapImage('menu5','','../<?=$cata?>/images/menu_on_05.gif',1);show('encourage')" onMouseOut="MM_swapImgRestore();hide('encourage')"><img src="../<?=$cata?>/images/<? if ($cata == encourage) { echo "menu_on_05.gif"; } else { echo "menu_05.gif"; } ?>" name="menu5" width="75" height="38" border="0" id="menu5"></a></td>
<td width="112"><a href="<?=$g4[bbs_path]?>/board.php?bo_table=golink1" onMouseOver="MM_swapImage('menu6','','../<?=$cata?>/images/menu_on_06.gif',1);show('golink')" onMouseOut="MM_swapImgRestore();hide('golink')"><img src="../<?=$cata?>/images/<? if ($cata == golink) { echo "menu_on_06.gif"; } else { echo "menu_06.gif"; } ?>" name="menu6" width="112" height="38" border="0" id="menu6"></a></td>
<td width="75"><a href="<?=$g4[bbs_path]?>/board.php?bo_table=support1" onMouseOver="MM_swapImage('menu7','','../<?=$cata?>/images/menu_on_07.gif',1);show('support')" onMouseOut="MM_swapImgRestore();hide('support')"><img src="../<?=$cata?>/images/<? if ($cata == support) { echo "menu_on_07.gif"; } else { echo "menu_07.gif"; } ?>" name="menu7" width="75" height="38" border="0" id="menu7.gif"></a></td>
<td width="104"><a href="<?=$g4[bbs_path]?>/board.php?bo_table=board1" onMouseOver="MM_swapImage('menu8','','../<?=$cata?>/images/menu_on_08.gif',1);show('board')" onMouseOut="MM_swapImgRestore();hide('board')"><img src="../<?=$cata?>/images/<? if ($cata == board) { echo "menu_on_08.gif"; } else { echo "menu_08.gif"; } ?>" name="menu8" width="104" height="38" border="0" id="menu8"></a></td>
</tr>
<tr>
<td colspan="8" >
<?
$sql = " select a.gr_id, a.gr_subject from $g4[group_table] as a left join $g4[board_table] as b on a.gr_id = b.gr_id where b.bo_list_level <= $member[mb_level] group by gr_id ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++){ ?>
<div style="margin-left:<?
if ($row[gr_id] == info) { echo "0"; }
else if ($row[gr_id] == event) { echo "77"; }
else if ($row[gr_id] == forum) { echo "152"; }
else if ($row[gr_id] == reporter) { echo "239"; }
else if ($row[gr_id] == encourage) { echo "337"; }
else if ($row[gr_id] == golink) { echo "412"; }
else if ($row[gr_id] == support) { echo "524"; }
else { echo "560"; }
?>px; position:relative; z-index: 1;">
<div id="<?=$row[gr_id]?>" style="visibility:hidden; position:absolute;" onmouseover="show('<?=$row[gr_id]?>');MM_swapImage('<?=$row[gr_id]?>_menu','','../<?=$cata?>/images/<?=$row[gr_id]?>_menu_on.gif',1)" onmouseout="hide('<?=$row[gr_id]?>');MM_swapImgRestore()">
<table width='143' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td colspan='3' style='padding-left:<?
if ($row[gr_id] == board) { echo "83"; }
else if ($row[gr_id] == forum) { echo "39"; }
else if ($row[gr_id] == reporter) { echo "43"; }
else if ($row[gr_id] == golink) { echo "50"; }
else { echo "33"; }
?>px;'><img src='../<?=$cata?>/images/top_menu_11.gif' width='12' height='6'></td>
</tr>
<tr>
<td colspan='3'><img src='../<?=$cata?>/images/top_menu_14.gif' width='143' height='4'></td>
</tr>
<tr>
<td width='4' background='../<?=$cata?>/images/top_menu_15.gif'><img src='../<?=$cata?>/images/spacer.gif' width='4' height='1'></td>
<td width='135' valign='top' bgcolor='#FFFFFF'><table width='121' border='0' align='center' cellpadding='0' cellspacing='0'>
<?
$sql1 = " select bo_subject, bo_table from $g4[board_table] where gr_id = '$row[gr_id]' order by bo_order_search";
$result1 = sql_query($sql1);
for ($i1=0; $row1=sql_fetch_array($result1); $i1++) {
?>
<tr>
<td width='19' valign='top'><img src='../<?=$cata?>/images/top_menu_arr.gif'></td>
<td width='102'><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$row1[bo_table]?>' class='left_menu'>
<?=$row1[bo_subject]?>
</a></td>
</tr>
<tr>
<td colspan='2'><img src='../images/menu_line.gif' width='117' height='1'></td>
</tr>
<? } ?>
</table></td>
<td width='4' background='../<?=$cata?>/images/top_menu_19.gif'><img src='../<?=$cata?>/image/spacer.gif' width='4' height='1'></td>
</tr>
<tr>
<td colspan='3'><img src='../<?=$cata?>/images/top_menu_24.gif' width='143' height='4'></td>
</tr>
</table>
</div>
</div>
<? } ?>
</td>
</tr>
</table>
<!-- 상단 메뉴 끝 -->
<!-- 왼쪽 메뉴 시작-->
<table width="133" border="0" align="center" cellpadding="0" cellspacing="0">
<?
$intime = date("Y-m-d H:i:s", time() - (int)(60 * 60 * 24));
$sql = " select bo_table, bo_subject from $g4[board_table] where gr_id = '$gr_id' order by bo_order_search";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++) {
$tmp_write_table = $g4[write_prefix] . $row[bo_table];
$sql2 = " select wr_datetime from $tmp_write_table where wr_datetime >= '$intime'";
$result2 = sql_query($sql2);
$total_count = mysql_num_rows($result2);
if ($row[bo_table] == $bo_table) {
echo "<tr>";
echo "<td width='23' valign='top'><img src='../$cata/images/left_menu_04.gif' width='23' height='26' name='$row[bo_table]' id='$row[bo_table]'></td>";
echo "<td width='110' background='../$cata/images/left_menu_05.gif' style='padding-top:2px;' align='right' nowrap><a href='$g4[path]/bless/board.php?bo_table=$row[bo_table]' onMouseOver=MM_swapImage('$row[bo_table]','','../$cata/images/left_menu_08.gif',1) onMouseOut=MM_swapImgRestore() class='left_menu' ><font color='#ff6600'>$row[bo_subject]</font></a>";
if ($total_count > 0) { echo " <span class=new>[$total_count]</span>"; }
echo "</td></tr>";
}
else {
echo "<tr>";
echo "<td width='23' valign='top'><img src='../$cata/images/left_menu_04.gif' width='23' height='26' name='$row[bo_table]' id='$row[bo_table]'></td>";
echo "<td width='110' background='../$cata/images/left_menu_05.gif' style='padding-top:2px;' align='right' nowrap><a href='$g4[path]/bless/board.php?bo_table=$row[bo_table]' onMouseOver=MM_swapImage('$row[bo_table]','','../$cata/images/left_menu_08.gif',1) onMouseOut=MM_swapImgRestore() class='left_menu' >$row[bo_subject]</a>";
if ($total_count > 0) { echo " <span class=new>[$total_count]</span>"; }
echo "</td></tr>";
}
}
?>
</table>
<!-- 왼쪽 메뉴 끝-->
댓글 전체
버튼 이미지 경로...

나름대로 해결~ ^^
아휴~~ 여러모로 즐겁네요!
아휴~~ 여러모로 즐겁네요!