2013-02-20 4 views
1

내 페이지 상단에 GET 양식이 있지만 아직 구성되지 않았습니다. 내가 가지고있는 것 :맞춤 양식을 사용하는 Google CSE

<div class="top-search"> 
     <form method="get" id="searchform" action="#"> 
      <div> 
       <input type="text" value="Search..." name="s" id="s" onfocus="defaultInput(this)" onblur="clearInput(this)" /> 
       <input type="submit" id="searchsubmit" value=" " /> 
      </div> 
     </form> 
    </div> 

Google CSE를 사용하려면 어떻게해야합니까?

답변

3

아무도 대답하지 않기로 결정한 것처럼 보였습니다. 나 자신을 발견했습니다.

<div class="top-search"> 
     <form id="searchform" action="http://www.google.com/cse"> 
      <div> 
       <input type="hidden" name="cx" value="xxxx" /> 
       <input type="hidden" name="ie" value="UTF-8" /> 
       <input type="text" value="" name="q" id="q" autocomplete="off" /> 
       <input type="submit" id="searchsubmit" name="sa" value=" " /> 
      </div> 
     </form> 

    </div> 

"xxxx"는 제어판의 기본 페이지에있는 검색 엔진 고유 ID입니다.

+0

감사합니다. 훌륭한 출발점입니다. Google cse는 모든 사이트의 논리적 인 옵션처럼 보이며 Google 색인으로 귀하의 사이트를 볼 수 있습니다. 출력 된 코드가 광산 필드라는 것은 부끄러운 일입니다. 이제 스타일 시트의 연관을 해제해야합니다. – onebitrocket