ميدياويكي:Googlesearch

من Youbianku
اذهب إلى التنقل اذهب إلى البحث

بحث داخلي

   <script type="text/javascript">
   //<![CDATA[
   function OnLoad() {
     // Create a search control
     var searchControl = new GSearchControl();
     // Add in a full set of searchers
     var siteSearch = new GwebSearch();
     siteSearch.setUserDefinedLabel("ar.youbianku.com");
     siteSearch.setUserDefinedClassSuffix("siteSearch");
     siteSearch.setSiteRestriction("ar.youbianku.com");

var options = new GsearcherOptions; options.setExpandMode(GSearchControl.EXPAND_MODE_OPEN);

     searchControl.addSearcher(siteSearch, options);

// searchControl.addSearcher(new GwebSearch(), options);

var options = new GdrawOptions(); options.setSearchFormRoot(document.getElementById("searchForm"));

     // tell the searcher to draw itself and tell it where to attach
     searchControl.draw(document.getElementById("searchcontrol-site-$1"), options);
     // execute an inital search
     searchControl.execute("$1");
   }
   GSearch.setOnLoadCallback(OnLoad);
   //]]>
   </script>
تحميل...

بحث الويب

   <script type="text/javascript">
   //<![CDATA[
   function OnLoad() {
     // Create a search control
     var searchControl = new GSearchControl();
     // Add in a full set of searchers
     var webSearch = new GwebSearch();

var options = new GsearcherOptions; options.setExpandMode(GSearchControl.EXPAND_MODE_OPEN);

     searchControl.addSearcher(new GwebSearch(), options);

var options = new GdrawOptions(); options.setSearchFormRoot(document.getElementById("searchForm"));

     // tell the searcher to draw itself and tell it where to attach
     searchControl.draw(document.getElementById("searchcontrol-web-$1"), options);
     // execute an inital search
     searchControl.execute("$1");
   }
   GSearch.setOnLoadCallback(OnLoad);
   //]]>
   </script>
تحميل...