返回列表 发帖

哪位能把这个东东加到搜索栏里?

:P[size=3][color=Maroon]这是一个网友给马桶添加的Google站内搜索。哪位能人把它改编一下,加到TW的搜索栏里?[/color][/size]
  站内搜索=<script language="JavaScript">var searchText = external.m2_search_text;var root;var rooturl;getRoot();var URL="http://www.google.com/search?hl=zh-CN&ie=UTF-8&q=site:"+rooturl+"+"+encodeURIComponent(searchText);window.open(URL);function getRoot() {updir = location.href.substring(0,location.href.substring(0,location.href.length-1).lastIndexOf('/')+1);updir2 = location.href.substring(location.href.substring(0,location.href.length-1).lastIndexOf('http://'),location.href.length);updir2 = updir2.substring(7,location.href.length);if (updir.indexOf("htm#http") != -1 && updir2.indexOf("www") == 0 ){root="http://"+updir2;};if (updir.indexOf("htm#http") != -1 && updir2.indexOf("www") != 0 ){root="http://www."+updir2;};root=window.location.href.split("/");rooturl=root[2];};</script>

[[i] Last edited by yggcwx on 2005-5-16 at 04:00 PM [/i]]

Originally posted by ≡謃☆雲≡ at 2005-5-16 22:18:
Google搜索不是也有么  为什么还要加这个代码呢  我一般就用百度搜索的

  
  1.百度和 Google是好像不在一个档次吧?!  
  2.如果还有不清楚Google站内搜索是什么的,请到网上查一查。


[ Last edited by yggcwx on 2005-5-16 at 10:32 PM ]

TOP

Originally posted by 化外愚民 at 2005-5-17 09:24:
现在google也越来越不好用了。如果不是经常搜外文的话,baidu和yisou能完全代替了。搜狗我还没用过。

  呵呵,我怎么感觉多数时候baidu搜得不是很准,且比较乱;搜到的网页甚至有些时候并没有要搜的东西。

TOP

Originally posted by 沙鲸 at 2005-5-17 08:57:
因为用到了JavaScript,所以不好说可以不可以,我去试试~

  试过了吗,努力啊,别放弃!

TOP

Originally posted by 化外愚民 at 2005-5-17 09:24:
现在google也越来越不好用了。如果不是经常搜外文的话,baidu和yisou能完全代替了。搜狗我还没用过。

  至于一搜,试了好几回,不知怎么总会搜出带毒的页子;所以虽然它如日中天,偶却是不敢用di……

TOP

  多谢多谢,我明白了。很好用!
  老大可以再试一下百度的站内搜索怎么做吗?
  :cool:另外,目前俺还是无法回到TW里--没有搜索配置文件吗。以后会的!

[ Last edited by yggcwx on 2005-5-20 at 08:34 PM ]

TOP

返回列表