利用Google搜索本网站的代码.(收集)function SearchGoogle(key,evt,site) { if(evt.keyCode==13 || evt.keyCode==0) { key.focus(); var keystr = encodeURIComponent(key.value); //url ="http://www.google.com/custom?domains="+site+"&q="; //url += keystr+"&sitesearch="+site+"&client=pub-4210569241504288&forid=1&ie=UTF-8&oe=GB2312&cof=GALT%3A%23008000%3BGL%3A1%3BDIV%3A%23EEEEFF%3BVLC%3A663399%3BAH%3Acenter%3BBGC%3AFFFFFF%3BLBGC%3AEEEEFF%3BALC%3A0000FF%3BLC%3A0000FF%3BT%3A000000%3BGFNT%3A0000FF%3BGIMP%3A0000FF%3BLH%3A28%3BLW%3A100%3BL%3Ahttp%3A%2F%2Fwww.cnblogs.com%2Fimages%2Fsearchlogo.gif%3BS%3Ahttp%3A%2F%2Fwww.cnblogs.com%3BLP%3A1%3BFORID%3A1%3B&hl=zh-CN"; url = "http://www.google.com/search?q="; url = url+keystr; url += "&ie=UTF-8&oe=GB2312&hl=zh-CN&domains=cnitblog.com&sitesearch=http://www.cnitblog.com/jincaogg/";//你的网站地址 window.location=url; return false; } } </script>