Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- var googleCtrl;
- var Search;
- google.load('search', '1', {language : 'sv', style : google.loader.themes.MINIMALIST});
- google.setOnLoadCallback(function() {
- var customSearchControl = new google.search.CustomSearchControl('010402539020160411713:vamu1c4kn6i');
- googleCtrl = customSearchControl;
- customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
- var options = new google.search.DrawOptions();
- options.setSearchFormRoot('cse-search-form');
- customSearchControl.draw('cse', options);
- if(Search != null)
- googleCtrl.execute(Search);
- }, true);
- function searchGoogle(input) {
- if(googleCtrl == null)
- {
- Search = input;
- } else {
- googleCtrl.execute(input);
- }
- }
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement