본문 바로가기

컴퓨터/인터넷/네트웍/IT

개인용 검색엔진

반응형


이글은 공백페이지 는 search라는 제목의 없는 페이지를  채우기 위해서 만드는 것입니다.
깅왕 만들면서 실제로 구글이 제공하는 개인용 검색엔진 소스입니다.


구글 개인용 검색엔진 샘플

Loading 검색엔진


<!-- 서치 -->

<table style="border-width:1px; border-color:rgb(220,221,226); border-style:solid;" width="100%">

    <tbody><tr>

        <td>


          <div id="cse" style="width: 100%;">Loading 검색엔진</div>

<script src="//www.google.co.kr/jsapi" type="text/javascript"></script>

<script type="text/javascript">

google.load('search', '1', {language:'ko', style: google.loader.themes.V2_DEFAULT});

google.setOnLoadCallback(function() {

  var customSearchOptions = {};

  var imageSearchOptions = {};

  imageSearchOptions['layout'] = 'google.search.ImageSearch.LAYOUT_CLASSIC';

  customSearchOptions['enableImageSearch'] = true;

  var customSearchControl =   new google.search.CustomSearchControl('partner-pub-7372605513442392:ue9vq1-a32y', customSearchOptions);

  customSearchControl.setResultSetSize(google.search.Search.LARGE_RESULTSET);

  var options = new google.search.DrawOptions();

  customSearchControl.draw('cse', options);

}, true);

</script>

        </td>

    </tr>

</tbody></table>


<!--  서치  -->






반응형