묻고답하기
검색, 구글 검색 엔진으로 바꾸는 방법
2010.06.29 17:41
제가 구글에서
SEARCH BOX CODE 론 이걸받고
<form action="http://dajkim8.freehostia.com" id="cse-search-box">
<div>
<input type="hidden" name="cx" value="partner-pub-3983282391260057:wow6f-fk4sd" />
<input type="hidden" name="cof" value="FORID:10" />
<input type="hidden" name="ie" value="ISO-8859-1" />
<input type="text" name="q" size="16" />
<input type="submit" name="sa" value="Search" />
</div>
</form>
<script type="text/javascript" src="http://www.google.com/cse/brand?form=cse-search-box&lang=en"></script>
SEARCH RESULTS CODE론 이걸받았거든요.
<div id="cse-search-results"></div>
<script type="text/javascript">
var googleSearchIframeName = "cse-search-results";
var googleSearchFormName = "cse-search-box";
var googleSearchFrameWidth = 800;
var googleSearchDomain = "www.google.com";
var googleSearchPath = "/cse";
</script>
<script type="text/javascript" src="http://www.google.com/afsonline/show_afs_search.js"></script>
제발 도와주세요.. 제가 쓰는 레이아웃에 ... 여기쯤에서 뭔가 바꿔야 하는거 같은데 ....
이거 search box 하고 search results 어디에 넣어야 하는지만 알려주세요 ㅠ
<div id="widgetWrapper">
<div id="header">
<h1><a href="{$layout_info->index_url}" title="<index_name)-->Paper">!--@if(!$layout_info->index_name)-->Paper Layer Layout<{$layout_info->index_name}">Paper'>!--@else-->{$layout_info->index_name}<!--@end-->"><!--@if(!$layout_info->index_name)-->Paper Layer<{$layout_info->index_name}!--@else-->{$layout_info->index_name}<!--@end--><span <logo_image)-->style="background:url({$layout_info->logo_image)>!--@if($layout_info->logo_image)-->style="background:url({$layout_info->logo_image}) no-repeat;"<>!--@end-->></span></a></h1>
</div>
<div id="widget">
<div id="widget_search">
<form action="{getUrl()}" method="post" id="isSearch">
<input type="hidden" name="mid" value="{$mid}" />
<input type="hidden" name="act" value="IS" />
<input name="is_keyword" type="text" class="inputText" title="keyword" />
</form>
</div>
<div class="widget_div">
<p class="widget widget_title">Category</p>
<div class="widget_content">
<ul id="widget_menu">
<list">!--@foreach($main_menu->list as $key => $val)--><!--@if($val['link'])-->
<li<!--@if($val['selected'])--> class="itemSelect" {@$menu_1st = $val}<>!--@end-->><a href="{$val['href']}" <onclick="window.open(this.href);return">!--@if($val['open_window']=='Y')-->onclick="window.open(this.href);return false;"<>{$val['link']}!--@end-->>{$val['link']}</a>
<!--@if($val['selected'])-->
<!--@foreach($menu_1st['list'] as $key => $val)--><!--@if($val['link'])-->
<p><a<!--@if($val['selected'])--> class="widget_menu_2nd item_on"<!--@else--> class="widget_menu_2nd"<!--@end--> href="{$val['href']}" <onclick="window.open(this.href);return">!--@if($val['open_window']=='Y')-->onclick="window.open(this.href);return false;"<>{$val['link']}!--@end-->>{$val['link']}</a></p>
<