Team:Peking S/copy
From 2011.igem.org
(Difference between revisions)
Line 6: | Line 6: | ||
<body> | <body> | ||
- | <div id="cse" style="width: | + | <div id="cse" style="width: 100%;">Loading</div> |
<script src="http://www.google.com/jsapi" type="text/javascript"></script> | <script src="http://www.google.com/jsapi" type="text/javascript"></script> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
- | google.load('search', '1', {language : ' | + | google.load('search', '1', {language : 'zh-CN', style : google.loader.themes.GREENSKY}); |
google.setOnLoadCallback(function() { | google.setOnLoadCallback(function() { | ||
- | var customSearchControl = new google.search.CustomSearchControl('016223350660571007381: | + | var customSearchControl = new google.search.CustomSearchControl('016223350660571007381:aqb6zhp3q7e'); |
customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET); | customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET); | ||
- | customSearchControl.draw('cse'); | + | var options = new google.search.DrawOptions(); |
+ | options.setAutoComplete(true); | ||
+ | customSearchControl.draw('cse', options); | ||
}, true); | }, true); | ||
</script> | </script> | ||
+ | |||
Revision as of 09:55, 19 July 2011
Loading