destoon首页搜索条制作

来源: https://www.destoon.top/ 日期: 2019-03-01 19:56:28 人气: - 评论: 0

 destoon首页搜索效果(参考)

 

 

<script type="text/javascript">
    function $(ID) {return document.getElementByIdx_x(ID);}
    function Ds(i) {$(i).style.display = '';}
    function Dh(i) {$(i).style.display = 'none';}

      function setModule(n, i) {
     $('taomodi_moduleid').value = i;
     $('taomodi_search_m').href = DTPath+'search.php?moduleid='+i;
     $('taomodi_select').value = n;
     Dh('search_module');
     searchid = i;
     setKW();
    }
  
   </script>  
     
     
     
      <div class="search_l">
       
    {php $searchid = ($moduleid > 3 && $MODULE[$moduleid]['ismenu'] && !$MODULE[$moduleid]['islink']) ? $moduleid : 5;}
 {php $searchids = array(5,16,6,4,21,22);}
 {if !in_array($searchid, $searchids)}
  {php $searchids[] = $searchid;}
 {/if}
 <script type="text/javascript">var searchid = {$searchid};</script>
    <div id="search_module" style="display: none;""Dh('search_module');""Ds('search_module');">
               <a href="javascript:void(0);""setModule({$s}, this)">供应</a>
                <a href="javascript:void(0);""setModule('资讯','21')">资讯</a>
                <a href="javascript:void(0);""setModule('求购','6')">求购</a>
                <a href="javascript:void(0);""setModule('商铺','4')">商铺</a>
                <a href="javascript:void(0);""setModule('招标','22')">招标</a>
                <a href="javascript:void(0);""setModule('拍卖','23')">拍卖</a>  
                <a href="javascript:void(0);""setModule('处置','24')">处置</a>
                <a href="javascript:void(0);""setModule('行情报价','26')">行情报价</a>
                <a href="javascript:void(0);""setModule('废旧市场','27')">废旧市场</a>
                <a href="javascript:void(0);""setModule('企业报价','29')">企业报价</a>
             
                   </div>
    <div id="search_tips" style="display:none;"></div>
    <form id="taomodi_search" action="{DT_PATH}search.php""return Dsearch();">
    <input name="moduleid" value="{$searchid}" id="taomodi_moduleid" type="hidden">
    &nbsp;&nbsp;&nbsp;  
    <input id="taomodi_select" class="search_s" type="text""Ds('search_module');""this.blur();" readonly="" value="供应">
       &nbsp;&nbsp;
<input id="taomodi_kw" class="search_i" type="text""STip(this.value);""if(this.value=='请输入关键字') this.value='';" value="请输入关键字" name="kw">
 
    &nbsp;&nbsp;
    <input src=http://www.dtmuban.com/skin/taomodi/image/nopic.gif align="absmiddle" type="image" class="input_tj">
    &nbsp;
    <a href="{DT_PATH}search.php?moduleid=21" id="taomodi_search_m"></a>
    </form>
    <div style="clear:both;"></div>
          <p class=" h-p2">
           <span>热点关键词:</span>
           <span><a href="{$MODULE[5][linkurl]}search.php?kw={$DT[guanjianzi]}">{$DT[guanjianzi]}</a></span>
           <span><a href="{$MODULE[5][linkurl]}search.php?kw={$DT[guanjianzi3]}">{$DT[guanjianzi3]}</a></span>
           <span><a href="{$MODULE[5][linkurl]}search.php?kw={$DT[guanjianzi4]}">{$DT[guanjianzi4]}</a></span>
           <span><a href="{$MODULE[5][linkurl]}search.php?kw={$DT[guanjianzi5]}">{$DT[guanjianzi5]}</a></span>
           <span><a href="{$MODULE[5][linkurl]}search.php?kw={$DT[guanjianzi6]}">{$DT[guanjianzi6]}</a></span>
           <span><a href="{$MODULE[5][linkurl]}search.php?kw={$DT[guanjianzi7]}">{$DT[guanjianzi7]}</a></span>
          </p>
   </div>