qtdswu 2008-7-1 22:34
教你怎样添加自己的GG搜索栏
有所得,必有所失。预览[url=http://qtdswu.tech.topzj.com]http://qtdswu.tech.topzj.com[/url]
[quote]<div style="right: 650px; position: absolute; top: 100px">
<!-- Search Google -->
<center>
<form method="get" action="http://www.google.com/custom" target="_top">
<table bgcolor="#ffffff">
<tr><td nowrap="nowrap" valign="top" align="left" height="32">
<a href="http://www.google.com/">
<img src="http://www.google.com/logos/Logo_25wht.gif" border="0" alt="Google" align="middle"></img></a>
<label for="sbi" style="display: none">输入您的搜索字词</label>
<input type="text" name="q" size="31" maxlength="255" value="" id="sbi"></input>
<label for="sbb" style="display: none">提交搜索表单</label>
<input type="submit" name="sa" value="搜索" id="sbb"></input>
<input type="hidden" name="client" value="pub-7532722777424493"></input>
<input type="hidden" name="forid" value="1"></input>
<input type="hidden" name="ie" value="GB2312"></input>
<input type="hidden" name="oe" value="GB2312"></input>
<input type="hidden" name="cof" value="GALT:#008000;GL:1;DIV:#336699;VLC:663399;AH:center;BGC:FFFFFF;LBGC:336699;ALC:0000FF;LC:0000FF;T:000000;GFNT:0000FF;GIMP:0000FF;FORID:1"></input>
<input type="hidden" name="hl" value="zh-CN"></input>
</td></tr></table>
</form>
</center>
<!-- Search Google -->
</div>[/quote]
搜索代码改为自己的代码
添加说明:
使用方法:<div style="right: 650px; position: absolute; top: 100px">你的搜索代码</div>
其中:<div style="right: 650px; position: absolute; top: 100px">中的数值部分是放置的位置,自己修改看看合适自己的网站就行。
[[i] 本帖最后由 qtdswu 于 2008-7-3 18:04 编辑 [/i]]
qtdswu 2008-7-2 07:30
回复 3# 的帖子
代码放到其他头部信息,其中<div style="right: 650px; position: absolute; top: 100px">来修改位置。
秋风如剑 2008-7-3 18:25
[quote]原帖由 [i]qtdswu[/i] 于 2008-7-2 07:30 发表 [url=http://bbs.topzj.com/redirect.php?goto=findpost&pid=1815940&ptid=273152][img]http://bbs.topzj.com/images/common/back.gif[/img][/url]
代码放到其他头部信息,其中来修改位置。 [/quote]
放在"[b]欢迎新会员[/b]"下面,怎么修改位置?
[url]http://db514200.book.topzj.com/index.php[/url]
[[i] 本帖最后由 秋风如剑 于 2008-7-3 18:26 编辑 [/i]]