You are viewing an old revision of this post, from September 26, 2012 @ 16:42:48. See below for differences between this version and the current revision.

Cari dengan Google

Loading

Revisions

Revision Differences

September 26, 2012 @ 16:42:48Current Revision
Content
  <div id="cse" style="width: 100%;">Loading</div>
  <script src="http://www.google.com/jsapi" type="text/javascript"></script>
  <script type="text/javascript">
   google.load('search', '1', {language : 'id', style : google.loader.themes.GREENSKY});
<!-- Put the following javascript before the closing </head> tag. -->  google.setOnLoadCallback(function() {
<script>  
(function() {  
   var customSearchOptions = {};
   var orderByOptions = {};
   orderByOptions['keys'] = [{label: 'Relevance', key: ''},{label: 'Date', key: 'date'}];
   customSearchOptions['enableOrderBy'] = true;
   customSearchOptions['orderByOptions'] = orderByOptions;
   var imageSearchOptions = {};
   imageSearchOptions['layout'] = google.search.ImageSearch.LAYOUT_POPUP;
   customSearchOptions['enableImageSearch'] = true;
   customSearchOptions['imageSearchOptions'] = imageSearchOptions;
   customSearchOptions['adoptions'] = {'layout': 'noTop'};
   var customSearchControl = new google.search.CustomSearchControl(
var cx = '015470088575789737025: 4cxyw5qoite';   '015470088575789737025: 4cxyw5qoite', customSearchOptions);
var gcse = document.createElement('script'); gcse.type = 'text/javascript'; gcse.async = true;  
gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +  
'//www.google.com/ cse/cse.js?cx=' + cx;  
var s = document.getElementsByTagName( 'script')[0]; s.parentNode.insertBefore(gcse, s);  
})();  
   customSearchControl.setResultSetSize( google.search.Search.FILTERED_ CSE_RESULTSET);
   customSearchControl.draw('cse');
   }, true);
</script> </script>
<!-- Place this tag where you want both of the search box and the search results to render -->  
<gcse:search> </gcse:search>  

Note: Spaces may be added to comparison text to allow better line wrapping.

No comments yet.

Leave a Reply