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

정렬에 대해서 질문

· 15년 전 · 1568 · 4
<!-- 검색 시작 -->
<table width="<?=$table_width?>" cellspacing="0" cellpadding="0">
<p align="left"><?=outlogin("outlogin_tu"); // 외부 로그인 ?></p>
</table>
<table width="300" height="22" border="0" cellspacing="0" cellpadding="0">
<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="60" align="left"><img src="<?=$g4[path]?>/scbar/img/search_fr.gif" width="56" height="19" border=0 align=absmiddle></td>
<td align="center"><input name="stx" maxlengt=20 onblur="this.style.background='#ffffff'"
style="BORDER-RIGHT: rgb(204,204,204) 1px solid; BORDER-TOP: rgb(204,204,204) 1px solid; BACKGROUND-IMAGE: url(http://dmbuser.com/search/images/sc_bg.gif); BORDER-LEFT: rgb(204,204,204) 1px solid; WIDTH: 190px; BORDER-BOTTOM: rgb(204,204,204) 1px solid; HEIGHT: 19px"
onfocus="this.style.background='#ffffff'" size="20" maxlength="20"></td>
<td width="51" align="right"> <input type="image" src="<?=$g4[path]?>/scbar/img/scin.gif" width="47" height="21" border="0"></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>
<hr width="<?=$table_width?>">
<!-- 검색 끝 -->

코드가 이렇게 되어있거든요?
http://yusia.pe.kr/gb4 이 주소가 작업중인 사이트구요.
외부로그인을 왼쪽에 배치시키고, 검색창을 같은 줄 오른쪽에 배치하고 싶은데,
어떻게 해야 하나요?

댓글 작성

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

로그인하기

댓글 4개

<table width="<?=$table_width?>" cellspacing="0" cellpadding="0">
<tr>
<td align="left">
<?=outlogin("outlogin_tu"); // 외부 로그인 ?>
</td>
<td width="300" border="0" cellspacing="0" cellpadding="0">
<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">
</td>
<td width="60" align="left"><img src="<?=$g4[path]?>/scbar/img/search_fr.gif" width="56" height="19" border=0 align=absmiddle></td>
<td align="center"><input name="stx" maxlengt=20 onblur="this.style.background='#ffffff'"
style="BORDER-RIGHT: rgb(204,204,204) 1px solid; BORDER-TOP: rgb(204,204,204) 1px solid; BACKGROUND-IMAGE: url(http://dmbuser.com/search/images/sc_bg.gif); BORDER-LEFT: rgb(204,204,204) 1px solid; WIDTH: 190px; BORDER-BOTTOM: rgb(204,204,204) 1px solid; HEIGHT: 19px"
onfocus="this.style.background='#ffffff'" size="20" maxlength="20"></td>
<td width="51" align="right"> <input type="image" src="<?=$g4[path]?>/scbar/img/scin.gif" width="47" height="21" border="0"></td>
</tr>
</form>
</table>

이렇게 하면 되실듯 하네요 실험을 안해 보았습니다 안되시면 댓글 달아 주세요.
잘 되긴 합니다만,
상하로 5~8px정도 떨어뜨렸으면 하는데....
어떻게 해야 하나요?
최산단을

<table width="<?=$table_width?>" cellspacing="0" cellpadding="0" style="margin:7px 0px 7px 0px">

이렇게 해주시고요 7px 부분을 원하는 px로 변경 해주세요
감사합니다.
하지만 채택은 전체적인 코드를 제공해주신 분을 채택할게요 ^^;

게시글 목록

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