google站內搜尋,沒有和部落格園一樣最上面的圖片

來源:互聯網
上載者:User

 

<td align="right">
         <script type="text/javascript">
           function doClick(e)
            {
               var key;

              if(window.event)
                 key = window.event.keyCode;     //IE
              else
                 key = e.which;     //firefox
   
              if (key == 13)
               {
                  //Get the button the user wants to have clicked
                  var btn = document.getElementById("googleBtn");
                   if (btn != null)
                   { //If we find the button click it
                      //btn.click();
                      googlesearch();
                      event.keyCode = 0
                    }
                }
                return false;
           }
           function googlesearch ()
           {
              var site="www.hzxltz.com";
              var cof="GALT:#008000;GL:1;DIV:#336699;VLC:663399;AH:center;BGC:FFFFFF;LBGC:336699;ALC:0000FF;LC:0000FF;T:000000;GFNT:0000FF;GIMP:0000FF;FORID:1";
              var searchText=document.getElementById("googleText").value;
              //var link="http://www.google.com/search?domains=www.hzxltz.com&sitesearch=www.hzxltz.com&q="+searchText;
              //var link="http://www.baidu.com/s?si=www.hzxltz.com&cl=3&ct=2097152&tn=baidulocal&word="+searchText;
              var link = "http://www.google.cn/custom?&domains="+site+"&q=";
              link = link+searchText;
              link += "&sa=%CB%D1%CB%F7&sitesearch="+site +"&forid=1&ie=UTF-8&oe=GB2312&cof=" +cof+"&hl=zh-CN";
              window.open(link);
              return false;
           }
        </script>
        <input type="text" onkeydown="doClick(event)" id="googleText" class="input"/>&nbsp;&nbsp;<input id="googleBtn" type="button" class="button" onclick="return googlesearch();" value="搜 索" />

      </td>  

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.