Team:Peking/Google Parts

From 2010.igem.org

(Difference between revisions)
(Search the Registry with Google Engine)
Line 2: Line 2:
<html>
<html>
-
<form action="http://www.google.com/cse" id="cse-search-box">
+
<div id="cse" style="width: 100%;">Loading</div>
-
  <div>
+
<script src="http://www.google.com/jsapi" type="text/javascript"></script>
-
    <input type="hidden" name="cx" value="003596668401458118461:iq3_2fiujbk" />
+
<script type="text/javascript">
-
    <input type="hidden" name="ie" value="UTF-8" />
+
  google.load('search', '1', {language : 'en'});
-
    <input type="text" name="q" size="31" />
+
  google.setOnLoadCallback(function() {
-
     <input type="submit" name="sa" value="Search" />
+
     var customSearchControl = new google.search.CustomSearchControl('003596668401458118461:iq3_2fiujbk');
-
   </div>
+
    customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
-
</form>
+
    customSearchControl.draw('cse');
-
<script type="text/javascript" src="http://www.google.com/cse/brand?form=cse-search-box&lang=en"></script>
+
   }, true);
 +
</script>
 +
<link rel="stylesheet" href="http://www.google.com/cse/style/look/greensky.css" type="text/css" />
</html>
</html>

Revision as of 15:32, 17 May 2010

Search the Registry with Google Engine

Loading