MediaWiki:Googlesearch/zh-tw

出自 027
前往: 導覽搜尋

站内搜索

   <link href="http://www.google.com/uds/css/gsearch.css" type="text/css" rel="stylesheet"/>
   <script src="http://www.google.com/uds/api?key=ABQIAAAAsec4RV8oAB2Dy0WfBAQeBRT0EJiTcxnQX5mNMdafDDZVtK_uaBQAj_p5VRxzvyfxthdsxzIFQmqvSg&file=uds.js&v=1.0" type="text/javascript"></script>
   <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("tw.027.cn");
     siteSearch.setUserDefinedClassSuffix("siteSearch");
     siteSearch.setSiteRestriction("tw.027.cn");

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>
载入中......

网络搜索

   <link href="http://www.google.com/uds/css/gsearch.css" type="text/css" rel="stylesheet"/>
   <script src="http://www.google.com/uds/api?key=ABQIAAAAsec4RV8oAB2Dy0WfBAQeBRT0EJiTcxnQX5mNMdafDDZVtK_uaBQAj_p5VRxzvyfxthdsxzIFQmqvSg&file=uds.js&v=1.0" type="text/javascript"></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>
载入中......

<form method="get" action="http://www.google.com/search" id="googlesearch">

   <input type="hidden" name="domains" value="https://tw.027.cn" />
   <input type="hidden" name="num" value="50" />
   <input type="hidden" name="ie" value="$2" />
   <input type="hidden" name="oe" value="$2" />
   <input type="text" name="q" size="31" maxlength="255" value="$1" />
   <input type="submit" name="btnG" value="$3" />
   <input type="radio" name="sitesearch" id="gwiki" value="https://tw.027.cn" checked="checked" /><label for="gwiki">027</label>
   <input type="radio" name="sitesearch" id="gWWW" value="" /><label for="gWWW">WWW</label>

</form>