본문 바로가기

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

구글 개인용 검색엔진

반응형

구글의 개인용 검색엔진 
구글은 개인검색엔진을 제공합니다.
프로모션을 옵션으로 부가하며 여러가지 디자인으로 바꿀수 있고 사이트서치등 융통성을 발휘할수 있게 준비하고 있습니다.
저의 계정으로 오래전에 세팅해 놓은것입니다.

스크립트를 동작시키면 아래와 같이 됩니다.
아래는 실제로 동작하는 구글 개인용 커스텀 서치엔진을 테이블에 배치한 검색창 모습입니다.

Loading



<!-- HTML 스크립트 구성 -->

<html>
<head>
<title>my site</title>  ... <head>
<body>
<div1>...</div1>
PASTE THE CODE HERE- 여기에 아래 코드를 붙여 넣는곳임. 
<div2>...</div2>
</body>
</html>

<!-- 코드(CODE) -->

<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>
<!-- 코드 끝 -->

[컴퓨터/인터넷/네트웍/IT] - 구글검색 결과에서 이미지나 포스팅 삭제하기

[컴퓨터/인터넷/네트웍/IT] - 유입경로로 보는 모바일 검색엔진

[컴퓨터/인터넷/네트웍/IT/소시얼네트웍(SNS)] - 중국검색엔진 목록

[컴퓨터/인터넷/네트웍/IT/소시얼네트웍(SNS)] - 일본검색 사이트 목록

[소프트웨어/스크립트천국] - 메타태그 알아보기







반응형