落伍者站长论坛's Archiver

wangxiandong 发表于 2008-10-2 15:49

老鸟们看看这段综合搜索代码,有没有个人ID

老鸟们看看这段综合搜索代码,有没有个人ID, 如果有,怎么改?先谢过了。

演示在http://www.ronglitai.com/pdtshw/dsnshw/webtx-ss.asp ,第4个,

代码:
<script>function search4()
{if(form1.abc0.checked)
window.open("http://post.baidu.com/f?kw="+form1.key.value,"mspg0");
if(form1.abc1.checked)
window.open("http://www.sogou.com/web?sogouhome=&shuru=shou&query="+form1.key.value,"mspg1");
if(form1.abc2.checked)
window.open("http://cn.search.yahoo.com/search?p="+form1.key.value,"mspg2");
if(form1.abc3.checked)
window.open("http://www.skycn.com/search.php?sor=00&ss_name="+form1.key.value,"mspg3");
if(form1.abc4.checked)
window.open("http://www.google.cn/search?hl=zh-CN&q="+form1.key.value,"mspg4");
if(form1.abc5.checked)
window.open("http://zhidao.baidu.com/q?ct=17&pn=0&tn=ikaslist&rn=10&word="+form1.key.value,"mspg5");
if(form1.abc6.checked)
window.open("http://www.baidu.com/s?tn=sitesowang&word="+form1.key.value,"mspg6");
if(form1.abc7.checked)
window.open("http://mp3search.baidu.com/wstsearch?tn=baidump3&ct=134217728&lm=-1&rn=&word="+form1.key.value,"mspg7");

if(form1.abc9.checked)
window.open("http://mp3search.baidu.com/wstsearch?tn=baidump3lyric&ct=150994944&lm=-1&rn=&word="+form1.key.value,"mspg9");
if(form1.abc10.checked)
window.open("http://www.baidu.com/baidu?ft=all&q1="+form1.key.value,"mspg10");
if(form1.abc11.checked)
window.open("http://www.baidu.com/i?ct=201326592&cl=2&lm=-1&tn=baiduimage&word="+form1.key.value,"mspg11");
if(form1.abc12.checked)
window.open("http://www.baidu.com/s?tn=sitehao123&word="+form1.key.value+"%20site%3Awww.hao123.com","mspg12");
if(form1.abc13.checked)
window.open("http://baike.baidu.com/w?ct=17&lm=0&tn=baiduWikiSearch&pn=0&rn=10&word="+form1.key.value+"&submit=search","mspg13");
if(form1.abc14.checked)
window.open("http://map.baidu.com/m?word="+form1.key.value,"mspg14");
if(form1.abc15.checked)
window.open("http://news.baidu.com/ns?cl=2&rn=20&tn=news&word="+form1.key.value,"mspg15");
if(form1.abc16.checked)
window.open("http://www.baidu.com/baidu?ie=gb2312&bs=&sr=&z=&ct=1048576&cl=3&f=8&word="+form1.key.value,"mspg16");
return false;}</script><table border=0 cellspacing=0 width=100% bordercolor=#99DF95 cellpadding=0 style="border-left-width: 0px">
<tr align="center">
<td height="15" colspan="2" bgcolor="#FDFFFB" style="border-left-style: solid; border-left-width: 1px; border-right-style: solid; border-right-width: 1px; border-top-style: solid; border-top-width: 1px; border-bottom-style: none; border-bottom-width: medium"> </td>
</tr>
<tr align="center">
<td height="21" colspan="2" bgcolor="#FDFFFB" style="border-left-style: solid; border-left-width: 1px; border-right-style: solid; border-right-width: 1px; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium">
<font color="#BE2F2F">综合搜索引擎</font></td>
</tr>
<form name=form1 onsubmit=return(search4())><tr>
        <td width="41%" rowspan="2" align="right" valign="top" bgcolor="#FDFFFB" style="border-left-style: solid; border-left-width: 1px; border-top-style: none; border-top-width: medium; border-bottom-style: solid; border-bottom-width: 1px">
        <p align="left">关键字:
