多朋友推出的都是6.0版的.在7.0有很大变化.主要是针对7.0版本边栏模块做的修改,希望大家喜欢,
基本GG代码无变化,放心使用不会被K
涉及文件:/include/js/google.js
需要条件:adsense帐号
演示站点:http://www.lovey1314.com/bbs
注意事项:
1、务必修改google.js中的“pub-您的帐号”换成您的;
2、本插件为GBK版.其他编码请自行转换.
3、论坛后台相应操作:后台-工具-数据调用-边栏-边栏模块_Google搜索
代码说明:
说明:
1、将“pub-您的google数字帐号”换成您的google帐号;
2、将“document.writeln("<input type="hidden" name="domains" value="lovey1314.com"></input>");”中的lovey1314.com换成您的域名;
代码如下:
document.writeln("<!-- SiteSearch Google -->");
document.writeln("<form method="get" action="http://www.google.cn/custom" target="google_window">");
document.writeln("<input type="hidden" name="client" value="pub-您的google数字帐号"></input>");
document.writeln("<input type="hidden" name="forid" value="1"></input>");
document.writeln("<input type="hidden" name="channel" value="3512772407"></input>");
document.writeln("<input type="hidden" name="ie" value="GB2312"></input>");
document.writeln("<input type="hidden" name="oe" value="GB2312"></input>");
document.writeln("<input type="hidden" name="safe" value="active"></input>");
document.writeln("<input type="hidden" name="flav" value="0001"></input>");
document.writeln("<input type="hidden" name="sig" value="FsL0-p_oBq-Uv7Kr"></input>");
document.writeln("<input type="hidden" name="cof" value="GALT:#CC0000;GL:1;DIV:#ECF4FB;VLC:B8B3B3;AH:center;BGC:F6FAFE;LBGC:EDF4F9;ALC:000000;
LC:000000;T:3A73B2;GFNT:223472;GIMP:223472;LH:50;LW:404;L:http://lovey1314.com/SearchBanner.gif;S:http://lovey1314.com/bbs;FORID:1"></input>");
document.writeln("<input type="hidden" name="hl" value="zh-CN"></input>");
document.writeln("<table border="0" bgcolor="">");
document.writeln("<tr><td nowrap="nowrap" valign="top" align="left" height="32">");
document.writeln("<a href="http://www.google.com/">");
document.writeln("<img src="http://www.google.com/logos/Logo_25wht.gif" border="0" align="middle"></img></a>");
document.writeln("</td>");
document.writeln("<td nowrap="nowrap">");
document.writeln("<input type="hidden" name="domains" value="lovey1314.com"></input>");
document.writeln("<label for="sbi" style="display: none">输入您的搜索字词</label>");
document.writeln("<input type="text" name="q" size="10" maxlength="255" value="" id="sbi"></input>");
document.writeln("</br>");
document.writeln("<select name="sitesearch">");
document.writeln("<option value="">网页搜索</option>");
document.writeln("<option value="lovey1314.com" selected="selected">站内搜索</option>");
document.writeln("</select>");
document.writeln("<label for="sbb" style="display: none">提交搜索表单</label>");
document.writeln("</br>");
document.writeln("<input type="submit" name="sa" value="搜索" id="sbb"></input>");
document.writeln("</td></tr>");
document.writeln("</table>");
document.writeln("</form>");
document.writeln("<!-- SiteSearch Google -->")
gg.rar 下载了直接改里面的ID和网站地址
网友评论