Google推出Related Links

之前提到的Google的相关性内容的服务已经正式推出,不需要Google账户,仅需要3个简单的设置就可以使用。
颜色应该不必须使用Google提供的模板,自己可以修改成符合自己网页风格的。我在这个页面的底部放置了一个,不知道为什么没有显示出预想的效果,显示的是Related Searches,没有Related News&Web Pages。
有兴趣到Google Related Links获取代码试试。 : P
Google Related Links use the power of Google to automatically bring fresh, dynamic and interesting content links to any website. Webmasters can place these units on their site to provide visitors with links to useful information related to the site’s content, including relevant news, searches, and pages.
Learn more…




5 个评论
2006-04-04 20:19
嗯??不能赢利。。。 - +
2006-04-04 20:24
应该和Adsense效果差不多,只是我拿不到钱
2006-04-05 11:12
我把show_rc.js翻译了一下
//*************function m(), I name it PreParse()**************************************
function PreParse()
{
f= document.referer ;
b= document.location;
window.onerror= OnError;
window.google_rc[”format”]= “rc”;
if(window.google_rc[”width”]&& window.google_rc[”height”])
{
window.google_rc[”format”]= window.google_rc[”width”]+ “x”+ window.google_rc[”height”]+”_”+window.google_rc[”format”];
}
if(window.google_rc[”url”]==null)
{
window.google_rc[”url”]=f;
}
if(window.top.location==document.location)
{
window.google_rc[”url”]=b;
}
}
//*****************function h(), I name it parseURL()************************************
function parseURL()
{
strURL=”http://www.googlesyndication.com/relcontent/content?”
window.google_rc[”rand”]=new Date().getTime();
strURL+= fetchParam(”format”, window.google_rc[”format”]);
strURL+= fetchParam(”modules”, window.google_rc[”modules”]);
strURL+= fetchParam(”r”, window.google_rc[”rand”]);
strURL+= fetchParam(”c_line”, window.google_rc[”color_line”]);
strURL+= fetchParam(”c_bg”, window.google_rc[”color_bg”]);
strURL+= fetchParam(”c_footer”, window.google_rc[”color_footer”]);
strURL+= fetchParam(”c_header”,window.google_rc[”color_header”]);
strURL+= fetchParam(”c_text”, window.google_rc[”color_text”]);
strURL+= fetchParam(”c_link”, window.google_rc[”color_link”]);
strURL+= fetchParam(”c_source”, window.google_rc[”color_source”]);
strURL+= fetchParam(”client”, window.google_rc[”client”]);
strURL+= fetchParam(”url”, window.google_rc[”url”]);
strURL+= fetchParam(”alt_url”, window.google_rc[”alt_url”]);
strURL+= fetchParam(”cof”, window.google_rc[”cof”]);
DrawFrame(window,document,strURL);
clearVar(window); // the function can be replaced by:window.google_rc=null;
}
//*****************function g(),I name it makeStr()*****************
function makeStr(obj)
{
return obj!= null? ‘”‘+obj+’”‘:’”"‘;
}
//*****************function n(),I name it clearVar()************************************
function clearVar(win)
{
win.google_rc=null;
}
//*****************function j(),I name it DrawFrame()***************
function DrawFrame(win,doc,strURL)
{
strURL= strURL.substring(0,1000); //the length can be 1000? Idont believe it.
strURL= strURL.replace(/%\w?$/,”");
strWrite= ‘’;
doc.write(strWrite);
}
//*****************function l(), I name it OnError()********************
function OnError()
{
parseURL();
return true;
}
//**************** function d() ,I name it fetchParam()*****************
function fetchParam(a,c)
{
if(c){
switch(a){
case “modules”:
return fetchMod(c);
default:
return a+”=”+_enCode(c)+”&”;
}
}
return”"
}
//*****************function i() ,I name it fetchMod()***********************************
function fetchMod(arrObj)
{
if(typeof arrObj== “object”)
{
var str=”";
for(var i=0;i’;
doc.write(strWrite);
}
//*****************function l(), I name it OnError()********************
function OnError()
{
parseURL();
return true;
}
//**************** function d() ,I name it fetchParam()*****************
function fetchParam(a,c)
{
if(c){
switch(a){
case “modules”:
return fetchMod(c);
default:
return a+”=”+_enCode(c)+”&”;
}
}
return”"
}
//*****************function i() ,I name it fetchMod()***********************************
function fetchMod(arrObj)
{
if(typeof arrObj== “object”)
{
var str=”";
for(var i=0;i
2006-04-05 21:12
不给钱的Adsense
2006-04-06 19:58
请问谁知道怎么让链接在新窗口打开吗?
新闻页面覆盖了原本网站,人就走了,郁闷啊。。。
发表评论