腾讯搜搜的分类搜索代码
生活随笔
收集整理的這篇文章主要介紹了
腾讯搜搜的分类搜索代码
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
<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 = "";}elsereturn 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
總結
以上是生活随笔為你收集整理的腾讯搜搜的分类搜索代码的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 自己对mysql中的Join的理解
- 下一篇: 冰与火之歌地图