Team:Peking/Google Parts

From 2010.igem.org

(Difference between revisions)
 
(12 intermediate revisions not shown)
Line 1: Line 1:
-
==="""Search the Registry with Google Engine"""===
+
 
 +
===Search the Registry with Google Engine===
<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>
 +
 +
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 !!!