삭제 > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

삭제 정보

삭제

본문

삭제

댓글 전체

프레임 나눠야겠네요. 그다음에 상단에 form target 은 모두 아래쪽으로하구요

이거참고하세요^^예전에 만들었던건데....
target값 은 하단프레임으로 고쳐야합니다.

======================================

<?
$rn=array("희선이","밀애","효성","빼빼로데이","IT대한민국","인터넷 일기장");
$naver=$rn[rand(0,9)];
?>
<html>
<title>SEARCH</title>
<meta http-equiv='Content-Type' content='text/html; charset=euc-kr'>
<style type='text/css'>
td,body{font-family:verdana;font-size:9pt}
.box{border:1 solid;font-family:verdana;}
a{color:0068BD;text-decoration:none;cursor:hand}
</style><!---->
<SCRIPT language=javascript>
function selectAction(f) {
if(navigator.appVersion.indexOf("MSIE 3") != -1) return true;
a=f.where[f.where.selectedIndex].value;
if(a=="news") f.action = "http://newssearch.naver.com/search.naver";
else if(a=="image") f.action = "http://imagesearch.naver.com/search.naver";
else if(a=="sound") f.action = "http://soundsearch.naver.com/search.naver";
else if(a=="dic") f.action = "http://dic.naver.com/endic";
else if(a=="100") f.action = "http://100.naver.com/search.naver";
else if(a=="krdic") f.action = "http://krdic.naver.com/krdic";
else if(a=="jpdic") f.action = "http://jpdic.naver.com/jpdic";
else if(a=="document") f.action = "http://document.naver.com/search.naver";
else if(a=="quiz") f.action = "http://lovequiz.naver.com/search.naver";
else if(a=="stock") f.action = "http://stock.naver.com/naverstock";
else f.action = "http://search.naver.com/search.naver";
return true;
}
function che(c){
with(document){
for(i=0;i<3;i++)
all['d'+i].style.visibility='hidden';
all['d'+c].style.visibility='visible';
if(c==0){
f.query.value=f.comm.value;
f.query.focus();
}else if(c==1){
forms[1].p.value=f.comm.value;
forms[1].p.focus();
}else if(c==2){
forms[2].q.value=f.comm.value;
forms[2].q.focus();
}}}
function ilch(c){
document.f.comm.value=c.value;
}
</SCRIPT>
<body topmargin='5' onload='document.f.query.focus()'>
<table border='0' cellpadding='0' cellspacing='0'>
<tr>
<map name=bt>
<area shape=rect coords="14,11,70,63" href=javascript: alt=검색엔진>
<area shape=rect coords="75,11,128,63" href=ift_mail.php alt=이메일확인>
</map>
<td><img src=img/if_srch1.jpg ismap usemap="#bt" border=0></td>
<td background=img/if_mailbg.jpg>&nbsp;
<a href=javascript: onClick=che(0)>네이버</a> | <a href=javascript: onClick=che(1)>야후</a> | <a href=javascript: onClick=che(2)>심마니</a>

<DIV id=d0>
<table>
<FORM name=f method=get action=http://search.naver.com/search.naver target=_blank onSubmit="return selectAction(this);">
<INPUT type=hidden name=comm value=<?=$naver?>>
<INPUT type=hidden name=nfid value=sangemi>
<TR>
<TD nowrap align=right>
<SELECT name=where style='height:21px; font-family:gulim; font-size:10pt'>
<OPTION value=nexearch selected>통합검색
<OPTION value=web>웹문서
<OPTION value=news>뉴스
<OPTION value=image>이미지
<OPTION value=sound>MP3/사운드
<OPTION value=dic>영어사전
<OPTION value=krdic>국어사전
<OPTION value=jpdic>일어사전
<OPTION value=100>백과사전
<OPTION value=document>리포트/문서
<OPTION value=quiz>퀴즈검색
<OPTION value=stock>증권검색
</SELECT></SMALL>
<INPUT type=text class=box name=query size=20 maxlength=250 onFocus=this.select() value="<?=$naver?>" onKeyup=ilch(this)>
</TD>
<TD nowrap><INPUT type=image src=img/bn_sch.gif border=0>
</TR>
</FORM>
</table>
</DIV>
<DIV id=d1 style=position:absolute;right:130;top:38;visibility:hidden>
<nobr>
<form method=GET action=http://kr.search.yahoo.com/bin/search target=_blank>
  <input type=text name=p size=18 onFocus=this.select() value="<?=$naver?>" onKeyup=ilch(this)>
  <input type=submit value=검색>
  <a href=http://kr.help.yahoo.com/help/ysearch/ysearch-1.html target=_blank>옵션</a>
</form>
</DIV>

<DIV id=d2 style=position:absolute;right:144;top:38;visibility:hidden>
<form method=get action='http://search.empas.com/search/all.html' target=_blank>
<input type=hidden name=s value=s><input type=hidden name=e value=1><input type=hidden name=n value=10>
<input type=text name=q size=20 maxlength='40' onKeyup=ilch(this) onFocus=this.select()>
<input type=submit value=검색 name='submit'>
</form>
</DIV>

</td>
<td><img src=img/if_mail2.jpg></TD>
</tr>
</table>
</body>
</html>
소스 중에
<FORM name=f method=get action=http://search.naver.com/search.naver target=_blank onSubmit="return selectAction(this);">
<FORM ..동일.. target=name_of_bottom_frame>

식으로 적어주면됩니다.

프레임을
<FRAME name=name_of_top_frame>
<FRAME name=name_of_top_frame>
식으로 나누구요
전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT