Team:Peking/Google Parts

From 2010.igem.org

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

Latest revision as of 13:46, 10 July 2010

Search the Registry with Google Engine

Loading

It is much more powerful than search engine of partsregistry itself. Try it !!!