Team:Peking S/copy

From 2011.igem.org

(Difference between revisions)
Line 6: Line 6:
<body>
<body>
-
<div id="cse" style="width: 30%;">Loading</div>
+
<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 : 'en', style : google.loader.themes.GREENSKY});
+
   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:owljkbh529o');
+
     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