<input type=text name=key size=22 onMouseOver=this.focus() onFocus=this.select() style="margin-bottom:-5px; font-size:15px;" />
<input type=submit style="margin-bottom:-4px;COLOR: rgb(0,0,0);" FONT-SIZE: 9pt value=" 搜索 " name=B2 />
</td>
<td width="59%" bgcolor="#FDFFFB" style="border-right-style: solid; border-right-width: 1px; border-top-style: none; border-top-width: medium; border-bottom-style:none; border-bottom-width:medium" >
<font color="#0000FF"><input type=checkbox name=abc6 value=google checked /></font><a href=http://d.baidu.com/index.php?tn=sitesowang><span style="text-decoration: none">百度</span></a>
<font color="#0000FF">
<input type=checkbox name=abc4 value=3721 /></font><a href=http://www.google.cn/webhp?client=aff-sowang&hl=zh-CN&channel=searchlink><span style="text-decoration: none">google</span></a>
<font color="#0000FF">
<input type=checkbox name=abc7 value=baidump3 /></font><a href=http://mp3.baidu.com/><span style="text-decoration: none">mp3</span>
<font color="#0000FF">
<input type=checkbox name=abc9 value=baidump3 /></font><a href=http://geci.baidu.com/><span style="text-decoration: none">歌词</span>
<font color="#0000FF">
<input type=checkbox name=abc11 value=baidump3 /></font><a href=http://image.baidu.com/><span style="text-decoration: none">图片</span>
<font color="#0000FF">
<input type=checkbox name=abc0 value=baidutieba /></font><a href=http://post.baidu.com/><span style="text-decoration: none">贴吧</span>
<font color="#0000FF">
<input name=abc5 type=checkbox  value=ikaslist /></font><a href=http://zhidao.baidu.com/><span style="text-decoration: none">知道</span>

<font color="#0000FF">

<input name=abc15 type=checkbox  value=baidunews /></font><a href=http://news.baidu.com/><span style="text-decoration: none">新闻</span></td>
</tr><tr>
                <td style="padding-top:3px; border-left-style:none; border-left-width:medium; border-right-style:solid; border-right-width:1px; border-bottom-style:solid; border-bottom-width:1px; border-top-style:none; border-top-width:medium" width="59%" bgcolor="#FDFFFB">
                <font color="#0000FF"><input type=checkbox name=abc12 value=hao123 /></font>站内
                <font color="#0000FF">
<input type=checkbox name=abc16 value=baidudict /></font><a href=http://dict.baidu.com/><span style="text-decoration: none">词典</span>
                <font color="#0000FF">
<input type=checkbox name=abc14 value=baidump3 /></font><a href=http://map.baidu.com/><span style="text-decoration: none">地图</span>
                <font color="#0000FF">
<input type=checkbox name=abc10 value=baidufile /></font><a href=http://file.baidu.com/><span style="text-decoration: none">文档</span>
                <font color="#0000FF">
<input type=checkbox name=abc3 value=yeah /></font><a href=http://www.skycn.com/><span style="text-decoration: none">软件</span>

                <font color="#0000FF">

<input type=checkbox name=abc2 value=yahoo /></font><a href=http://cn.yahoo.com/><span style="text-decoration: none">雅虎</span>
                <font color="#0000FF">
<input type=checkbox name=abc13 value=baidubaike /></font><a href=http://baike.baidu.com/><span style="text-decoration: none">百科</span>
                <font color="#0000FF">
<input type=checkbox name=abc1 value=sohu /></font><a href=http://www.sogou.com/><span style="text-decoration: none">搜狗</span><br />
 </td>
</tr>

</form>
               
</table>

水元素 发表于 2008-10-2 15:52

你可以看看 又ID的对比一下啊

百度的是 tn=

谷歌的好像是 client=

其他自己找找

木丁西 发表于 2008-10-2 15:56

我个人觉得水元素已经回答的很好了。。。

百度的ID还是有的。你

wangxiandong 发表于 2008-10-2 15:58

谢谢水元素,
再问一个弱弱的问题:
window.open("http://mp3search.baidu.com/wstsearch?tn=baidump3&ct=134217728&lm=-1&rn=&word="+form1.key.value,"mspg7");

ct=134217728是不是也是个人ID?

页: [1]

Powered by Discuz! Archiver 6.1.0  © 2001-2007 Comsenz Inc.