📄 search.php
字号:
if(tab!=5) { document.getElementById("search_"+tab).className="tab_active"; } /*if(tab < 5) { document.getElementById("search_"+tab).className="tab_active"; }*/ document.simple.tab.value = tab; if(tab == 4 || tab == 3 || tab == 5 ||tab ==6 ||tab == 7 ||tab ==8) { //document.getElementById("sort").style.display="none"; document.getElementById("sort").innerHTML = ""; } else { var strsort = '<a href="#" onclick="sortList(\'price\')">按价格降序</a> <a href="#" onclick="sortList(\'\')">按'; if(tab == 2) { strsort += '报价'; } if(tab == 1) { strsort += '上市'; } strsort += '时间降序</a>'; document.getElementById("sort").innerHTML = strsort; document.getElementById("sort").style.display="block"; } if(tab == 5 ||tab ==6 ||tab == 7) { document.getElementById("nextsearch").innerHTML = "相关品牌"; } else { document.getElementById("nextsearch").innerHTML = "继续查询"; } if(tab != 1) { floats= ""; document.getElementById("car_search_more").style.display="none"; } else { floats = '<div id="floatbox"><div class="bt1"><a id="toggle" href="#" name="toggle" onclick="javascript:sidebar();return false;"><img src="http://www.sinaimg.cn/qc/pinpai/tupian/bg08.gif" width="23" height="109"></a></div><div id="comparebox" style="display:none"><div class="title">车型对比栏</div><div id="comparelist"><div id="list"><br /><br /><p align="center">载入中...</p></div><input type="submit" class="btn_com" value=" " onclick="ContBegin()" /><input type="submit" class="btn_clear" value=" " onclick="ContClear()" /></div></div></div>'; document.getElementById("car_search_more").style.display="block"; } document.getElementById("floatcom").innerHTML = floats; if(tab == 1) { tips=document.getElementById("floatbox");moveTips(); } checkSelect(); }function PageInit(tabid,keyword,page,query,addurl){ S.AjSrv = new Ajax.Service(); myApp = new App(tabid,keyword,page,query,addurl); }function sidebar(){ if(document.getElementById("comparebox").style.display=='block'){ hideCompBox(); }else{ showCompBox(); }}function showCompBox(){ document.getElementById("comparebox").style.display='block';}function hideCompBox(){ document.getElementById("comparebox").style.display='none';}function sub_check(){ subids = ""; var Oform = document.simple; if(Oform.keyword.value == "") { alert("请输入搜索关键字"); Oform.keyword.focus(); return; } SearchTab(tab); }function sortList(sortstr){ document.mainform.hidsort.value = sortstr; checkSelect(); //App.newsearch(tab,$("keyword").value,1,"",addurl,sortstr);}function addparam(param,sortstr){ var addurl = null; if(param != "") { addurl = "act=add¶m="+param; } App.newsearch(tab,$("keyword").value,1,"",addurl,sortstr);}function ck_all_cb(ca,n){ var cked = false; if (ca.checked == true) { cked = true; } for (var i=1; i<10; i++) { if (document.getElementById(n+i)) { document.getElementById(n+i).checked = cked; } } checkSelect();}function checkSelect(){ var divname = "left_"+tab; var param = ""; loaded=0; var iChildCount = null; var tmLeftBar = document.getElementById(divname); picids = ""; iChildCount = tmLeftBar.childNodes.length; if(agentType=="IE") { for(var i=0;i<iChildCount;i++) { var tmSearchDiv = tmLeftBar.childNodes[i]; if(null != tmSearchDiv) { var tmCheckBoxList = tmSearchDiv.getElementsByTagName("input"); if(null != tmCheckBoxList) { var tmadd = 0; for(j=0;j<tmCheckBoxList.length;j++) { if (tmCheckBoxList[j].type == "checkbox" && tmCheckBoxList[j].checked) { param += tmCheckBoxList[j].id+","; tmadd++; } if (tmCheckBoxList[j].name == "brandbox" && tmCheckBoxList[j].checked) { brandval +="#"+tmCheckBoxList[j].id+"#"; if(tab == 3) picids +=tmCheckBoxList[j].value+","; } } if(tmadd>0) { param +=","; } } } } } else { for(var i=0;i<iChildCount;i++) { var k=(i+1)*2-1; var tmSearchDiv = tmLeftBar.childNodes[k]; if(null != tmSearchDiv) { var tmCheckBoxList = tmSearchDiv.getElementsByTagName("input"); if(null != tmCheckBoxList) { var tmadd = 0; for(j=0;j<tmCheckBoxList.length;j++) { if (tmCheckBoxList[j].type == "checkbox" && tmCheckBoxList[j].checked) { param += tmCheckBoxList[j].id+","; tmadd++; } if (tmCheckBoxList[j].name == "brandbox" && tmCheckBoxList[j].checked) { brandval +="#"+tmCheckBoxList[j].id+"#"; if(tab == 3) picids +=tmCheckBoxList[j].value+","; } } if(tmadd>0) { param +=","; } } } } } if(tab == 2 && document.andsearch.city.value != "") param += document.andsearch.city.value+","; if((tab == 3 || tab == 4)&&document.mainform.hidparam.value != "") param += document.mainform.hidparam.value+","; /*if(tab ==1 && document.andsearch.seatnums.value != "" && document.andsearch.seatnums.value != "seatnum7") param += document.andsearch.seatnums.value+",";*/ if((tab == 1 || tab == 2)&&document.mainform.hidsort.value !="") var sortstr = document.mainform.hidsort.value; addparam(param,sortstr);}function getMainHidParam(paramvalue){ document.mainform.hidparam.value = paramvalue; checkSelect();}function add_check(obj){ var cked = false; if (obj.checked == true) { cked = true; } checkSelect();}//]]></script><SCRIPT LANGUAGE="JavaScript" src="http://auto.sina.com.cn/526/2007/0830/1.js"></SCRIPT><SCRIPT LANGUAGE="JavaScript"><!--function showdiv(){ var data = document.simple.keyword.value; var op = ""; len = brandArray.length; if (data!="") { for (i=0;i<len;i++) { pos = brandArray[i][0].indexOf(data); if (pos>=0) { op += "<option value='"+brandArray[i][1]+"'>"+brandArray[i][1]+"<\/option>"; } } cont = "<select name='subbrand' size='5' onchange='javascript:setVal()' onclick='closediv();'>"+op+"</section>"; document.getElementById('contentdiv').style.display = 'block'; document.getElementById('contentdiv').innerHTML = cont; } else { document.getElementById('contentdiv').style.display = 'none'; }}function setVal(){ document.simple.keyword.value = document.simple.subbrand.value;}function closediv(){ document.getElementById('contentdiv').style.display = 'none'; }//--></SCRIPT></head><body onload="initFloatTips()"><!-- SUDA_CODE_START --><script type="text/javascript" src="http://www.sinaimg.cn/unipro/pub/suda_s_v839c.js"></script><!-- SUDA_CODE_END --><div id="loadBox"> <div id="loadBoxIn" style="display:none;"> <p><img src="images/loading.gif" hspace="8" vspace="8" align="absmiddle" width="32" height="32"> 正在载入数据,请稍候......</p> </div></div><div id="wrap"> <div id="level2header"> <div id="sinalogo"><a href="http://www.sina.com.cn/"><img src="http://www.sinaimg.cn/home/head/sinalogo.gif" alt="新浪网" width="40" height="27" /></a><a href="http://auto.sina.com.cn/"><img src="http://image2.sina.com.cn/home/head/qc.gif" alt="新浪汽车" /></a></div> <div id="iask"> <!--google begin--> <!-- Script Used for Clickable Google Logo, and Google Text Link --> <script type="text/javascript"> function submitFormWithChannel(channelname){ if(document.gform.q.value=="请输关键词"||document.gform.q.value=="请输入关键字"||document.gform.q.value==""){ document.gform.q.value="请输关键词"; }else{ document.gform.channel.value=channelname; document.gform.submit(); return; } } </script> <!-- End of Script for Clickable Google Logo -->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -