腾讯搜搜的分类搜索代码

<html>
    <head>
    <title>腾讯搜搜的分类搜索代码丨kiddy官网|河北塑胶地板</title>
    <style>
    body,table,select,ul,li{font-size:12px;line-height:20px;}
    body{margin:0;background:#fff;}
    body,table,select,ul,li,td{font-family:"宋体";}
    form{margin:0;padding:0;}
    input,bottom{font-size:12px;line-height:19px;}
    a.nav{padding:0 5px 0 5px;}
    a.navlink{padding:0 5px 0 5px;background:url(http://mat1.qq.com/www/images/2006/n_ew.gif) no-repeat right top;}
    a:link,a.nav:link,a.navlink:link,a:visited,a.nav:visited,a.navlink:visited,a:active,a.nav:active,a.navlink:active,a.hand:active,.c00007f,.lblue,a.lblue:link,a.lblue:visited,a.lblue:hover {color:#00007F}
    a:visited{color:#800080}
    a:hover,a.nav:hover,a.hand:hover,a.navlink:hover,.cf00 {color:#ff0000}
    a.navlist:link,a.navlist:visited,a.navlist:active,.l000,a.l000:link,a.l000:visited{color:#000}
    a.hover,a.nav:link,a.navlink,a.nav:visited,a.nav:active,a.navlist:link,a.navlist:visited,a.navlist:active,.lfff,a.lfff:link,a.lfff:visited,.l000,a.l000:link,a.l000:visited,.lblue,A.lblue:link,A.lblue:visited {text-decoration:none}
    a.link,a.visited,a.active,a.nav:hover,a.navlist:hover,a.navlink:hover,a.lfff:hover,a.l000:hover,a.lblue:hover{text-decoration:underline}
    .font{font-family: Arial, Helvetica, sans-serif;}
    .cfff,.lfff,a.lfff:link,a.lfff:visited{color:#fff;}
    .bolds,.tita1,.fff{font-weight:bold;}
    .l19{line-height:19px;}
    .l25{line-height:24px;}
    .inp33 {width:43px; height:19px; background:#1989D7; color:#ffffff; border:0px;}
    .mb4{margin-bottom:4px;}
    .mb5{margin-bottom:5px;border:1px solid #92C3F2;border-top:0px;background:#D3E8FD}
    .mb10{margin-bottom:10px;}
    .mu6{margin-top:6px;}
    .mu5{margin-top:5px;}
    .pl13{padding-left:13px;}
    .pt2{padding-top:2px;}
    .p32 {padding-left:15px;}
    .p34 {padding-left:8px;}
    .p35 {padding-left:4px;}
    .pt5 {padding-top:5px;}
    .p36 {padding-top:6px;}
    .p37 {padding-top:7px;}
    .pb6{padding-bottom:6px;}
    .pa327{padding:2px 0 7px 4px;}
    .b1a9ec{border:1px solid #9ec9ec;}/*中间表格边线*/
    .bg1989d7{background:#1989d7;}
    .b1a1989d7{border:1px solid #1989d7;}
    .b1afd9923{border:1px solid #fd9923;}
    .b1a9dc9f3{border:1px solid #9DC9F3;}
    .b1ac2c2c2{border:1px solid #C2C2C2;}
    .rbga{background:#FFFFFF;border-right:1px solid #ccc;border-left:1px solid #ccc;}
    .rbga1{background:#EBFAFD;border-right:1px solid #ccc;border-left:1px solid #ccc;}
    .rbgt{border:1px solid #ccc;border-top:0;}
    .sbot{height:21px;width:43px;margin-top:1px;}
    .ibot{width:350px;height:21px;line-height:16px;}
    .bd31 {border:#666666 1px solid}
    .bcfcfcf {border:#cfcfcf 1px solid}
    .searchfod1,.searchfod2{height:23px;width:70px;text-align:center;cursor:pointer;}
    .searchfod1{background:url(http://www.CsrCode.cn/html/txdm_2/images/20100927/searchfodbg1212.gif) no-repeat;font-weight:bold;color:#fff}
    .searchfod2{background:url(http://www.CsrCode.cn/html/txdm_2/images/20100927/searchfodbg21212.gif) no-repeat;}
    .d{font-size: 6px}
    .tit0,.tit,.tit3,tit31,.adright{line-height:21px;}
    .tit31,tit32 {font-weight:bold; text-align:center}
    .tit32 {background:#FE9923; line-height:16px; color:#ffffff; font-family:arial}
    .tit{color:white;border-bottom:2px solid #E3E3E3}
    .tit1{font-size:12px}
    .tit1,.tita{padding-left:10px;font-weight:bold;float:left;}
    .tit2,.titb{text-align:right;padding-right:5px;float:right;}
    .shadow{padding:3px;border:1px solid #979797;margin-top:3px;}
    .p31{padding-left:4px;}
    .dot{font-size:12px;color: #fff;}
    .left{padding-left:7px;padding-top:5px;}.tit4 {color:white;border-bottom:2px solid #E3E3E3}
    .b1bababa {border:1px solid #bababa;}
    .paipai {border:1px solid #9EC9F4;background:#DEEFFF;line-height:18px;text-align:center}
    .tit11 {padding-left:10px;font-weight:bold;float:left;}
    .fod {background:#D1E7FC;border-top:1px solid #9EC9EC;border-left:1px solid #9EC9EC;}
    .fod td{border-right:1px solid #9EC9EC;border-bottom:1px solid #9EC9EC;cursor:pointer;}
    .fod td.s{border-bottom:1px solid #FFFFFF;background:#FFFFFF;font-weight:bold;}
    .fodinfo {border:1px solid #9EC9EC;border-top;}
    .lfff1 {color:#fff;}
    .fcorg{color:#f60;}
    .bdE6E5ED{border-right:1px solid #E6E5ED;}
    .dis{display:block;}
    .undis{display:none;}
    .lh22{line-height:22px;}
    .cj_input{border:1px solid #C3BBB0;width:94px;height:20px;line-height:16px;}
    .fontblack{color:#000;}
    .fontgreen{color:#009900;}
    .fontred{color:#F00;}
    </style>
    <SCRIPT>
    var sosoCurrHighLight = document.getElementById("sosoweb");
    function trim(str){
    return str.replace(/(^\s*)|(\s*$)/g, "");
    }
    function sosoValidate(){
    wval = trim(frm_head.w.value);
    if(frm_head.sc.value=="post")
    {
    frm_head.bn.value = frm_head.w.value;
    frm_head.op.value = "enterbar";
    }
    else if(frm_head.sc.value=="wenwen" && wval != "")
    {
    window.open("http://wenwen.soso.com/z/SearchSolved.e?cid=w.q.in.sb.ww&sp=S"+encodeURIComponent(frm_head.w.value), "_blank");
    return false;
    }
    if(wval == "")
    return false;
    else {
    return true;
    }
    }
    function sosoSubSearch(sc){
    changePage(sc);
    frm_head.sc.value = sc;
    if(sc == "img")
    {
    frm_head.action = "http://image.soso.com/image.cgi";
    }
    else if(sc == "mus")
    {
    frm_head.action = "http://music.soso.com/music.cgi";
    }
    else if(sc == "forum")
    {
    frm_head.action = "http://bbs.soso.com/q";
    }
    else if(sc == "vid")
    {
    frm_head.action = "http://video.soso.com/q";
    }
    else if(sc == "soba"){
    frm_head.sc.value = "post";
    sosoGoSoba();
    }
    else if(sc == "wenwen")
    {
    frm_head.sc.value = "wenwen";
    frm_head.action = "http://wenwen.soso.com/z/SearchSolved.e";
    }
    else
    {
    frm_head.action = "http://www.soso.com/q";
    }
    }
    function sosoGoSoba(){
    frm_head.action = "http://post.soso.com/sobar.q";
    }
    function changePage(sc){
    if(sosoCurrHighLight == null){
    sosoCurrHighLight = document.getElementById("sosoweb");
    }
    sosoCurrHighLight.className = "searchfod2";
    sosoCurrHighLight = document.getElementById("soso" + sc)
    sosoCurrHighLight.className = "searchfod1";
    frm_head.sc.value = sc;
    frm_head.cid.value= "w.q.in.sb." + sc;
    }
    function isSoba(){
    if(sosoCurrHighLight == document.getElementById("sososoba")){
    sosoGoSoba();
    return true;
    }
    else{
    return true;
    }
    }
    function goSearch(){
    changeHotWords(document.frm_head.sc.value);
    if(!sosoValidate())
    return false;
    if(frm_head.w.value != ""){
    frm_head.submit();
    frm_head.bn.value = "";
    frm_head.op.value = "";
    }
    else
    return false;
    }
    function changeHotWords(category){
    document.getElementById("td_hotlist").innerHTML = eval(category + "Words");
    }
    </SCRIPT>
    <base target="_blank">
    </head>
    <body>
    <center>
    <div>
    <SCRIPT>
    //综合
    var intWords = '<a href="http://www.soso.com/q?w=明星车祸&pid=w.q.in.s&sc=int" target=_blank>霆锋车祸</a> <a href="http://www.soso.com/q?w=社会新闻&sc=int&pid=w.q.in.s"target=_blank>戴妃怀孕</a> <a href="http://www.soso.com/q?w=校园新闻&sc=int&pid=w.q.in.s" target=_blank>贫困生</a> <a href="http://www.soso.com/q?w=倒霉明星&sc=int&pid=w.q.in.s" target=_blank>谢娜同居</a>';
    //网页
    var webWords = '<a href="http://www.soso.com/q?w=公布小吃成本&pid=w.q.in.s&sc=web" target=_blank>小吃成本</a> <a href="http://www.soso.com/q?w=更新退票政策&pid=w.q.in.s&sc=web" target=_blank>退票新政</a> <a href="http://www.soso.com/q?w=火山喷发&pid=w.q.in.s&sc=web" target=_blank>火山喷发</a> <a href="http://www.soso.com/q?w=龙吸水奇观&pid=w.q.in.s&sc=web" target=_blank>龙吸水</a>';
    //图片
    var imgWords = '<a href="http://image.soso.com/image.cgi?w=郭柏鹭&pid=w.q.in.s&sc=img" target=_blank>可爱超模</a> <a href="http://image.soso.com/image.cgi?w=奥运 鸟巢&sc=img&pid=w.q.in.s" target=_blank>奥运鸟巢</a> <a href="http://image.soso.com/image.cgi?w=Namji&sc=img&pid=w.q.in.s" target=_blank>清纯美女</a> <a href="http://image.soso.com/image.cgi?w=哈利波特与凤凰社&sc=img&pid=w.q.in.s" target=_blank>哈利波特</a>';
    //论坛
    var forumWords = '<a href="http://bbs.soso.com/q?w=热门电影&pid=w.q.in.s&sc=forum" target=_blank>热门电影</a> <a href="http://bbs.soso.com/q?w=越狱&pid=w.q.in.s&sc=forum" target=_blank>越狱</a> <a href="http://bbs.soso.com/q?w=包养诗人&pid=w.q.in.s&sc=forum" target=_blank>包养诗人</a> <a href="http://bbs.soso.com/q?w=中国新型航母&pid=w.q.in.s&sc=forum" target=_blank>中国新型航母</a>';
    //音乐
    var musWords = '<a href="http://music.soso.com/music.cgi?w=花田错&pid=w.q.in.s&sc=mus" target=_blank>花田错</a> <a href="http://music.soso.com/music.cgi?w=蔡依林&pid=w.q.in.s&sc=mus" target=_blank>蔡依林</a> <a href="http://music.soso.com/music.cgi?w=该死的温柔&pid=w.q.in.s&sc=mus" target=_blank>该死的温柔</a> <a href="http://music.soso.com/music.cgi?w=最爱还是你&pid=w.q.in.s&sc=mus" target=_blank>最爱还是你</a>';
    //搜吧
    var postWords = '<a href="http://post.soso.com/sobar.q?op=enterbar&bi=102246" target=_blank>绝对唱响</a> <a href="http://post.soso.com/sobar.q?op=enterbar&bi=280583&pid=w.q.in.s" target=_blank>奇闻轶事</a> <a href="http://post.soso.com/sobar.q?op=enterbar&bi=4670&pid=w.q.in.s" target=_blank>笑话</a> <a href="http://post.soso.com/sobar.q?op=enterbar&bi=6706&pid=w.q.in.s" target=_blank>奥运</a> <a href="http://post.soso.com/sobar.q?op=enterbar&bi=4678&pid=w.q.in.s" target=_blank>明星</a>';
    //问问
    var wenwenWords = '<a href="http://wcache.soso.com/www/z//classic1/people1.htm" target=_blank>黑人关注北京文化</a> <a href="http://wcache.soso.com/www/z/classic1/classic_film.htm" target=_blank>我为美剧狂</a>';
    </SCRIPT>
    <form name="frm_head" action="http://www.soso.com/q" onSubmit="return sosoValidate();" method="GET" target="_blank">
    <input type="hidden" name="sp" value="">
    <input type="hidden" name="sc" value="">
    <input type="hidden" name="cid" value="w.q.in.sb.web">
    <input type="hidden" name="ty" value="1">
    <input type="hidden" name="bn" value="">
    <input type="hidden" name="op" value="">
    <table width="760"  border="0" align="center" cellpadding="0" cellspacing="0" background="jsfile/imagesa25/searchtbg1212.gif">
    <tr>
    <td align="center" height="23"> <table  border="0" cellspacing="0" cellpadding="0">
    <tr valign="top">
    <td class="searchfod1" id="sosoweb"  onclick="sosoSubSearch('web');goSearch()">网页</td>
    <td width="4"></td>
    <td class="searchfod2" id="sosoimg"  onclick="sosoSubSearch('img');goSearch()">图片</td>
    <td width="4"></td>
    <td class="searchfod2" id="sosomus"  onclick="sosoSubSearch('mus');goSearch()">音乐</td>
    <td width="4"></td>
    <td class="searchfod2" id="sososoba" onClick="sosoSubSearch('soba');goSearch()">搜吧</td>
    <td width="4"></td>
    <td class="searchfod2" id="sosowenwen" onClick="sosoSubSearch('wenwen');goSearch()">问问</td>
    <td width="4"></td>
    <td id="sosoint" class="searchfod2"  onclick="sosoSubSearch('int');goSearch()">综合</td>
    <td width="4"></td>
    <td class="searchfod2" id="sosoforum"  onclick="sosoSubSearch('forum');goSearch()">论坛</td>
    </tr>
    </table>
    </td>
    </tr>
    </table>
    <table width="760"  border="0" align="center" cellpadding="0" cellspacing="0"  class="mb5" height="32">
    <tr>
    <td width="114" align="center" style="padding-left:4px;"><a href="http://www.soso.com" class="sosoblack" target="_blank"><img src="http://mat1.qq.com/www/images/soso/soso_logo.gif" border="0"></a></td>
    <td width="359">
    <input name="w" type="text" size="48" style="font-size:14px;color:#000000;height:20px;border:#1989d7 1px solid;"></td>
    <td width="65"><input style="width:60px;height:22px;line-height:16px;margin:0;cursor: pointer;float:left; padding-top:1px;"  type="submit" value="搜 搜"></td>
    <td width="227" align="center" id="td_hotlist">
    <script>document.write(webWords); //初始化</script>
    </tr>
    </table>
    </form>
    </div>
    </body>
    </html>

    

 

转载于:https://www.cnblogs.com/youtianxia/p/4529974.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值