登录发现更多内容
首页
分类
目录
索引
标签
酷站
用户名
Email
自动登录
找回密码
密码
登录
成为会员
只需一步, 快速开始
登录
立即登录
立即注册
其他登录
QQ
微信
新首页
Portal
观海听潮
小百科
创业沙龙
关于我们
酷站
科技资讯
搜索
搜索
本版
帖子
用户
活动
好友
帖子
收藏
道具
勋章
任务
动态
记录
门户
导读
排行榜
设置
我的收藏
退出
首页
›
快活林
›
猿氏悟语
›
把Google搜索换成自己的
0赞
赞赏
手机版
扫码打开手机版
把文字装进口袋
返回列表
把Google搜索换成自己的
[ 复制链接 ]
冰客
2008-9-21 11:30:33
在include/javascript/google.js文件中将下列代码
document.writeln('<script type="text/javascript">');
document.writeln('function validate_google(theform) {');
document.writeln(' if(theform.site.value == 1) {');
document.writeln(' theform.q.value = \'site:' + google_host + ' \' + theform.q.value;');
document.writeln(' }');
document.writeln('}');
document.writeln('function submitFormWithChannel(channelname) {');
document.writeln(' document.gform.channel.value=channelname;');
document.writeln(' document.gform.submit();');
document.writeln(' return;');
document.writeln('}');
document.writeln('</script>');
document.writeln('<form name="gform" id="gform" method="get" action="http://www.google.cn/search?" target="_blank" onSubmit="validate_google(this);">');
document.writeln('<input type="hidden" name="client" value="aff-discuz" />');
document.writeln('<input type="hidden" name="ie" value="' + google_charset + '" />');
document.writeln('<input type="hidden" name="oe" value="UTF-8" />');
document.writeln('<input type="hidden" name="hl" value="' + google_hl + '" />');
document.writeln('<input type="hidden" name="lr" value="' + google_lr + '" />');
document.writeln('<input type="hidden" name="channel" value="search" />');
document.write('<div onclick="javascript:submitFormWithChannel(\'logo\')" style="cursor:pointer;float: left;width:70px;height:23px;background: url(images/common/Google_small.png) !important;background: none;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'images/common/Google_small.png\', sizingMethod=\'scale\')"><img src="images/common/none.gif" border="0" alt="Google" /></div>');
document.writeln(' <input type="text" size="10" name="q" id="q" maxlength="255" value=""></input>');
document.writeln('<select name="site">');
document.writeln('<option value="0">网页搜索</option>');
document.writeln('<option value="1">站内搜索</option>');
document.writeln('</select>');
document.writeln(' <button type="submit" name="sa" value="true">搜索</button>');
document.writeln('</form>');
复制代码
将上面的代码里面的aff-discuz替换成自己的GG帐号?
麻烦懂的看看这样行不,行的话不会算作弊吧。。。。。。。
或许还要改哪里?
刚刚加入GG广告,还不太懂:lol
discuz
相关帖子
discuz的dreamhost的rewrite设置方法
修改论坛横版样式(包括板块图标、板块简介、显示子版和版主)
discuz6.1编辑器默认为简单功能的设置方法!
DISCUZ架构:AJAX之ajax.js 函数
瑞星发表声明称09新品遭恶意抹黑
Discuz! 的主动缓存和被动缓存
回复
使用道具
举报
提升卡
置顶卡
沉默卡
喧嚣卡
变色卡
显身卡
高级模式
B
Color
Image
Link
Quote
Code
Smilies
您需要登录后才可以回帖
立即登录
点评
本版积分规则
回帖后跳转到最后一页
综合
最新
热度
发表评论
冰客
关注
主题数2009
[急聘][全职/兼职]Linux服务器开发高级工程师-Python方向
阅读 295630
航天金税:小规模金税盘网上抄报说明
阅读 241145
11月26日,华为mate 8在上海正式发布
阅读 206774
发布新话题
小帖士
如果你不是特别对他的每一句话感兴趣,不要随意用"关注"人的功能,因为关注以后,他的所有发帖回帖都会以通知的方式提醒你的!
统计信息
会员数: 4660 个
话题数: 8707 篇
巅峰数: 8 人
首页
分类
目录
索引
我的
返回顶部