| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 
 |     <script language="Javascript" type="text/javascript">//<![CDATA[ 
 
      function OnLoad() { 
 
        // create a search control 
        var 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);
 
        var options1 = new GsearcherOptions(); 
        options1.setRoot(document.getElementById("somewhere_else")); 
        searchControl.addSearcher(new GlocalSearch(), options1); 
 
        var options2 = new GsearcherOptions(); 
        options2.setRoot(document.getElementById("somewhere_else")); 
        searchControl.addSearcher(new GblogSearch(), options2);
 
        // tell the searcher to draw itself and tell it where to attach 
        searchControl.draw(document.getElementById("search_control")); 
 
        // execute an inital search 
//        searchControl.execute("Ferrari Enzo"); 
      } 
      GSearch.setOnLoadCallback(OnLoad); 
    //]]> 
    </script> | 
Partager