제나 아빠님 안녕하세요.^^
본문
댓글목록 4
제로님의 댓글의 댓글
제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 작성일
<table width="<?=$table_width?>" cellspacing="0" cellpadding="0">
<tr>
<td width="<?=$hleft?>" height="<?=$htop?>"></td>
<td height="2" align="right">
<!--소스나라 학습예제http://www.sourcenara.com-->
<script language="JavaScript1.2">
var favoriteurl="http://zeronara.net"
var favoritetitle="ZERONARA -제나-"
function addfavorites(){
if (document.all)
window.external.AddFavorite(favoriteurl,favoritetitle)}
</script>
<!--이미지로 할 경우-->
<a href="javascript:addfavorites()">즐겨찾기추가</a>
</td>
<td width="<?=$hcenter2?>"></td>
<td width="<?=$tright?>"></td>
</tr>
</tr>
</table>
<table width="<?=$table_width?>" cellspacing="0" cellpadding="0">
<tr>
<td width="<?=$hleft?>"></td>
<td width="6"><img src="<?=$g4['path']?>/img/tbg_03.gif" width="6" height="60" border="0"></td>
<td width="210" align="center" background="<?=$g4['path']?>/img/tbg_02.gif"><a href="<?=$g4['path']?>/"><img src="<?=$g4['path']?>/img/logo.gif" width="190" height="60" border="0"></a></td>
<td width="404" align="right" background="<?=$g4['path']?>/img/tbg_02.gif">
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td align="right" >
<!-- 검색 시작 -->
<table width="374" height="40" cellspacing="0" cellpadding="0" align="right">
<form name="fsearchbox" method="get" action="javascript:fsearchbox_submit(document.fsearchbox);">
<input type="hidden" name="sfl" value="wr_subject">
<input type="hidden" name="sop" value="and">
<tr>
<td width="5"></td>
<td width="90" align="center" style="padding-top:1px;">
<?
$group_select = "<select id='gr_id' name='gr_id'><option value=''>통합검색 ▒";
// 제외그룹설정 root님
// html , banner , guest 라는 그룹은 제외시킴
$sql = " select * from $g4[group_table] where gr_id not in ('html', 'banner', 'guest') order by gr_1";
//$sql = " select gr_id, gr_subject from $g4[group_table] order by gr_id ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++)
$group_select .= "<option value='$row[gr_id]'>$row[gr_subject]";
$group_select .= "</select>";
?>
<?=$group_select?>
</td>
<td width="10"></td>
<td width="220" valign="middle" align="center">
<input name="stx" maxlength="30" class="text_box" tabindex="1" size="33"></td>
<td width="5"></td>
<td width="40" align="center">
<input type="image" src="<?=$g4[path]?>/img/search_button.gif" border="0"></td>
<td width="4"></td>
</tr>
</form>
</table>
<script language="JavaScript">
function fsearchbox_submit(f)
{
if (f.stx.value == '')
{
alert("검색어를 입력하세요.");
f.stx.select();
f.stx.focus();
return;
}
/*
// 검색에 많은 부하가 걸리는 경우 이 주석을 제거하세요.
var cnt = 0;
for (var i=0; i<f.stx.value.length; i++)
{
if (f.stx.value.charAt(i) == ' ')
cnt++;
}
if (cnt > 1)
{
alert("빠른 검색을 위하여 검색어에 공백은 한개만 입력할 수 있습니다.");
f.stx.select();
f.stx.focus();
return;
}
*/
f.action = "<?=$g4['bbs_path']?>/search.php";
f.submit();
}
</script>
<!-- 검색 끝 -->
</td>
</tr>
<tr>
<TD align="right">
<a href="<?=$g4['bbs_path']?>/group.php?gr_id=z1"><font color=#ffffff><b>홈페이지제작</b></font></a>
<font color=#ffffff><b>ㅣ</b></font>
<a href="<?=$g4['bbs_path']?>/group.php?gr_id=z2"><font color=#ffffff><b>빌더</b></font></a>
<font color=#ffffff><b>ㅣ</b></font>
<a href="<?=$g4['bbs_path']?>/group.php?gr_id=z3"><font color=#ffffff><b>커뮤니티</b></font></a>
<font color=#ffffff><b>ㅣ</b></font>
<a href="<?=$g4['bbs_path']?>/group.php?gr_id=z5"><font color=#ffffff><b>추천사이트</b></font></a>
<font color=#ffffff><b>ㅣ</b></font>
<a href="<?=$g4['bbs_path']?>/group.php?gr_id=z6"><font color=#ffffff><b>자료실</b></font></a>
<font color=#ffffff><b>ㅣ</b></font>
<a href="<?=$g4['bbs_path']?>/group.php?gr_id=z4"><font color=#ffffff><b>쇼핑</b></font></a>
</TD>
</tr>
</table>
</td>
<td width="244" align="right" background="<?=$g4['path']?>/img/tbg_02.gif"><a href="<?=$g4['path']?>/"><img src="<?=$g4['path']?>/img/rightlogo.gif" width="224" height="60" border="0"></a></td>
<td width="10" align="right" background="<?=$g4['path']?>/img/tbg_02.gif"></td>
<td width="6"><img src="<?=$g4['path']?>/img/tbg_01.gif" width="6" height="60" border="0"></td>
<td width="<?=$hcenter2?>"></td>
<td width="<?=$tright?>"></td>
</tr>
</table>
제가 현제 사용하고 있는 소스입니다..배너는 스킨으로 대처해도 무방합니다~
제로님의 댓글
제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 작성일검색바 아래에 있는 상단 그룹메뉴는 임의로 지정을 한것입니다~