首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 其他相关 >

DWR兑现模拟Google搜索效果

2013-01-27 
DWR实现模拟Google搜索效果div styleposition:absoluteleft:190pxtop:25pxinput AUTOCOMPLETEo

DWR实现模拟Google搜索效果

<div style="position:absolute;left:190px;top:25px;">    <input AUTOCOMPLETE="off"         onkeydown="oldKeyValue=this.value.trim();setSelectedKey();"         onkeyup="getConformKey();"         onfocus="if(this.value=='找人') this.value='';setDropListVisible(true);"         onblur="setDropListVisible(false);"        style="width: 300; height: 23;z-index: 10;top:0;left:0;"  type="text" name="cond" value="找人" id="cond" />    <input type="button" class="btn" value="搜一下"  onclick="findBylike();" /></div>

useraction.findByLike(String name);是dao层的一个查询方法,
返回一个List,把这里换成你自己的实现就可以了.

完美实现google搜索效果示例源码下载





热点排行