⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 search.php

📁 最强的爬虫工程
💻 PHP
📖 第 1 页 / 共 4 页
字号:
	<script type="text/javascript">	function checkGoogleValue(){		if(document.gform.q.value=="请输关键词"||document.gform.q.value=="请输入关键字"||document.gform.q.value==""){			document.gform.q.value="请输关键词";			return false;		}		document.gform.channel.value = "osearch";		return true;	}	</script>	<div id="login1searchblk">		<style type="text/css">		A.gol1:link,A.gol1:visited{text-decoration:none;color:#000;font-size:14px;}		A.gol1:active,A.gol1:hover{text-decoration:none;color:#000;font-size:14px;}				A.gol2:link,A.gol2:visited{text-decoration:none;color:#000;font-size:14px;}		A.gol2:active,A.gol2:hover{text-decoration:none;color:#000;font-size:14px;}		</style>		<script type="text/javascript">		function hidealla(j){			for(j=1;j<3;j++){				document.getElementById("surveya"+j).style.visibility = "hidden";			}		}		function showdiv1(h){			hidealla();			document.getElementById("surveya"+h).style.visibility = "visible";		}		</script>		<div id="surveya" style="position:relative; width:307px; height:34px; z-index:1; background:#F3F3F3;">			<div id="surveya1" style="position:absolute; top:0; left:0; z-index:10; visibility:visible;">				<form onsubmit="return checkGoogleValue();" name="gform" method="get" action="http://www.google.cn/search" target="_blank">				<input type="hidden" name="client" value="aff-sina" />				<input type="hidden" name="ie" value="gb" />				<input type="hidden" name="oe" value="gb" />				<input type="hidden" name="hl" value="zh-CN" />				<input type="hidden" name="channel" value="search" />				<table width="307" cellspacing="0" cellpadding="0" height="34px" style="border-bottom:2px #FFBB00 solid;">				<tr>				<td width="80" align="center" style="text-align:center;"><input type="text" name="q" style="width:70px;height:14px; border:1px #808080 solid; border-right:1px #fff solid; border-bottom:1px #fff solid; font-size:12px; color:#808080;" value="请输关键词" onclick="javascript:if(this.value=='请输关键词')this.value='';" /></td>				<td width="40" align="left" style="text-align:left;"><input type="submit" name="sa" value="搜索" style="width:34px; height:20px;" /></td>				<td width="130" valign="bottom">					<table width="130" height="30" cellpadding="0" cellspacing="0" background="http://www.sinaimg.cn/ty/deco/2007/0602/images/searchbar_logo_04.gif">					<tr>					<td width="76" align="right" valign="bottom" style="text-align:right;"><a href="javascript:submitFormWithChannel('ologo')"><img src="http://www.sinaimg.cn/ty/deco/2007/0602/images/google_logo_02.gif" width="76" height="29" border="0" alt="Google"/></a></td>					<td width="54" align="center" style="text-align:center;padding-top:1px;"><a href='javascript:void(0);' class="gol2" onClick="showdiv1(1)" style="color:#000; text-decoration:none;">网页</a></td>					</tr>					</table>				</td>				<td width="4"></td>				<td width="49" align="center" valign="bottom" style="text-align:center;">					<table width="49" height="30" cellspacing="0" cellpadding="0">					<tr>					<td align="center" background="http://www.sinaimg.cn/ty/deco/2007/0602/images/searchbar_logo_06.gif" style="text-align:center;padding-top:1px;"><a href='javascript:void(0);' class="gol1" onclick="showdiv1(2)" style="color:#000; text-decoration:none;">新闻</a></td>					</tr>					</table>				</td>				<td width="2"></td>				</tr>				</table>				</form>			</div>						<div id="surveya2" style="position:absolute; top:0; left:0; z-index:10; visibility: hidden;"> 				<form name="searchiask" method="get" action="http://iask.com/n" onsubmit="return checkiask()" target="_blank">				<input type="hidden" name="t" value="keyword" />				<input type="hidden" name="c" value="all" />				<table width="307" cellspacing="0" cellpadding="0" height="34px" style="border-bottom:2px #FFBB00 solid;">				<tr>				<td width="80" align="center" style="text-align:center;"><input type="text" name="k" style="width:70px;height:14px; border:1px #808080 solid; border-right:1px #fff solid; border-bottom:1px #fff solid; font-size:12px; color:#808080;" value="请输关键词" onclick="javascript:if(this.value=='请输关键词')this.value='';" /></td>				<td width="40" align="left" style="text-align:left;"><input type="submit" value="搜索" style="width:34px; height:20px;" /></td>				<td width="130" valign="bottom">					<table width="130" height="30" cellpadding="0" cellspacing="0" background="http://www.sinaimg.cn/ty/deco/2007/0602/images/searchbar_logo_07.gif">					<tr>					<td width="76" align="right" valign="bottom" style="text-align:right;"><a href='javascript:void(0);' onclick="showdiv1(1)"><img src="http://www.sinaimg.cn/ty/deco/2007/0602/images/google_logo_02.gif" width="76" height="29" border="0" alt="Google"/></a></td>					<td width="54" align="center" style="text-align:center;padding-top:1px;"><a href='javascript:void(0);' class="gol2" onclick="showdiv1(1)" style="color:#000; text-decoration:none;">网页</a></td>					</tr>					</table>				</td>				<td width="4"></td>				<td width="49" align="center" valign="bottom" style="text-align:center;">					<table width="49" height="30" cellspacing="0" cellpadding="0" style="border:1px #ffb900 solid; border-bottom:none;">					<tr>					<td align="center" style="background:url(http://www.sinaimg.cn/ty/deco/2007/0602/images/searchbar_logo_03.gif) no-repeat 5px 0 #fff; text-align:center;"><a href='javascript:void(0);' class="gol1" onclick="showdiv1(2)" style="color:#000; text-decoration:none;">新闻</a></td>					</tr>					</table>				</td>				<td width="2"></td>				</tr>				</table>				</form>			</div>		</div>	</div>	<!--google end-->		</div>		<div id="l2navlnk"><a href="http://auto.sina.com.cn/" target="_blank">新浪汽车</a> | <a href="http://www.sina.com.cn/" target="_blank">新浪首页</a> | <a href="http://auto.sina.com.cn/guide/" target="_blank">导航</a> | </div>	</div>	<div id="level2headerborder"></div>    <div id="logo">	    <a href="http://che.sina.com.cn/"><img src="images/logo_small.JPG" width="220" height="60" alt="新浪车魔" title="新浪车魔" /></a>		<div id="inputarea">			<form name="simple" autocomplete="off"><input type="hidden" name="tab"><input type="text" name="keyword" id="keyword" class="input01" value="" onkeyup="javascript:showdiv();" /><a href="#" onclick="javascript:closediv();sub_check();"><input type="button" class="search_btn" value="搜 索" /></a><div id="contentdiv"></div></form>	    </div>		<div id="honor">			<img src="http://www.sinaimg.cn/qc/pinpai/tupian/honor.gif" width="148" height="21" alt="新浪汽车荣誉出品" />		</div>		<div class="clearit"></div>	</div><script type="text/javascript"><!--window.document.onkeydown=KDown;function KDown(){	if (window.event.keyCode==38  ||  window.event.keyCode==40)	{			try		{			if (document.simple.keyword.value!="")			{				document.simple.subbrand.focus();			}		}		catch(e)		{		}	}	else if (window.event.keyCode==13)	{		//document.simple.submit();		closediv();	}	else	{	}}//--></script>	<div id="info">		<div id="tabarea">			<ul>				<li class="tab_active" id="search_1" onclick="SearchTab(1)">车 型</li>				<li class="tab_normal" id="search_4" onclick="SearchTab(4)">新 闻</li>				<li class="tab_normal" id="search_2" onclick="SearchTab(2)">报 价</li>				<li class="tab_normal" id="search_3" onclick="SearchTab(3)">图 片</li>				<li class="tab_normal" id="search_7" onclick="SearchTab(7)">专 题</li>				<li class="tab_normal" id="search_6" onclick="SearchTab(6)">视 频</li>				<li class="tab_normal" id="search_8" onclick="SearchTab(8)">组 图</li>			</ul>			<div class="clearit"></div>		</div>		<!--<div class="f14 text lh20"><a href="#" onclick="SearchTab(7)">专题</a> <a href="#" onclick="SearchTab(6)">视频</a> <a href="#" onclick="SearchTab(5)">路书</a> <a href="#" onclick="SearchTab(8)">组图</a> </div>-->		<div class="info_text lh20"><span id="search_info"></span> | <a href="http://auto.sina.com.cn/car">新浪车型首页</a></div>		<div class="clearit"></div>	</div>	<div id="main">	<div id="search_content_10">		<div id="toolbar">		<div id="car_search_more" style="display:block">		<div id="more_search" class="lh20"><a href="http://search.auto.sina.com.cn/search.html" target="_blank">点击此处按更多条件搜索</a></div></div>		</script>			<form name="andsearch" id="andsearch">			<div id="nextsearch" class="left_tt lh20">继续查询</div>			<div id="left_1">				<div id="carsubbrands">					<div class="title lh23"><span class="b blue">相关品牌</span></div>					<ul>					  <span id="subbrands_1"></span>					</ul>				</div>				<div id="country">					<div class="title lh23">产地</div>					<ul>						<input name="country[]" id="country1" type="checkbox" onclick="add_check(this);" value="国产" />国&nbsp;&nbsp;产						<input name="country[]" id="country2" type="checkbox" onclick="add_check(this);" value="进口" />进口					</ul>				</div>				<div id="seatnum">					<div class="title lh23">座位数</div>					<ul>						<input name="seatnums[]" id="seatnum1" type="checkbox" onclick="add_check(this);" value="[00002 TO 00002]" />2座						<input name="seatnums[]" id="seatnum2" type="checkbox" onclick="add_check(this);" value="[00004 TO 00004]" />4座						<input name="seatnums[]" id="seatnum3" type="checkbox" onclick="add_check(this);" value="[00005 TO 00005]" />5座						<input name="seatnums[]" id="seatnum4" type="checkbox" onclick="add_check(this);" value="[00007 TO 00007]" />7座						<input name="seatnums[]" id="seatnum5" type="checkbox" onclick="add_check(this);" value="[00008 TO 00008]" />8座						<input name="seatnums[]" id="seatnum6" type="checkbox" onclick="add_check(this);" value="[00009 TO 99999]" />8座以上					</ul>				</div>				<div id="cartype">					<div class="title lh23">车型分类</div>					<ul>						<input name="autotype[]" id="autotype1" type="checkbox" onclick="add_check(this);" value="轿车" />轿&nbsp;&nbsp;车						<input name="autotype[]" id="autotype2" type="checkbox" onclick="add_check(this);" value="SUV" />SUV&nbsp;						<input name="autotype[]" id="autotype3" type="checkbox" onclick="add_check(this);" value="MPV" />MPV<br />						<input name="autotype[]" id="autotype4" type="checkbox" onclick="add_check(this);" value="旅行车" />旅行车						<input name="autotype[]" id="autotype5" type="checkbox" onclick="add_check(this);" value="跑车" />跑车						<input name="autotype[]" id="autotype6" type="checkbox" onclick="add_check(this);" value="皮卡" />皮卡<br />						<input name="autotype[]" id="autotype7" type="checkbox" onclick="add_check(this);" value="其他" />其&nbsp;&nbsp;他					</ul>				</div>				<div id="carprice">					<div class="title lh23">价格</div>					<ul>					  <input name="price[]" id="price1" type="checkbox" onclick="add_check(this)" value="[00001 TO 00500]" />5万以下&nbsp;&nbsp;		                          <input name="price[]" id="price2" type="checkbox" onclick="add_check(this)" value="[00500 TO 01000]" />5万-10万</br>		                          <input name="price[]" id="price3" type="checkbox" onclick="add_check(this)" value="[01000 TO 01500]" />10万-15万		                          <input name="price[]" id="price4" type="checkbox" onclick="add_check(this)" value="[01500 TO 02000]" />15万-20万</br>		                          <input name="price[]" id="price5" type="checkbox" onclick="add_check(this)" value="[02000 TO 03000]" />20万-30万		                          <input name="price[]" id="price6" type="checkbox" onclick="add_check(this)" value="[03000 TO 05000]" />30万-50万</br>		                          <input name="price[]" id="price7" type="checkbox" onclick="add_check(this)" value="[05000 TO 99999]" />50万以上					</ul>				</div>				<div id="carbasetype">					<div class="title lh23">厢式</div>					<ul>		                          <input name="basetype[]" id="basetype1" type="checkbox" onclick="add_check(this)" value="单厢" />单厢		                          <input name="basetype[]" id="basetype2" type="checkbox" onclick="add_check(this)" value="两厢" />两厢		                          <input name="basetype[]" id="basetype3" type="checkbox" onclick="add_check(this)" value="两厢半" />两厢半		                          <input name="basetype[]" id="basetype4" type="checkbox" onclick="add_check(this)" value="三厢" />三厢					</ul>				</div>				<div id="caroutgas">					<div class="title lh23">排量</div>					<ul>					  <input name="outgas[]" id="outgas1" type="checkbox" onclick="add_check(this)" value="[00500 TO 01000]" />1.0升以下		                          <input name="outgas[]" id="outgas2" type="checkbox" onclick="add_check(this)" value="[01000 TO 01600]" />1.0-1.6升</br>		                          <input name="outgas[]" id="outgas3" type="checkbox" onclick="add_check(this)" value="[01600 TO 02000]" />1.6-2.0升		                          <input name="outgas[]" id="outgas4" type="checkbox" onclick="add_check(this)" value="[02000 TO 03000]" />2.0-3.0升</br>		                          <input name="outgas[]" id="outgas5" type="checkbox" onclick="add_check(this)" value="[03000 TO 04000]" />3.0-4.0升		                          <input name="outgas[]" id="outgas6" type="checkbox" onclick="add_check(this)" value="[04000 TO 99999]" />4.0升以上</br>                            		</ul>                        	</div>				<div id="cargear">		                <div class="title lh23">变速箱</div>					<ul>					  <input name="gear[]" id="gear1" type="checkbox" onclick="add_check(this)" value="手动" />手动		                          <input name="gear[]" id="gear2" type="checkbox" onclick="add_check(this)" value="自动" />自动		                          <input name="gear[]" id="gear3" type="checkbox" onclick="add_check(this)" value="手自一体" />手自一体					</ul>				</div>				<div id="carproduc">					<div class="title lh23">生产状态</div>					<ul>					  <input name="is_stopproduc[]" id="is_stopproduc1" type="checkbox" onclick="add_check(this)" value="在产" />在产		                          <input name="is_stopproduc[]" id="is_stopproduc2" type="checkbox" onclick="add_check(this)" value="停产" />停产					</ul>				</div>			</div>			<div id="left_2" style="display:none">				<div id="carprice">					<div class="title lh23">价格</div>					<ul>					  <input name="price[]" id="price1" type="checkbox" onclick="add_check(this)" value="[00001 TO 00500]" />5万以下&nbsp;&nbsp;		                          <input name="price[]" id="price2" type="checkbox" onclick="add_check(this)" value="[00500 TO 01000]" />5万-10万</br>		                          <input name="price[]" id="price3" type="checkbox" onclick="add_check(this)" value="[01000 TO 01500]" />10万-15万		                          <input name="price[]" id="price4" type="checkbox" onclick="add_check(this)" value="[01500 TO 02000]" />15万-20万</br>		                          <input name="price[]" id="price5" type="checkbox" onclick="add_check(this)" value="[02000 TO 03000]" />20万-30万		                          <input name="price[]" id="price6" type="checkbox" onclick="add_check(this)" value="[03000 TO 05000]" />30万-50万</br>		                          <input name="price[]" id="price7" type="checkbox" onclick="add_check(this)" value="[05000 TO 99999]" />50万以上					</ul>				</div>				<div id="district">					<div class="title lh23">选择地区</div>		            		<ul>					<select name="city" size="1" onchange="checkSelect();">			        	<option value="">-选择地区-</option>					<option value="city1" id="安徽">安徽</option>					<option value="city2" id="北京">北京</option>					<option value="city3" id="重庆">重庆</option>					<option value="city4" id="福建">福建</option>					<option value="city5" id="甘肃">甘肃</option>					<option value="city6" id="广东">广东</option>					<option value="city7" id="广西">广西</option>					<option value="city8" id="贵州">贵州</option>					<option value="city9" id="海南">海南</option>					<option value="city10" id="河北">河北</option>					<option value="city11" id="黑龙江">黑龙江</option>					<option value="city12" id="河南">河南</option>					<option value="city13" id="湖北">湖北</option>					<option value="city14" id="湖南">湖南</option>					<option value="city15" id="江苏">江苏</option>					<option value="city16" id="江西">江西</option>					<option value="city17" id="吉林">吉林</option>					<option value="city18" id="辽宁">辽宁</option>					<option value="city19" id="宁夏">宁夏</option>					<option value="city20" id="内蒙古">内蒙古</option>					<option value="city21" id="青海">青海</option>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -