All pastes #443883 Raw Edit

Someone

public text v1 · immutable
·published 2007-04-17 02:06 UTC
rendered paste body
this the standart part for the api i think..
<style type="text/css">
      @import url(../../css/gsearch.css);

      body *, table *,
      body {
        font-family: "trebuchet ms", verdana, sans-serif;
        font-size: 13px;
      }

      #search_control { margin: 20px; }
    </style>

    <link href="http://www.google.com/uds/css/gsearch.css" type="text/css" rel="stylesheet"/>
 <script src="http://www.google.com/uds/api?file=uds.js&amp;v=1.0&amp;key=ABQIAAAA5CuutGukJCKWC1jfRcvofRSp9Yx0m5W-Kn-Ia094v5biI1UVjRQyszdfZ1yA2YulewgrzeELhKS3TQ" type="text/javascript"></script>

 <script src="branding_files/api" type="text/javascript"></script><script src="branding_files/uistrings.js" type="text/javascript"></script><script src="branding_files/uds_compiled.js" type="text/javascript"></script>

    <script language="Javascript" type="text/javascript">//<![CDATA[
 var searchControl;
function OnLoad() {
        

        // create a search control
         searchControl = new GSearchControl();

        // web search, open, alternate root
        var options = new GsearcherOptions();
       // options.setExpandMode(GSearchControl.EXPAND_MODE_OPEN);
        options.setRoot(document.getElementById("somewhere_else"));
        searchControl.addSearcher(new GwebSearch(), options);

        //searchControl.addSearcher(new GlocalSearch());
        //searchControl.addSearcher(new GblogSearch());

        // tell the searcher to draw itself and tell it where to attach
        searchControl.draw(document.getElementById("search_control"));

        // execute an inital search
        searchControl.execute("what is larva?");
      }
      GSearch.setOnLoadCallback(OnLoad);
    //]]>


  </script>



//this the part i got from the sample (the problem i'm facing)


  <H5 align=center><u>Ask A Question!!!</U></H5>
  <div align=center id="search_control">
 
<div class="gsc-control"><form accept-charset="utf-8" class="gsc-search-box">
  <table class="gsc-search-box" cellpadding="0" cellspacing="0">
  <tbody>
  <tr>
 <td class="gsc-input"><input class="gsc-input" size="50" autocomplete="off" type="text"></td><td class="gsc-search-button"><input title="search" class="gsc-search-button" value="Search" type="submit"></td><td class="gsc-clear-button"><div title="clear results" class="gsc-clear-button">&nbsp;</div>
</td></tr></tbody></table>
  <table class="gsc-branding" cellpadding="0" cellspacing="0"><tbody><tr><td class="gsc-branding-user-defined"></td><td class="gsc-branding-text"><div class="gsc-branding-text">powered by</div></td><td class="gsc-branding-img"><img class="gsc-branding-img" src="speech/small-logo.png">