[php] 구글검색을 이용한 검색창 달기
페이지 정보
본문
검색으로인해 서버부화가 많이 생기면 이렇게 이용해 보세요..
**************************
<form id="fsearchbox" method="get" action="#" onsubmit="return fsearch_submit(this)" target="_blank">
<input type="hidden" name="q" />
<input type="hidden" name="ie" value="utf-8" />
<input type="text" name="qstr" class="text" />
<input type="submit" name="sa" class="bt_bg03 bt_border03" style="width:45px" value="검색" />
</form>
<script>
function fsearch_submit(f)
{
f.q.value = "site:zeronara.net " + f.qstr.value;
f.action = "http://google.com/search";
return true;
}
</script>
**************************
<form id="fsearchbox" method="get" action="#" onsubmit="return fsearch_submit(this)" target="_blank">
<input type="hidden" name="q" />
<input type="hidden" name="ie" value="utf-8" />
<input type="text" name="qstr" class="text" />
<input type="submit" name="sa" class="bt_bg03 bt_border03" style="width:45px" value="검색" />
</form>
<script>
function fsearch_submit(f)
{
f.q.value = "site:zeronara.net " + f.qstr.value;
f.action = "http://google.com/search";
return true;
}
</script>
추천0