解决方案 »

  1.   

    snlixing,我用你的test.html测试下,但是没有效果哦。
      

  2.   

    由于他的js比较长 这个功能用到的 
    css是 http://webresource.ctrip.com/styles/index/private_index01_query.css
    js是 http://webresource.ctrip.com/code/js/tuna_071206.js你要做到自己网页里 下载下来就可以了

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><link href="http://webresource.ctrip.com/styles/index/private_index01_query.css" rel="stylesheet" type="text/css" />
    <script src="http://webresource.ctrip.com/code/js/tuna_071206.js" charset="utf-8"></script>
    </head>


    <body>
    <div id="pubGlobal_main">
    <div style="width:100%;height:217px;overflow:hidden;" id="index_checkinfo_m">
    <div class="priindexquery_left">
    <div class="priindexquery_search" id="query_tab_m" para="indexQueryTab">

    <span class="priindexquery_welcome">欢迎您访问!</span>
    <!-- 搜索模块begin -->

    <ul class="priindexquery_searchtitle_hotel" id="queryTabButton">
    <li style="margin-left:5px" title="酒店预订"> </li>
    <li title="机票预订"> </li>
    <li title="旅游度假"> </li> <li class="priindexquery_travelcard" onclick="javascript:window.open('/html/commerce/promote/AllianceCard/200706/xyk/lyxykindex.htm','', 'height=410, width=660, top=0, left=0, toolbar=no, menubar=no,scrollbars=yes, resizable=no,location=n o, status=no')">&nbsp;</a></li>
    </ul>
    <ul class="priindexquery_searchcontent" id="queryTabPanel">
    <li style="display:;">
    <form name="hotelForm" method="post" action="http://hotels.ctrip.com/Domestic/ShowHotelList.aspx">
    <input name="EndPrice" type="hidden" value="" /><input name="BegPrice" type="hidden" value="" />
    <div><span style="color:red">*</span>城市</div>
    <div><span style="color:red">*</span>入住日期</div><div><span style="color:red">*</span>离店日期</div>
    <div>
                                  <input id="cityname" name="cityname" autocomplete="off" mod="notice|address" mod_address_source="hotel" mod_address_suggest="@Beijing|北京|101@Shanghai|上海|102@Guangzhou|广州|132@Shenzhen|深圳|130@Hangzhou|杭州|117@Nanjing|南京|112@Chengdu|成都|128@Hong Kong|香港|158@Qingdao|青岛|107@Wuhan|武汉|577@Xiamen|厦门|125@Dalian|大连|106@Chongqing|重庆|104@Tianjin|天津|103@Changsha|长沙|306@Xian|西安|110@" mod_notice_tip="中文/拼音" mod_address_reference="cityId" type="text" value="" size="20" /><input id="cityId" name="cityId" type="hidden" value="" /><input name="city" type="hidden" value="" /><input name="district" type="hidden" value="" /></div>
    <div><input id="starttime" name="starttime" autocomplete="off" mod="calendar|notice" mod_notice_tip="yyyy-mm-dd" mod_calendar_focusNext="true" mod_calendar_rangeStart="#" size="20" /></div>
    <div><input id="deptime" name="deptime" autocomplete="off" mod="calendar|notice" mod_notice_tip="yyyy-mm-dd" mod_calendar_rangeStart="#" mod_calendar_reference="starttime" size="20" /></div>
    <input type=hidden name=perdate value="2008-4-1">
    <input type=hidden name=postdate value="2008-5-31">
    <div style="width:363px; padding:5px 0 0 0;line-height:normal;">
    <p> </p> </div>
    </form>
    </li>
    </ul>
    </div>

    </div>

    </div>

    </div> </body></html>
      

  3.   

    下载是怎么下载,我把地址copy到IE地址栏里面,汉字是乱码,怎么解决呢?
      

  4.   

    上面的代码怎么在.net中不能用啊,提示"type or scroll to select 或 no match"请帮我解决一下吧,谢谢