返回列表 发帖

[交流] [求助] 想搞个各大论坛搜索的网页插件 遇到了点问题

利用谷歌搜索论坛很方便,但是每次都要自己打上site:  …………  + 网址

很麻烦呢~~

于是    想搞个插件,如截图      很有创意吧  

可以复制了 另存为123.htm,打开看看
===================================
<form method=get action="http://www.google.com/search" target="google_window">
<div style="width: 130px" >
<input type=text name=q size=20 maxlength=255 value="" />
<input type=hidden name=ie value=GB2312>
<input type=hidden name=oe value=GB2312>
<input type=hidden name=hl value=zh-CN>
<input type=submit name=btnG value="Google VC电驴">
<input type=hidden name=domains value="
www.verycd.com"><br>
<input type=hidden name=sitesearch value="www.verycd.com" checked></div>
</form>
====================================================
重叠起来就是截图的样子了

但是呢, 有点问题, 搜索框 一个不够,  一个搜索框的话 只会认最后一个VC社区的
搜索以后也是VC的网站

其他游侠什么的论坛 点击按钮,搜索结果还是VC社区的~~|

结果 居然要4个搜索框都带上 才能正常搜索  ~~、

于是,求助了,有谁能帮忙改下么?
改成1个搜索框,4个搜索按钮的类型

插件作者就写 修改者自己吧

附上全文


<form method=get action="http://www.google.com/search" target="google_window">
<div style="width: 130px" >
<input type=text name=q size=20 maxlength=255 value="" />
<input type=hidden name=ie value=GB2312>
<input type=hidden name=oe value=GB2312>
<input type=hidden name=hl value=zh-CN>

<input type=submit name=btnG value="Google 游侠论坛">
<input type=hidden name=domains value="game.ali213.net"><br>
<input type=hidden name=sitesearch value="game.ali213.net" checked></div>
<br><p>

<input type=submit name=btnG value="Google 果汁社区">
<input type=hidden name=domains value="bbs.emu618.com"><br>
<input type=hidden name=sitesearch value="bbs.emu618.com" checked></div>
<br><p>

<input type=submit name=btnG value="Google 梦幻旋律">
<input type=hidden name=domains value="
www.astost.com"><br>
<input type=hidden name=sitesearch value="www.astost.com" checked></div>
<br><p>

<input type=submit name=btnG value="Google VC电驴">
<input type=hidden name=domains value="
www.verycd.com"><br>
<input type=hidden name=sitesearch value="www.verycd.com" checked></div>
</form>


这个要添加新搜索也很方便,只要改三行~~

[ 本帖最后由 夏夜晨星 于 2008-9-6 16:53 编辑 ]
附件: 您需要登录才可以下载或查看附件。没有帐号?加入 我们
[url=http://applesosufo.photo.hexun.com/16036301_d.html]http://photo5.hexun.com/p/2007/0303/80181/b_7179D884EC0D723C2ED8F15761045C43.jpg[/url]


只能说,太好用了~~

麻烦版主大大改进下美观度等事项~~ (网页编辑偶不熟~~、)

然后就能当TW的官方插件发布了!!!


期待哪!!!  

例如定义背景图片,后面加首MIDE 当隐藏彩蛋之类的~~   

附件: 您需要登录才可以下载或查看附件。没有帐号?加入 我们
[url=http://applesosufo.photo.hexun.com/16036301_d.html]http://photo5.hexun.com/p/2007/0303/80181/b_7179D884EC0D723C2ED8F15761045C43.jpg[/url]

TOP

原帖由 needed 于 2008-9-6 17:38 发表 http://bbs.ioage.com/cn/images/common/back.gif
以下代码仅供参考

选择搜索网站
tw论坛
游侠论坛
  VC电驴



异常感谢~~我搞了试试看
[url=http://applesosufo.photo.hexun.com/16036301_d.html]http://photo5.hexun.com/p/2007/0303/80181/b_7179D884EC0D723C2ED8F15761045C43.jpg[/url]

TOP

以下代码仅供参考
  1. <input id=key size=100 onfocus="this.value=''" value="这里填你搜索的词.例如needed">
  2. <select id=surl onchange='window.open("http://www.google.com/search?client=aff-cs-worldbrowser&hl=zh-CN&q="+key.value+"+site%3A"+this.value);this.options[0].selected=true'>
  3. <option >选择搜索网站
  4. <option value='bbs.ioage.com'>tw论坛
  5. <option value='game.ali213.net'>游侠论坛
  6. <option value='www.verycd.com'> VC电驴
  7. </select>
复制代码
天下无不散之筵席.

世界之窗浏览器开发计划

TOP

<form method=get action="http://www.google.com/search" target="google_window">
<div style="width: 130px" >
<input type=text name=q size=20 maxlength=255 value="" />
<input type=hidden name=ie value=GB2312>
<input type=hidden name=oe value=GB2312>
<input type=hidden name=hl value=zh-CN>

<input type=submit name=btnG value="Google 游侠论坛">
<input type=hidden name=domains value="game.ali213.net"><br>
<input type=hidden name=sitesearch value="game.ali213.net" checked></div>
</form>

<form method=get action="http://www.google.com/search" target="google_window">
<div style="width: 130px" >
<input type=text name=q size=20 maxlength=255 value="" />
<input type=hidden name=ie value=GB2312>
<input type=hidden name=oe value=GB2312>
<input type=hidden name=hl value=zh-CN>
<input type=submit name=btnG value="Google 果汁社区">
<input type=hidden name=domains value="bbs.emu618.com"><br>
<input type=hidden name=sitesearch value="bbs.emu618.com" checked></div>
</form>

<form method=get action="http://www.google.com/search" target="google_window">
<div style="width: 130px" >
<input type=text name=q size=20 maxlength=255 value="" />
<input type=hidden name=ie value=GB2312>
<input type=hidden name=oe value=GB2312>
<input type=hidden name=hl value=zh-CN>
<input type=submit name=btnG value="Google 梦幻旋律">
<input type=hidden name=domains value="www.astost.com"><br>
<input type=hidden name=sitesearch value="www.astost.com" checked></div>
</form>

<form method=get action="http://www.google.com/search" target="google_window">
<div style="width: 130px" >
<input type=text name=q size=20 maxlength=255 value="" />
<input type=hidden name=ie value=GB2312>
<input type=hidden name=oe value=GB2312>
<input type=hidden name=hl value=zh-CN>
<input type=submit name=btnG value="Google 电驴社区">
<input type=hidden name=domains value="www.verycd.com"><br>
<input type=hidden name=sitesearch value="www.verycd.com" checked></div>
</form>






=======================================



~~、  我是说 ,那插件 成功是成功了但是~~、  搜索框实在太多~~    又占地方~~ 有没有什么办法 把输入框 变成1个 ,其他功能正常 使用~

[ 本帖最后由 夏夜晨星 于 2008-9-6 17:20 编辑 ]
附件: 您需要登录才可以下载或查看附件。没有帐号?加入 我们
[url=http://applesosufo.photo.hexun.com/16036301_d.html]http://photo5.hexun.com/p/2007/0303/80181/b_7179D884EC0D723C2ED8F15761045C43.jpg[/url]

TOP

返回列表